.atk-orders-page { color: #172033; }
.atk-orders-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.atk-orders-heading span { color: #5423e7; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.atk-orders-heading h2 { margin: 3px 0 4px; font-size: 27px; }
.atk-orders-heading p { margin: 0; color: #667085; }
.atk-orders-heading > a { padding: 10px 14px; border: 1px solid #d9dfea; border-radius: 10px; color: #344054; font-weight: 700; text-decoration: none; white-space: nowrap; }
.atk-orders-heading > a:hover { border-color: #a99bf2; color: #4f15e0; }
.atk-orders-filters { display: flex; gap: 7px; margin-bottom: 17px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: thin; }
.atk-orders-filters a { flex: 0 0 auto; padding: 9px 13px; border: 1px solid #e0e4eb; border-radius: 999px; background: #fff; color: #475467; font-size: 13px; font-weight: 700; text-decoration: none; }
.atk-orders-filters a:hover,.atk-orders-filters a.is-active { border-color: #5423e7; background: #5423e7; color: #fff; }
.atk-orders-list { display: grid; gap: 14px; }
.atk-orders-card { overflow: hidden; border: 1px solid #e1e6ee; border-radius: 16px; background: #fff; box-shadow: 0 6px 22px rgba(16,24,40,.05); }
.atk-orders-card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border-bottom: 1px solid #edf0f4; background: #fbfcfe; }
.atk-orders-card-top > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.atk-orders-card-top a { color: #172033; font-weight: 800; text-decoration: none; white-space: nowrap; }
.atk-orders-card-top small { color: #667085; white-space: nowrap; }
.atk-orders-type,.atk-orders-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.atk-orders-type.is-normal { color: #1757a6; background: #e7f0ff; }
.atk-orders-type.is-presale { color: #5423ba; background: #eee9ff; }
.atk-orders-type.is-pickup { color: #8a5700; background: #fff1c7; }
.atk-orders-status { color: #475467; background: #eef1f5; }
.atk-orders-status.atk-status-presale { color: #5423ba; background: #eee9ff; }
.atk-orders-status.atk-status-shipped { color: #1757a6; background: #e7f0ff; }
.atk-orders-status.atk-status-ready-pickup { color: #8a5700; background: #fff1c7; }
.atk-orders-status.atk-status-completed,.atk-orders-status.atk-status-collected { color: #166534; background: #dcfce7; }
.atk-orders-card-body { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 18px; }
.atk-orders-image { width: 76px; height: 76px; overflow: hidden; border: 1px solid #e5e9ef; border-radius: 11px; background: #f8fafc; }
.atk-orders-image img { width: 100%; height: 100%; object-fit: contain; }
.atk-orders-products { min-width: 0; }
.atk-orders-products > strong,.atk-orders-products > span,.atk-orders-products > em,.atk-orders-products > small { display: block; }
.atk-orders-products > strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.atk-orders-products > span { margin-top: 4px; color: #667085; font-size: 13px; }
.atk-orders-products > em { margin-top: 7px; color: #5423ba; font-size: 12px; font-style: normal; font-weight: 700; }
.atk-orders-products > small { margin-top: 6px; color: #475467; }
.atk-orders-total { text-align: right; }
.atk-orders-total span,.atk-orders-total strong { display: block; }
.atk-orders-total span { margin-bottom: 3px; color: #667085; font-size: 12px; }
.atk-orders-total strong { font-size: 18px; white-space: nowrap; }
.atk-orders-total .woocommerce-Price-amount,.atk-orders-total .woocommerce-Price-amount bdi { display: inline-flex !important; align-items: baseline; gap: 2px; white-space: nowrap !important; }
.atk-orders-total .woocommerce-Price-currencySymbol { display: inline !important; }
.atk-orders-guide { display: flex !important; align-items: center; flex-wrap: wrap; gap: 4px; white-space: normal !important; }
.atk-copy-guide { min-height: auto; margin-left: 3px; padding: 3px 7px; border: 1px solid #cfc7f5; border-radius: 6px; background: #f5f2ff; color: #4f15e0; font-size: 10px; font-weight: 800; line-height: 1.3; cursor: pointer; }
.atk-copy-guide:hover { border-color: #5423e7; background: #5423e7; color: #fff; }
.atk-copy-guide.is-copied { border-color: #86d5a1; background: #dcfce7; color: #166534; }
.atk-orders-progress { position: relative; display: grid; grid-template-columns: repeat(3,1fr); margin: 0 18px 17px; }
.atk-orders-progress::before,.atk-orders-progress::after { position: absolute; z-index: 0; top: 12px; left: 16.66%; width: 66.66%; height: 3px; content: ""; border-radius: 3px; background: #e8ebf0; }
.atk-orders-progress::after { width: calc((var(--atk-progress) - 1) * 33.33%); background: #5b2ee7; }
.atk-orders-progress span { position: relative; z-index: 1; display: flex; align-items: center; flex-direction: column; gap: 5px; color: #98a2b3; font-size: 11px; text-align: center; }
.atk-orders-progress i { display: grid; width: 27px; height: 27px; place-items: center; border: 3px solid #e8ebf0; border-radius: 50%; background: #fff; font-size: 10px; font-style: normal; }
.atk-orders-progress .is-complete { color: #4321ad; }
.atk-orders-progress .is-complete i { border-color: #5b2ee7; background: #5b2ee7; color: #fff; }
.atk-orders-progress b { font-weight: 700; }
.atk-orders-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-top: 1px solid #edf0f4; background: #fbfcfe; }
.atk-orders-actions > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-left: auto; }
.atk-orders-actions .button { min-height: auto; padding: 7px 11px; border-radius: 8px; font-size: 12px; }
.atk-orders-actions .button.is-primary { border-color: #5423e7; background: #5423e7; color: #fff; }
.atk-orders-track { color: #4f15e0; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.atk-orders-pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; }
.atk-orders-pagination span { color: #667085; font-size: 13px; }
.atk-orders-empty { display: flex; align-items: center; flex-direction: column; padding: 55px 20px; border: 1px dashed #d8dee8; border-radius: 16px; background: #fff; text-align: center; }
.atk-orders-empty > span { font-size: 38px; }
.atk-orders-empty h3 { margin: 10px 0 4px; }
.atk-orders-empty p { max-width: 430px; margin: 0 0 17px; color: #667085; }

@media (max-width: 700px) {
	.atk-orders-heading { align-items: flex-start; flex-direction: column; }
	.atk-orders-card-top { align-items: flex-start; }
	.atk-orders-card-top > div { align-items: flex-start; flex-wrap: wrap; gap: 6px 8px; }
	.atk-orders-card-top small { width: 100%; }
	.atk-orders-card-body { grid-template-columns: 64px minmax(0,1fr); gap: 12px; padding: 15px; }
	.atk-orders-image { width: 64px; height: 64px; }
	.atk-orders-total { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #edf0f4; text-align: left; }
	.atk-orders-total span { margin: 0; }
	.atk-orders-progress { margin-inline: 10px; }
	.atk-orders-actions { align-items: stretch; flex-direction: column; }
	.atk-orders-actions > div { justify-content: flex-start; margin-left: 0; }
}

@media (max-width: 420px) {
	.atk-orders-card-top { flex-direction: column; }
	.atk-orders-status { align-self: flex-start; }
	.atk-orders-progress b { font-size: 10px; }
	.atk-orders-actions .button { flex: 1; text-align: center; }
}
