/*
 * AnNoor purchase + account flow: cart, cart drawer, checkout, confirmation, orders, tracking,
 * account shell, address book, notifications, auth cards. Tokens and base components come from
 * annoor.css; only `an-*` classes that page set does not already provide live here. Logical
 * properties throughout so RTL mirrors.
 *
 * Sections: 1 shared  2 stepper  3 cart  4 summary + coupon  5 drawer  6 checkout  7 confirmation
 *           8 orders + tracking  9 account shell  10 forms + addresses + notifications  11 auth
 */

/* ============================== 1. SHARED ============================== */
.an-flow, .an-acct, .an-track { padding-block: 16px 8px; }
.an-flow__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.an-flow__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.an-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 14px; }
.an-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.an-panel__head h2 { font-size: 14px; margin: 0; }
.an-panel__body { padding: 16px; }
.an-btn-line { background: #fff; border: 1px solid #cfd9e0; color: var(--ink); }
.an-btn-line:hover, .an-btn-line:focus { background: var(--surface); border-color: #b9c6cf; color: var(--ink); }
.an-btn-line--danger { color: var(--red); border-color: #f0c3c0; }
.an-btn-line--danger:hover { background: #fdeceb; color: var(--red); border-color: #e6a39f; }
.an-field-error, .an-form__error { color: #b3261e; font-size: 11.5px; margin-top: 3px; }
.an-field-error:empty { display: none; }
.an-req { color: var(--red); }
.an-alert { background: #fdeceb; border: 1px solid #f5c2c0; color: #8a1c14; border-radius: var(--r); font-size: 12.5px; padding: 10px 14px; margin-bottom: 12px; }
.an-alert-list { margin: 6px 0 8px; padding-inline-start: 1.2em; }
.an-blank { max-width: 420px; margin: 28px auto; padding: 28px 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); }
.an-blank__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); margin-bottom: 10px; }
.an-blank__icon svg { width: 24px; height: 24px; }
.an-blank h2 { font-size: 17px; margin-bottom: 4px; }
.an-blank p { color: var(--text-2); margin-bottom: 14px; }
.an-blank--drawer { border: 0; margin: 20px auto; padding: 12px; }
.an-blank > svg, .an-blank__icon > svg { fill: none; stroke: currentColor; }
.an-sum__error { color: #b3261e; font-size: 11.5px; text-align: center; margin: 8px 0 0; }
.an-discount-row { color: var(--green); }
@media (max-width: 991.98px) {
  .an-flow__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .an-panel__body { padding: 14px 12px; }
}

/* ============================== 2. STEPPER ============================== */
.an-stepper { list-style: none; display: flex; justify-content: center; margin: 4px auto 14px; padding: 0; max-width: 520px; counter-reset: none; }
.an-stepper li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--text-2); }
.an-stepper li + li::before { content: ""; position: absolute; top: 14px; inset-inline-end: 50%; width: 100%; height: 2px; background: var(--line); }
.an-stepper li.is-done + li::before, .an-stepper li.is-current::before { background: var(--teal); }
.an-stepper__dot { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1.5px solid #cfd9e0; color: var(--text-2); font-size: 12px; font-weight: 700; }
.an-stepper__dot svg { width: 14px; height: 14px; }
.an-stepper li.is-done .an-stepper__dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.an-stepper li.is-current .an-stepper__dot { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; box-shadow: 0 0 0 3px rgba(11, 127, 134, 0.18); }
.an-stepper__label { font-size: 12px; font-weight: 600; }
.an-stepper li.is-current .an-stepper__label, .an-stepper li.is-done .an-stepper__label { color: var(--ink); font-weight: 700; }
@media (max-width: 991.98px) { .an-stepper { margin-bottom: 12px; } .an-stepper__label { font-size: 11.5px; } }

/* ================================ 3. CART ================================ */
.an-vblock { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.an-vblock__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.an-vblock__name { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 13.5px; min-width: 0; }
.an-vblock__name:hover { color: var(--teal-dark); }
.an-vblock__logo { width: 26px; height: 26px; display: grid; place-items: center; flex-shrink: 0; border-radius: var(--r-sm); background: #fff; color: var(--teal-dark); overflow: hidden; }
.an-vblock__logo svg { width: 16px; height: 16px; }
.an-vblock__logo img { width: 100%; height: 100%; object-fit: cover; }
.an-vblock__title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.an-vblock__title small { color: var(--text-2); font-weight: 500; font-size: 11px; }
.an-vblock__meta { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-lines { list-style: none; margin: 0; padding: 0; }
.an-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; }
.an-line + .an-line { border-top: 1px solid var(--line-2); }
.an-line__thumb { width: 64px; height: 64px; border-radius: var(--r); background: var(--surface); overflow: hidden; display: grid; place-items: center; }
.an-line__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.an-line__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.an-line__name { color: var(--ink); font-weight: 700; font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-line__name:hover { color: var(--teal-dark); }
.an-line__variant, .an-line__unit { color: var(--text-2); font-size: 11.5px; }
.an-line__err { color: #b3261e; font-size: 11.5px; font-weight: 600; }
.an-line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.an-line__total { font-size: 13.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.an-line__remove { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); padding: 0; }
.an-line__remove:hover { background: #fdeceb; color: var(--red); }
.an-line__remove svg { width: 15px; height: 15px; fill: none; }
.an-qty { display: inline-flex; align-items: center; border: 1px solid #cfd9e0; border-radius: 999px; background: #fff; overflow: hidden; }
.an-qty form { margin: 0; }
.an-qty__btn { width: 28px; height: 28px; border: 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1; padding: 0; }
.an-qty__btn:hover:not(:disabled) { background: var(--teal-soft); color: var(--teal-dark); }
.an-qty__btn:disabled { color: #b9c6cf; }
.an-qty__value { min-width: 26px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink); }
@media (max-width: 991.98px) {
  .an-line { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .an-line__thumb { width: 56px; height: 56px; }
  .an-vblock__head { padding: 8px 12px; }
}

/* ======================== 4. SUMMARY CARD + COUPON ======================== */
.an-sum { padding: 16px; }
.an-sum--sticky { position: sticky; top: 76px; }
.an-sum__headrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.an-sum__title { font-size: 17px; margin: 0 0 12px; }
.an-sum__headrow .an-sum__title { margin: 0; }
.an-sum__title small { font-size: 12px; font-weight: 600; color: var(--text-2); }
.an-sum__rows { margin: 12px 0 0; }
.an-sum__rows--tight { margin-top: 6px; }
.an-sum__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; font-size: 12.5px; }
.an-sum__row dt { font-weight: 400; color: var(--text); min-width: 0; }
.an-sum__row dd { margin: 0; font-weight: 600; color: var(--ink); white-space: nowrap; }
.an-sum__row--sub dt, .an-sum__row--sub dd { color: var(--text-2); font-size: 11.5px; font-weight: 500; }
.an-sum__row--strong dt, .an-sum__row--strong dd { font-weight: 700; color: var(--ink); }
.an-sum__row--total { margin-top: 8px; padding: 10px 0 0; border-top: 1px solid var(--line); }
.an-sum__row--total dt { font-size: 15px; font-weight: 800; color: var(--ink); }
.an-sum__row--total dd { font-size: 17px; font-weight: 800; color: var(--teal-dark); }
.an-sum__row.an-discount-row dt, .an-sum__row.an-discount-row dd { color: var(--green); }
.an-sum__note { color: var(--text-2); font-size: 11.5px; margin: 8px 0 0; }
.an-sum__cta { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; height: 42px; font-size: 14px; font-weight: 700; padding-block: 0; }
.an-sum__cta svg { width: 16px; height: 16px; }
.an-sum__cta--split { justify-content: space-between; padding-inline: 16px; }
.an-coupon { margin: 12px 0 0; }
.an-coupon .alert { margin-bottom: 8px; }
.an-coupon__form { display: flex; gap: 8px; align-items: center; position: relative; margin: 0; }
.an-coupon__icon { position: absolute; inset-inline-start: 10px; width: 15px; height: 15px; color: var(--teal-dark); pointer-events: none; }
.an-coupon__form .form-control { flex: 1; min-width: 0; padding-inline-start: 32px; }
.an-coupon__form .btn { height: 36px; }
.an-coupon__applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: #e6f5ee; border: 1px solid #bfe3d3; border-radius: var(--r); color: var(--green); font-size: 12.5px; }
.an-coupon__applied span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.an-coupon__applied svg { width: 14px; height: 14px; flex-shrink: 0; }
.an-coupon__applied form, .an-coupon__inline { margin: 0; display: inline; }
.an-coupon__remove { border: 0; background: none; padding: 0; color: var(--teal-dark); font-size: 12px; font-weight: 700; text-decoration: underline; }
@media (max-width: 991.98px) { .an-sum--sticky { position: static; } }

/* =============================== 5. CART DRAWER =============================== */
.an-drawer { width: min(400px, 100vw); }
.an-drawer__body { display: flex; flex-direction: column; padding: 0; min-height: 0; }
.an-drawer__hint { color: var(--text-2); margin: 0; padding: 16px; }
.an-drawer__alert { margin: 12px 16px 0; }
.an-drawer__scroll { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.an-lines--drawer .an-line { grid-template-columns: 56px minmax(0, 1fr) auto; padding: 12px 16px; }
.an-lines--drawer .an-line__thumb { width: 56px; height: 56px; }
.an-lines--drawer .an-qty { margin-top: 6px; align-self: flex-start; }
.an-line__x { margin: 0; }
.an-drawer__foot { flex: 0 0 auto; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -4px 14px rgba(15, 42, 67, 0.05); }
.an-drawer__foot .an-sum__rows { margin: 0 0 4px; }
.an-drawer__foot .btn { width: 100%; height: 38px; }

/* ============================== 6. CHECKOUT ============================== */
.an-checkout__head { margin-bottom: 14px; }
.an-checkout__head h1 { margin: 0; }
.an-checkout__head p { color: var(--text-2); font-size: 13px; margin: 2px 0 0; }
.an-hold { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; margin-bottom: 14px; padding: 9px 14px; border-radius: var(--r); background: var(--teal-soft); border: 1px solid #c3e0e2; color: var(--ink); font-size: 12.5px; }
.an-hold strong { font-size: 13px; }
.an-hold #reservation-timer { font-variant-numeric: tabular-nums; color: var(--teal-dark); }
.an-hold.is-urgent { background: #fdeceb; border-color: #f5c2c0; color: #8a1c14; }
.an-hold.is-urgent #reservation-timer { color: var(--red); }
.an-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px 18px; margin-bottom: 14px; }
.an-sec__head { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0 0 12px; }
.an-sec__no { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--teal-dark); color: #fff; font-size: 13px; font-weight: 700; }
.an-sec__hint { color: var(--text-2); font-size: 12px; margin: -4px 0 12px; }
.an-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.an-fields__wide { grid-column: 1 / -1; }
.an-fields--new { margin-top: 12px; }
.an-fields[hidden] { display: none; }
.an-choices { display: grid; gap: 12px; }
.an-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.an-choice { position: relative; margin-bottom: 0; }
.an-choices + .an-choice, .an-choice--pay + .an-choice { margin-top: 10px; }
.an-choice > input { position: absolute; inset-block-start: 14px; inset-inline-start: 13px; width: 16px; height: 16px; margin: 0; accent-color: var(--teal); }
.an-choice__body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px 12px 40px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
[dir="rtl"] .an-choice__body { padding: 12px 40px 12px 14px; }
.an-choice__body:hover { border-color: #b9c6cf; }
.an-choice:has(> input:checked) .an-choice__body { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); background: #f6fbfb; }
.an-choice:has(> input:focus-visible) .an-choice__body { outline: 2px solid var(--teal); outline-offset: 2px; }
.an-choice__top { display: flex; align-items: center; gap: 8px; padding-inline-end: 38px; }
.an-choice__title { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); font-size: 13.5px; }
.an-choice__title svg { width: 18px; height: 18px; color: var(--ink); flex-shrink: 0; }
.an-choice__title--teal { color: var(--teal-dark); }
.an-choice__plus { font-size: 18px; line-height: 1; font-weight: 500; }
.an-choice__text { color: var(--text); font-size: 12.5px; line-height: 1.45; }
.an-choice__edit { position: absolute; inset-block-start: 12px; inset-inline-end: 14px; font-size: 12px; font-weight: 700; color: var(--teal-dark); }
.an-choice__edit:hover { text-decoration: underline; }
.an-choice--add .an-choice__body { border-style: dashed; justify-content: center; min-height: 44px; padding-block: 10px; }
.an-choice--pay .an-choice__body { min-height: 52px; justify-content: center; }
.an-choice--pay .an-choice__text { padding-inline-start: 25px; font-size: 12px; color: var(--text-2); }
.an-delivery { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.an-delivery li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.an-delivery svg { width: 20px; height: 20px; color: var(--teal-dark); flex-shrink: 0; }
.an-delivery__name { display: flex; flex-direction: column; flex: 1; min-width: 0; font-weight: 700; color: var(--ink); font-size: 13px; line-height: 1.25; }
.an-delivery__name small { font-weight: 400; color: var(--text-2); font-size: 11.5px; }
.an-delivery__fee { font-weight: 700; color: var(--ink); white-space: nowrap; }
.an-terms { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.an-terms .form-check-input { margin-top: 2px; flex-shrink: 0; float: none; margin-inline-start: 0; }
.an-terms label { font-size: 11.5px; line-height: 1.5; color: var(--text); }
#checkout-result:not(:empty) { margin-bottom: 14px; }
/* order summary vendor blocks */
.an-vsum { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
.an-vsum__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; background: var(--surface); font-size: 12.5px; font-weight: 700; }
.an-vsum__head a, .an-vsum__store { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); min-width: 0; }
.an-vsum__head svg { width: 15px; height: 15px; color: var(--teal-dark); flex-shrink: 0; }
.an-vsum__ref { font-size: 11px; color: var(--text-2); font-weight: 500; }
.an-vsum__item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; }
.an-vsum__item + .an-vsum__item { border-top: 1px solid var(--line-2); }
.an-vsum__thumb { width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.an-vsum__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.an-vsum__info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.an-vsum__name { font-size: 12.5px; font-weight: 700; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-vsum__variant { font-size: 11px; color: var(--text-2); }
.an-vsum__price { font-size: 12.5px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.an-vsum__qty { font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.an-vsum > .an-sum__rows { margin: 0; padding: 4px 10px 6px; border-top: 1px solid var(--line-2); }
.an-vsum .an-sum__row { font-size: 11.5px; padding: 2px 0; }
/* mobile fixed bar */
.an-checkout-bar { display: none; }
.an-overlay { position: fixed; inset: 0; z-index: 2200; display: grid; place-items: center; background: rgba(255, 255, 255, 0.94); }
.an-overlay.d-none { display: none !important; }
.an-overlay__box { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink); font-size: 15px; }
.an-overlay .spinner-border { width: 2.4rem; height: 2.4rem; color: var(--teal); }
@media (max-width: 991.98px) {
  .an-sec { padding: 14px 12px 16px; }
  .an-sec__head { font-size: 15px; }
  .an-choices--2, .an-fields { grid-template-columns: minmax(0, 1fr); }
  .an-sum__cta--desktop { display: none; }
  .an-checkout-bar { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 1030; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15, 42, 67, 0.1); }
  .an-checkout-bar div { display: flex; flex-direction: column; line-height: 1.2; }
  .an-checkout-bar small { color: var(--text-2); font-size: 11px; }
  .an-checkout-bar strong { font-size: 16px; font-weight: 800; color: var(--teal-dark); }
  .an-checkout-bar .btn { height: 42px; padding-inline: 22px; font-size: 13.5px; font-weight: 700; }
  .an-checkout { padding-bottom: 70px; }
}

/* ============================ 7. CONFIRMATION ============================ */
.an-confirm__card { max-width: 680px; margin: 0 auto; padding: 24px 24px 22px; }
.an-confirm__head { text-align: center; margin-bottom: 18px; }
.an-confirm__tick { width: 52px; height: 52px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; margin-bottom: 10px; }
.an-confirm__tick svg { width: 26px; height: 26px; }
.an-confirm__head h1 { font-size: 21px; margin-bottom: 4px; }
.an-confirm__head p { margin: 0 0 4px; color: var(--text); }
.an-confirm__ref { font-size: 12px; color: var(--text-2) !important; }
.an-confirm__ref code { color: var(--ink); font-weight: 700; background: var(--surface); padding: 1px 6px; border-radius: var(--r-sm); }
.an-confirm__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; background: var(--surface); border-radius: var(--r-lg); padding: 12px 16px; margin: 0 0 18px; }
.an-confirm__meta dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-2); }
.an-confirm__meta dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.an-confirm__meta dd.is-total { font-size: 16px; font-weight: 800; color: var(--teal-dark); }
.an-confirm__sec { margin-bottom: 16px; }
.an-confirm__sec h2 { font-size: 14px; margin-bottom: 8px; }
.an-confirm__addr { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; }
.an-confirm__addr > svg { width: 18px; height: 18px; color: var(--teal-dark); flex-shrink: 0; margin-top: 2px; }
.an-confirm__addr div { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; overflow-wrap: anywhere; }
.an-confirm__addr strong { color: var(--ink); }
.an-confirm__addr span:not(.an-chip) { color: var(--text-2); line-height: 1.5; }
.an-confirm__items { list-style: none; margin: 0; padding: 4px 10px; }
.an-confirm__items li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 12.5px; }
.an-confirm__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.an-confirm__actions .btn { min-width: 150px; padding-block: 10px; }
@media (max-width: 575.98px) {
  .an-confirm__card { padding: 18px 14px; }
  .an-confirm__meta { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .an-confirm__actions .btn { flex: 1 1 100%; }
}

/* ======================== 8. ORDERS + TRACKING ======================== */
.an-acct-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.an-acct-head h1 { font-size: 22px; margin: 0; }
.an-acct-head__sub { margin: 4px 0 0; color: var(--text-2); font-size: 12.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-status { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 11px; font-weight: 700; white-space: nowrap; }
.an-status--pending, .an-status--partially_confirmed { background: #fff6e0; border-color: #f2dc9a; color: #8a5a00; }
.an-status--confirmed, .an-status--processing, .an-status--ready_for_dispatch { background: var(--teal-soft); border-color: #c3e0e2; color: var(--teal-dark); }
.an-status--dispatched, .an-status--partially_dispatched { background: #e8f0fb; border-color: #c5d6f2; color: #1d4f9c; }
.an-status--delivered, .an-status--partially_delivered { background: #e6f5ee; border-color: #bfe3d3; color: var(--green); }
.an-status--cancelled { background: #fdeceb; border-color: #f5c2c0; color: #8a1c14; }
.an-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.an-order { padding: 14px 16px; margin: 0; }
.an-order__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.an-order__no { font-weight: 800; color: var(--ink); font-size: 14px; }
.an-order__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; color: var(--text-2); font-size: 12px; }
.an-order__meta strong { color: var(--ink); }
.an-order__vendors { margin-top: 4px; font-size: 12px; color: var(--text-2); }
.an-order__actions { display: flex; gap: 8px; margin-top: 12px; }
.an-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.an-vendor { overflow: hidden; }
.an-vendor__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.an-vendor__name { font-weight: 700; font-size: 14px; color: var(--ink); }
.an-vendor__ref { margin-inline-start: 8px; color: var(--text-2); font-size: 11.5px; }
.an-vendor__contact { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; font-size: 11.5px; }
.an-items { list-style: none; margin: 0; padding: 0 16px; }
.an-item { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; }
.an-item + .an-item { border-top: 1px solid var(--line-2); }
.an-item__name { font-weight: 600; color: var(--ink); }
.an-item__sub { color: var(--text-2); font-size: 11.5px; }
.an-item__price { text-align: end; font-weight: 700; color: var(--ink); white-space: nowrap; }
.an-item__qty { display: block; font-weight: 500; color: var(--text-2); font-size: 11.5px; }
.an-totals { padding: 8px 16px 12px; border-top: 1px solid var(--line-2); }
.an-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; font-size: 12.5px; }
.an-totals__sum { margin-top: 4px; padding-top: 6px !important; border-top: 1px solid var(--line); font-weight: 800; color: var(--ink); }
.an-courier { padding: 8px 16px; background: var(--teal-soft); color: var(--ink); font-size: 12px; }
.an-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 12.5px; }
.an-summary-row--total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 800; color: var(--ink); }
.an-track__code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; color: var(--ink); }
.an-track { max-width: 820px; }
.an-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.an-timeline__step { position: relative; padding: 0 0 14px; padding-inline-start: 24px; }
.an-timeline__step::before { content: ""; position: absolute; inset-inline-start: 4px; top: 13px; bottom: -1px; width: 2px; background: var(--line); }
.an-timeline__step:last-child { padding-bottom: 0; }
.an-timeline__step:last-child::before { display: none; }
.an-timeline__step::after { content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px #fff; }
.an-timeline__step.is-current::after { box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(11, 127, 134, 0.3); }
.an-timeline__title { display: block; font-weight: 700; color: var(--ink); font-size: 13px; }
.an-timeline__time { display: block; color: var(--text-2); font-size: 11.5px; }
.an-timeline__note { margin: 2px 0 0; font-size: 12px; color: var(--text); }
.an-stat { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; color: var(--ink); }
.an-stat strong { font-size: 20px; color: var(--teal-dark); }
.an-kv { display: flex; gap: 12px; margin: 0 0 8px; font-size: 12.5px; }
.an-kv dt { flex: 0 0 110px; font-weight: 600; color: var(--text-2); }
.an-kv dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 991.98px) {
  .an-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .an-acct-head h1 { font-size: 19px; }
  .an-order { padding: 12px; }
  .an-vendor__head { padding: 10px 12px; }
  .an-items, .an-totals { padding-inline: 12px; }
}

/* ============================= 9. ACCOUNT SHELL ============================= */
.an-acct__layout.has-nav { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.an-acct__main { min-width: 0; }
.an-acct-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; position: sticky; top: 76px; }
.an-acct-nav__greet { display: flex; flex-direction: column; padding: 6px 8px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line-2); line-height: 1.3; min-width: 0; }
.an-acct-nav__greet strong { color: var(--ink); font-size: 13.5px; overflow-wrap: anywhere; }
.an-acct-nav__greet span { color: var(--text-2); font-size: 11.5px; overflow-wrap: anywhere; }
.an-acct-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.an-acct-nav__link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); color: var(--ink); font-size: 12.5px; font-weight: 600; }
.an-acct-nav__link svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--text-2); }
.an-acct-nav__link:hover { background: var(--surface); color: var(--ink); }
.an-acct-nav__link.is-active { background: var(--teal-soft); color: var(--teal-dark); }
.an-acct-nav__link.is-active svg { color: var(--teal-dark); }
.an-acct-nav__badge { margin-inline-start: auto; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 10.5px; font-weight: 700; }
.an-acct-nav__link--out { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-2); }
@media (max-width: 991.98px) {
  .an-acct__layout.has-nav { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .an-acct-nav { position: static; padding: 0; border: 0; background: transparent; border-radius: 0; margin-inline: -12px; }
  .an-acct-nav__greet { display: none; }
  .an-acct-nav__list { flex-direction: row; gap: 8px; overflow-x: auto; padding: 2px 12px 6px; scrollbar-width: none; }
  .an-acct-nav__list::-webkit-scrollbar { display: none; }
  .an-acct-nav__list li { flex: 0 0 auto; }
  .an-acct-nav__link { height: 30px; padding: 0 14px; border-radius: 999px; background: #f1f4f7; white-space: nowrap; gap: 6px; }
  .an-acct-nav__link svg { width: 14px; height: 14px; }
  .an-acct-nav__link.is-active { background: var(--teal); color: #fff; }
  .an-acct-nav__link.is-active svg { color: #fff; }
  .an-acct-nav__link--out { margin: 0; padding: 0; border: 0; }
}

/* ===================== 10. FORMS, ADDRESSES, NOTIFICATIONS ===================== */
.an-form__section { font-size: 14px; margin: 0 0 10px; }
.an-form__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.an-form .form-text { color: var(--text-2); }
.an-form hr { border-color: var(--line); opacity: 1; margin: 18px 0; }
.an-addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.an-addr { padding: 14px 16px; margin: 0; display: flex; flex-direction: column; }
.an-addr.is-default { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.an-addr__label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 13.5px; }
.an-addr__tag { background: var(--teal-soft); color: var(--teal-dark); border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 700; }
.an-addr__body { margin: 6px 0 12px; color: var(--text); line-height: 1.5; overflow-wrap: anywhere; }
.an-addr__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.an-addr__actions form { margin: 0; }
.an-notes { list-style: none; margin: 0; padding: 0; }
.an-note { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; justify-content: space-between; }
.an-note + .an-note { border-top: 1px solid var(--line-2); }
.an-note__dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: transparent; flex-shrink: 0; }
.an-note.is-unread { background: #f6fbfb; }
.an-note.is-unread .an-note__dot { background: var(--teal); }
.an-note__main { flex: 1; min-width: 0; }
.an-note__title { font-weight: 700; color: var(--ink); }
.an-note__body { margin: 2px 0; color: var(--text); }
.an-note__time { color: var(--text-2); font-size: 11.5px; }
.an-note form { margin: 0; flex-shrink: 0; }
.an-note > .an-note__main:first-child { padding-inline-start: 0; }
@media (max-width: 767.98px) { .an-addr-grid { grid-template-columns: minmax(0, 1fr); } .an-note { padding: 10px 12px; } }

/* ================================ 11. AUTH ================================ */
.an-auth { display: flex; justify-content: center; padding-block: 24px 16px; }
.an-auth__card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px 22px; box-shadow: var(--shadow-card); }
.an-auth__icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); }
.an-auth__icon svg { width: 22px; height: 22px; }
.an-auth__card h1 { font-size: 20px; text-align: center; margin-bottom: 4px; }
.an-auth__lead { text-align: center; color: var(--text-2); font-size: 12.5px; margin-bottom: 16px; line-height: 1.5; }
.an-auth__lead strong { color: var(--ink); overflow-wrap: anywhere; }
.an-auth__alt { text-align: center; color: var(--text-2); font-size: 12px; margin: 14px 0 0; }
.an-auth__alt a { font-weight: 700; }
.an-auth__submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; }
.an-auth__submit svg { width: 16px; height: 16px; }
.an-otp { text-align: center; margin-bottom: 16px; }
.an-otp .form-label { display: block; margin-bottom: 10px; }
.otp-inputs-wrapper { display: flex; justify-content: center; gap: 10px; }
.otp-digit-field { width: 48px; height: 52px; padding: 0; text-align: center; font-size: 22px; font-weight: 700; border-radius: var(--r); }
.otp-digit-field.filled { border-color: var(--teal); background: var(--teal-soft); }
.an-auth__resend-box { text-align: center; margin-top: 14px; }
.an-auth__timer { color: var(--text-2); font-size: 12px; }
.an-auth__timer-num { color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.an-auth__resend { border: 0; background: none; padding: 0; color: var(--teal-dark); font-weight: 700; font-size: 12.5px; }
.an-auth__resend:hover { text-decoration: underline; }
.an-auth__resend.d-none { display: none !important; }
@media (max-width: 575.98px) { .an-auth { padding-block: 12px; } .an-auth__card { padding: 20px 16px; } .otp-digit-field { width: 44px; height: 48px; } }

/* vendor name under each checkout item (muted secondary text) */
.an-vendor-line { display: block; font-size: 11.5px; color: var(--text-2); }
