﻿.account-order-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.account-order-list .ps-order-card {
	--ps-order-accent: #38bdf8;
	position: relative;
	display: grid;
	grid-template-columns: 52px minmax(92px, 1fr) 108px 64px minmax(150px, 1.15fr) 132px 84px;
	gap: 12px 14px;
	align-items: center;
	background: #fff;
	border: 1px solid #e8ebf0;
	border-radius: 12px;
	padding: 12px 14px 12px 16px;
	min-height: 72px;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}
.account-order-list .ps-order-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	bottom: 10px;
	width: 4px;
	border-radius: 0 4px 4px 0;
	background: var(--ps-order-accent);
}
.account-order-list .ps-order-card--pending { --ps-order-accent: #38bdf8; }
.account-order-list .ps-order-card--processing { --ps-order-accent: #0f766e; }
.account-order-list .ps-order-card--shipped { --ps-order-accent: #22c55e; }
.account-order-list .ps-order-card--delivered { --ps-order-accent: #f59e0b; }
.account-order-list .ps-order-card--cancelled { --ps-order-accent: #64748b; }
.account-order-list .ps-order-card--return-pending { --ps-order-accent: #7c3aed; }
.account-order-list .ps-order-card--returned { --ps-order-accent: #4f46e5; }
.account-order-list .ps-order-card--default { --ps-order-accent: #94a3b8; }
.account-order-list .ps-order-thumbs {
	display: flex;
	align-items: center;
	min-width: 40px;
}
.account-order-list .ps-order-thumbs img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #e5e7eb;
	background: #f8fafc;
	flex-shrink: 0;
}
.account-order-list .ps-order-thumbs img + img { margin-left: -14px; }
.account-order-list .ps-order-card__ref {
	font-size: 0.82rem;
	font-weight: 500;
	color: #334155;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.account-order-list a.ps-order-card__ref:hover { color: #f58220; text-decoration: none; }
.account-order-list .ps-order-card__total {
	font-size: 0.95rem;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
}
.account-order-list .ps-order-card__total span {
	display: block;
	margin-top: 2px;
	font-size: 0.72rem;
	font-weight: 500;
	color: #94a3b8;
}
.account-order-list .ps-order-card__cargo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
}
.account-order-list .ps-order-card__cargo img {
	max-height: 32px;
	max-width: 52px;
	width: auto;
	object-fit: contain;
}
.account-order-list .ps-order-card__cargo-name {
	font-size: 0.7rem;
	color: #94a3b8;
	font-weight: 600;
	text-align: center;
}
.account-order-list .ps-order-status-face {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 280px;
	border-radius: 10px;
	padding: 0.55rem 0.9rem;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	text-align: center;
	box-sizing: border-box;
}
.account-order-list .ps-order-card--pending .ps-order-status-face,
.account-order-list .ps-status-select--pending { background-color: #38bdf8; }
.account-order-list .ps-order-card--processing .ps-order-status-face,
.account-order-list .ps-status-select--processing { background-color: #0f766e; }
.account-order-list .ps-order-card--shipped .ps-order-status-face,
.account-order-list .ps-status-select--shipped { background-color: #22c55e; }
.account-order-list .ps-order-card--delivered .ps-order-status-face,
.account-order-list .ps-status-select--delivered { background-color: #f59e0b; }
.account-order-list .ps-order-card--cancelled .ps-order-status-face,
.account-order-list .ps-status-select--cancelled { background-color: #64748b; }
.account-order-list .ps-order-card--return-pending .ps-order-status-face,
.account-order-list .ps-status-select--return-pending { background-color: #7c3aed; }
.account-order-list .ps-order-card--returned .ps-order-status-face,
.account-order-list .ps-status-select--returned { background-color: #4f46e5; }
.account-order-list .ps-order-card--default .ps-order-status-face,
.account-order-list .ps-status-select--default { background-color: #94a3b8; }
.account-order-list .ps-order-card__date {
	font-size: 0.8rem;
	font-weight: 500;
	color: #64748b;
	white-space: nowrap;
}
.account-order-list .ps-order-card__actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}
.account-order-list .ps-action-btn {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: 1px solid transparent;
	background: transparent;
	color: #64748b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	text-decoration: none;
}
.account-order-list .ps-action-btn svg { width: 16px; height: 16px; }
.account-order-list a.ps-action-btn:hover {
	background: #f1f5f9;
	color: #334155;
}
.account-order-list .ps-action-btn.is-disabled {
	opacity: 0.38;
	cursor: not-allowed;
	color: #94a3b8;
}
@media (max-width: 1199px) {
	.account-order-list .ps-order-card {
		grid-template-columns: 48px minmax(80px, 1fr) 96px 56px minmax(140px, 1fr) 80px;
		gap: 8px 10px;
		padding: 10px 12px 10px 14px;
	}
	.account-order-list .ps-order-card__date { display: none; }
}
@media (max-width: 991px) {
	.account-order-list .ps-order-card {
		grid-template-columns: 44px 1fr auto auto;
		grid-template-areas:
			"thumbs ref status actions"
			"thumbs total cargo actions"
			"thumbs date date actions";
	}
	.account-order-list .ps-order-thumbs { grid-area: thumbs; }
	.account-order-list .ps-order-card__ref { grid-area: ref; }
	.account-order-list .ps-order-status { grid-area: status; }
	.account-order-list .ps-order-card__actions { grid-area: actions; }
	.account-order-list .ps-order-card__total { grid-area: total; }
	.account-order-list .ps-order-card__cargo { grid-area: cargo; justify-content: flex-start; }
	.account-order-list .ps-order-card__date { grid-area: date; display: block; }
}

.account-tracking-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 20px;
	padding: 16px 18px 16px 20px;
	background: linear-gradient(135deg, #f0fdf4 0%, #fff 55%);
	border: 1px solid #dcfce7;
	border-radius: 14px;
	position: relative;
	overflow: hidden;
}
.account-tracking-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	bottom: 10px;
	width: 4px;
	border-radius: 0 4px 4px 0;
	background: #22c55e;
}
.account-tracking-card__brand {
	width: 64px;
	height: 52px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 6px 8px;
}
.account-tracking-card__brand img {
	max-width: 100%;
	max-height: 36px;
	object-fit: contain;
}
.account-tracking-card__icon {
	display: inline-flex;
	color: #16a34a;
}
.account-tracking-card__icon svg { width: 26px; height: 26px; }
.account-tracking-card__info { flex: 1 1 180px; min-width: 0; }
.account-tracking-card__label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 2px;
}
.account-tracking-card__company {
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}
.account-tracking-card__code {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin-top: 6px;
	font-size: 0.78rem;
	color: #64748b;
}
.account-tracking-card__code code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #0f172a;
	background: #fff;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	padding: 3px 8px;
}
.account-tracking-card__copy {
	width: 28px;
	height: 28px;
	border: 0;
	background: #fff;
	color: #64748b;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	box-shadow: 0 0 0 1px #e2e8f0;
}
.account-tracking-card__copy svg { width: 14px; height: 14px; }
.account-tracking-card__copy:hover { color: #0f172a; background: #f8fafc; }
.account-tracking-card__copy.is-copied { color: #16a34a; }
.account-tracking-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-left: auto;
	padding: 11px 18px;
	border-radius: 999px;
	background: #16a34a;
	color: #fff;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 8px 18px rgba(22, 163, 74, 0.22);
}
.account-tracking-card__btn svg { width: 18px; height: 18px; }
.account-tracking-card__btn:hover {
	background: #15803d;
	color: #fff;
	text-decoration: none;
}
@media (max-width: 767px) {
	.account-tracking-card { padding: 16px 14px 16px 18px; }
	.account-tracking-card__btn {
		width: 100%;
		margin-left: 0;
	}
}

.bo {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}
.bo-side,
.bo-card,
.bo-none,
.bo-main__head {
	background: #fff;
}
.bo-side {
	border-radius: 16px;
	padding: 18px 16px 12px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.bo-side h2 {
	margin: 0 0 16px;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #0f172a;
}
.bo-search {
	display: flex;
	margin: 0 0 16px;
}
.bo-search input {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #f8fafc;
	font: inherit;
	font-size: 0.88rem;
}
.bo-block { margin: 0 0 14px; }
.bo-block h3,
.bo-block__head {
	margin: 0 0 8px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #94a3b8;
}
.bo-status-btn,
.bo-check {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0 0 4px;
	padding: 8px 10px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #334155;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}
.bo-status-btn b,
.bo-check b {
	margin-left: auto;
	color: #94a3b8;
	font-weight: 700;
}
.bo-status-btn.is-active { background: var(--sn-blue); color: #fff; }
.bo-status-btn.is-active b { color: #fff; }
.bo-status-btn i,
.bo-check input { flex: 0 0 auto; }
.bo-status-btn i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #cbd5e1;
}
.bo-status-btn i.is-green { background: #22c55e; }
.bo-status-btn i.is-red { background: #ef4444; }
.bo-check.is-extra { display: none; }
.bo-check.is-extra.is-shown { display: flex; }
.bo-more {
	margin: 4px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--sn-blue);
	font: inherit;
	font-size: 0.84rem;
	font-weight: 700;
	cursor: pointer;
}
.bo-main__head {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin: 0 0 12px;
	padding: 0;
	background: transparent;
	box-shadow: none;
}
.bo-list { display: flex; flex-direction: column; gap: 12px; }
.bo-card {
	padding: 16px 16px 14px;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.bo-card[hidden] { display: none; }
.bo-card__top,
.bo-card__body,
.bo-card__lead,
.bo-card__when,
.bo-card__actions {
	display: flex;
	align-items: center;
}
.bo-card__top { justify-content: space-between; gap: 12px; }
.bo-card__lead { gap: 8px; min-width: 0; flex-wrap: wrap; }
.bo-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	font-size: 0.78rem;
	font-weight: 800;
}
.bo-status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}
.bo-status--shipped,
.bo-status--delivered { background: #ecfdf3; color: #15803d; }
.bo-status--cancelled { background: #fef2f2; color: #b91c1c; }
.bo-ref { font-size: 0.92rem; }
.bo-cargo-note,
.bo-card__when,
.bo-seller,
.bo-items,
.bo-total-label { color: #64748b; font-size: 0.82rem; }
.bo-card__when { gap: 14px; white-space: nowrap; }
.bo-progress {
	position: relative;
	height: 6px;
	margin: 14px 0;
	border-radius: 99px;
	background: #e5e7eb;
}
.bo-progress__fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 18%;
	border-radius: inherit;
	background: #22c55e;
}
.bo-progress__fill::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 12px;
	height: 12px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 1px #22c55e;
	transform: translateY(-50%);
}
.bo-card[data-step="2"] .bo-progress__fill { width: 46%; }
.bo-card[data-step="3"] .bo-progress__fill { width: 74%; }
.bo-card[data-step="4"] .bo-progress__fill { width: 100%; }
.bo-card[data-step="0"] .bo-progress__fill { width: 100%; background: #f87171; }
.bo-card[data-step="0"] .bo-progress__fill::before { background: #f87171; box-shadow: 0 0 0 1px #f87171; }
.bo-card__body { gap: 16px; }
.bo-thumb {
	position: relative;
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}
.bo-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bo-thumb span {
	position: absolute;
	left: 6px;
	bottom: 6px;
	min-width: 22px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	text-align: center;
}
.bo-card__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bo-product {
	color: #0f172a;
	font-size: 0.92rem;
	font-weight: 700;
}
.bo-card__foot {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
}
.bo-card__pay { text-align: right; }
.bo-card__pay strong { display: block; font-size: 1.05rem; color: #0f172a; }
.bo-card__actions { gap: 8px; }
.bo-menu { position: relative; }
.bo-menu summary {
	height: 38px;
	padding: 0 12px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	list-style: none;
	font-size: 0.86rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
}
.bo-menu summary::-webkit-details-marker { display: none; }
.bo-menu div {
	position: absolute;
	right: 0;
	z-index: 3;
	min-width: 180px;
	margin-top: 6px;
	padding: 6px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}
.bo-menu a,
.bo-open {
	display: flex;
	align-items: center;
	padding: 8px 10px;
	border-radius: 8px;
	color: #0f172a;
	font-size: 0.86rem;
	font-weight: 650;
	text-decoration: none;
}
.bo-menu a:hover { background: #f8fafc; }
.bo-open {
	height: 38px;
	padding: 0 14px;
	border-radius: 10px;
	background: #1d4ed8;
	color: #fff;
	font-weight: 800;
	white-space: nowrap;
}
.bo-open:hover { color: #fff; background: #1e40af; }
.bo-none { margin: 0; padding: 28px 16px; border-radius: 16px; text-align: center; color: #64748b; }
.account-order-hook { margin-top: 4px; }
@media (max-width: 980px) {
	.bo { grid-template-columns: 1fr; }
	.bo-card__body { flex-wrap: wrap; }
	.bo-card__foot {
		flex: 1 0 100%;
		margin-left: 0;
		justify-content: space-between;
	}
	.bo-card__pay { text-align: left; }
}
@media (max-width: 767px) {
	.account-order-actions { flex-direction: column; }
	.account-order-actions > .prime-btn,
	.account-order-actions > .badge {
		width: 100%;
		justify-content: center;
	}
}
.bo-card, .bo-side {
	border-radius: 8px;
	border: 1px solid #eee;
	box-shadow: none;
  }