/* Account Orders — modern list + accordion detail */
.ao-page {
	--ao-blue: #1e5fbf;
	--ao-ink: #1b1b1b;
	--ao-muted: #5c6570;
	--ao-line: #e8ecf1;
	--ao-soft: #f4f6f8;
	--ao-yellow: #ffd200;
}

.ao-list {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-top: 8px;
}

.ao-month__title {
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 14px;
	padding: 0 0 10px;
	font-size: 18px;
	font-weight: 800;
	color: var(--ao-ink);
	border-bottom: 1px solid var(--ao-line);
}

.ao-month__title span {
	font-size: 13px;
	font-weight: 700;
	color: var(--ao-muted);
}

.ao-month__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ao-card.order-item {
	margin: 0;
	padding: 0;
	border: 1px solid var(--ao-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(20, 40, 80, 0.05);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ao-card.is-open {
	border-color: #c5d5ef;
	box-shadow: 0 12px 28px rgba(30, 95, 191, 0.12);
}

.ao-card__head {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 14px 16px;
	cursor: pointer;
	flex-wrap: wrap;
}

.ao-card__media {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	flex: 1 1 280px;
}

.ao-thumbs.order-image {
	display: flex;
	align-items: center;
	width: auto;
	min-width: 0;
}

.ao-thumb.order-image-item,
.ao-thumb--more {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-left: -14px;
	border-radius: 12px;
	border: 2px solid #fff;
	background: var(--ao-soft);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ao-thumb.order-image-item:first-child,
.ao-thumbs > :first-child {
	margin-left: 0;
}

.ao-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}

.ao-thumb--more {
	font-size: 12px;
	font-weight: 800;
	color: var(--ao-blue);
}

.ao-card__meta {
	min-width: 0;
	line-height: 1.35;
}

.ao-card__id {
	font-size: 14px;
	color: var(--ao-muted);
}

.ao-card__id b {
	color: var(--ao-ink);
	font-weight: 800;
}

.ao-card__date,
.ao-card__count {
	font-size: 12px;
	color: var(--ao-muted);
	margin-top: 2px;
}

.ao-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: #eef4ff;
	color: var(--ao-blue);
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.ao-track.order-shipping-track {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid var(--ao-line);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
}

.ao-track img {
	height: 22px;
	width: auto;
}

.ao-track .track-code {
	font-size: 12px;
	font-weight: 700;
	color: var(--ao-ink);
}

.ao-card__pay {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.ao-card__amount {
	text-align: right;
	line-height: 1.25;
}

.ao-card .order-price {
	display: block;
	color: var(--ao-blue) !important;
	font-size: 16px !important;
	font-weight: 800;
}

.ao-card .order-payment {
	display: block;
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ao-muted) !important;
	font-size: 12px !important;
}

.ao-toggle.order-info-button {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	margin: 0;
	border: 1px solid var(--ao-line);
	border-radius: 12px;
	background-color: var(--ao-soft);
	background-image: url(../icons/reshot-icon-down-2GNMF7CK9P.svg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px;
	transition: transform 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
}

.ao-toggle.order-info-button.active,
.ao-card.is-open .ao-toggle.order-info-button {
	transform: rotate(180deg);
	background-color: #eef4ff;
	border-color: #c5d5ef;
}

.ao-card__body.order-long-detail {
	display: none;
	padding: 0 16px 16px;
	border-top: 1px solid var(--ao-line);
	background: linear-gradient(180deg, #fafbfd 0%, #fff 40%);
}

.ao-card__loading,
.ao-detail-error,
.ao-empty {
	padding: 22px 8px;
	text-align: center;
	color: var(--ao-muted);
	font-size: 13px;
	font-weight: 600;
}

.ao-detail-error {
	color: #a94442;
}

.ao-detail {
	padding-top: 16px;
}

.ao-detail__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.9fr);
	gap: 16px;
}

.ao-detail__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 800;
	color: var(--ao-ink);
}

.ao-detail__title .fa {
	color: var(--ao-blue);
}

.ao-products {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ao-product {
	display: flex;
	gap: 12px;
	padding: 10px;
	border: 1px solid var(--ao-line);
	border-radius: 12px;
	background: #fff;
}

.ao-product__img {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--ao-soft);
}

.ao-product__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ao-product__body {
	min-width: 0;
	flex: 1;
}

.ao-product__name {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--ao-ink);
	text-decoration: none;
	line-height: 1.35;
}

.ao-product__name:hover {
	color: var(--ao-blue);
}

.ao-product__opts {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-top: 4px;
	font-size: 11px;
	color: var(--ao-muted);
}

.ao-product__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
	font-size: 12px;
	color: var(--ao-muted);
}

.ao-product__meta strong {
	color: var(--ao-blue);
	font-size: 14px;
}

.ao-panel {
	padding: 14px;
	border: 1px solid var(--ao-line);
	border-radius: 12px;
	background: #fff;
	margin-bottom: 12px;
}

.ao-panel--history {
	margin-top: 4px;
}

.ao-addr + .ao-addr {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--ao-line);
}

.ao-addr__label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ao-muted);
}

.ao-addr__text {
	font-size: 13px;
	line-height: 1.45;
	color: var(--ao-ink);
}

.ao-kv {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	font-size: 13px;
	color: var(--ao-muted);
	border-bottom: 1px solid #f1f4f8;
}

.ao-kv strong {
	color: var(--ao-ink);
	text-align: right;
}

.ao-kv--total {
	margin-top: 4px;
	padding-top: 10px;
	border-bottom: 0;
	border-top: 1px solid var(--ao-line);
	font-weight: 800;
}

.ao-kv--total span,
.ao-kv--total strong {
	color: var(--ao-blue);
	font-size: 14px;
}

.ao-history {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ao-history li {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 4px 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f1f4f8;
	font-size: 13px;
}

.ao-history li:last-child {
	border-bottom: 0;
}

.ao-history__date {
	color: var(--ao-muted);
	font-size: 12px;
}

.ao-history__status {
	color: var(--ao-ink);
}

.ao-history__comment {
	grid-column: 2;
	color: var(--ao-muted);
	font-size: 12px;
}

.ao-detail__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.ao-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid transparent;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.ao-btn--track {
	background: linear-gradient(135deg, #143a7a 0%, #1e5fbf 100%);
	color: #fff;
}

.ao-btn--ghost {
	background: #fff;
	border-color: var(--ao-line);
	color: var(--ao-ink);
}

.ao-btn--ghost:hover {
	border-color: #c5d5ef;
	color: var(--ao-blue);
	text-decoration: none;
}

.ao-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 22px;
}

.ao-pagination__results {
	font-size: 12px;
	color: var(--ao-muted);
}

.ao-empty-state {
	margin-top: 30px;
	padding: 40px 20px;
	text-align: center;
	border: 1px dashed var(--ao-line);
	border-radius: 16px;
	background: var(--ao-soft);
}

.ao-empty-state .fa {
	font-size: 36px;
	color: #9aa3ad;
	margin-bottom: 12px;
}

.ao-empty-state p {
	margin: 0 0 16px;
	color: var(--ao-muted);
}

@media (max-width: 991px) {
	.ao-detail__grid {
		grid-template-columns: 1fr;
	}

	.ao-card__pay {
		width: 100%;
		justify-content: space-between;
		margin-left: 0;
	}

	.ao-history li {
		grid-template-columns: 1fr;
	}

	.ao-history__comment {
		grid-column: 1;
	}
}

@media (max-width: 767px) {
	.ao-card__head {
		padding: 12px;
	}

	.ao-card__status {
		order: 3;
	}

	.ao-track {
		order: 4;
	}

	.ao-thumb.order-image-item,
	.ao-thumb--more {
		width: 44px;
		height: 44px;
	}
}
