/* ==========================================================================
   Customer account: sign-in pages, the account frame and its sections, wholesale, quick order.
   One file for both directions (logical properties only), on the store's cream & gold look. Loaded only on /account.
   ========================================================================== */
:root { --ac-line: #e6dcc2; --ac-gold: #BA9B32; --ac-ink: #142520; --ac-muted: #6f6a5c; --ac-card: #fffdf7; --ac-green: #005943; --ac-deep: #00382b; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ac-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.ac-center { text-align: center; }
.ac-muted { margin: 0; color: var(--ac-muted); font-size: 13.5px; line-height: 1.8; }
.ac-muted a { color: var(--ac-green); font-weight: 800; }
.ac-gap { margin-top: 14px; }
.ac-hint { display: block; font-size: 12.5px; color: var(--ac-muted); line-height: 1.6; }
.ac-kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .3px; color: #8F7520; }

/* ---------- buttons (the shared .ac-btn / .ac-btn-ghost / .ac-follow live in ornaments.css) ---------- */
.ac-btn-sm { padding: 9px 16px !important; font-size: 13px !important; border-radius: 12px !important; }
.ac-btn-wide { width: 100%; }
.ac-btn-gold { background: linear-gradient(135deg, #CCA83B, #8F7520) !important; }
.ac-link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 800; color: var(--ac-green); cursor: pointer; }
.ac-link-btn i { font-size: 11px; color: var(--ac-gold); }
.ac-link-btn.is-danger { color: #a3271c; }
.ac-link-btn.is-danger i { color: inherit; }
.ac-link-btn:hover { text-decoration: underline; }
.is-busy { opacity: .6; pointer-events: none; }

/* ---------- fields ---------- */
.ac-form { display: flex; flex-direction: column; gap: 14px; }
.ac-form[hidden] { display: none; }
.ac-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ac-wide, .ac-span { grid-column: 1 / -1; }
.ac-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ac-field > span:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 800; color: var(--ac-green); }
.ac-field > span:first-child em { font-style: normal; font-weight: 600; font-size: 12px; color: #9a917f; margin-inline-end: auto; }
.ac-field-link { font-size: 12.5px; font-weight: 700; color: #8F7520; text-decoration: none; }
.ac-field-link:hover { text-decoration: underline; }
.ac-input { position: relative; display: flex; align-items: center; gap: 10px; min-height: 50px; padding-inline: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--ac-line); transition: border-color .2s, box-shadow .2s; }
.ac-input:focus-within { border-color: var(--ac-gold); box-shadow: 0 0 0 3px rgba(186, 155, 50, .16); }
.ac-input > i { color: var(--ac-gold); font-size: 13px; width: 14px; text-align: center; flex-shrink: 0; }
.ac-input input, .ac-input select, .ac-input textarea { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--c-ink); padding: 12px 0; }
.ac-input textarea { resize: vertical; line-height: 1.6; }
.ac-area { align-items: flex-start; }
.ac-area > i { margin-top: 18px; }
.ac-select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 20px; }
.ac-select-chev { position: absolute; inset-inline-end: 14px; color: #a49a86 !important; font-size: 11px !important; pointer-events: none; }
.ac-input.is-locked { background: #faf7ee; }
.ac-input.is-locked input { color: var(--ac-muted); }
.ac-verified { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 12px; font-weight: 800; color: #1f8a57; white-space: nowrap; }
[dir="rtl"] .ac-input input[dir="ltr"]:placeholder-shown { text-align: right; }
.ac-eye { display: grid; place-items: center; width: 34px; height: 34px; margin-inline-end: -8px; border: 0; border-radius: 10px; background: none; color: #a49a86; cursor: pointer; }
.ac-eye:hover { color: var(--ac-green); background: #f6efd9; }
.has-err .ac-input { border-color: #d9534f; background: #fffafa; }
.ac-err { display: none; font-size: 12.5px; font-weight: 700; color: #b3261e; line-height: 1.5; }
.ac-err.on { display: block; }
.ac-err.on::before { content: "\f06a"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-inline-end: 6px; }
.ac-strength { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; height: 4px; }
.ac-strength i { border-radius: 4px; background: #ece4cc; transition: background .2s; }
.ac-strength[data-score="1"] i:nth-child(1) { background: #d9534f; }
.ac-strength[data-score="2"] i:nth-child(-n+2) { background: #e0a526; }
.ac-strength[data-score="3"] i { background: #1f8a57; }
.ac-check { position: relative; display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: #3d4a44; line-height: 1.6; cursor: pointer; }
.ac-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ac-box { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid #d6c9a6; background: #fff; color: transparent; font-size: 11px; transition: background .15s, border-color .15s; }
.ac-check input:checked + .ac-box { background: linear-gradient(135deg, #005943, #00382b); border-color: #00382b; color: #E0C76C; }
.ac-check input:focus-visible + .ac-box { box-shadow: 0 0 0 3px rgba(186, 155, 50, .3); }
.ac-check.has-err .ac-box { border-color: #d9534f; }
.ac-check a { color: var(--ac-green); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.ac-field-check { grid-column: 1 / -1; }
.ac-formerr { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 11px 14px; border-radius: 12px; background: #fff1ef; border: 1px solid #f3cfc9; color: #93261b; font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.ac-formerr[hidden] { display: none; }
.ac-formerr i { margin-top: 4px; }
.ac-form-foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.ac-inline-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; font-weight: 800; color: var(--ac-green); }
.ac-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: #f4eedb; gap: 2px; }
.ac-seg label { position: relative; cursor: pointer; }
.ac-seg input { position: absolute; opacity: 0; }
.ac-seg span { display: block; padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 700; color: #6d6656; transition: background .15s, color .15s; }
.ac-seg input:checked + span { background: #fff; color: var(--ac-green); box-shadow: 0 2px 8px -4px rgba(0, 56, 43, .4); }
.ac-seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(186, 155, 50, .3); }
.ac-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #efe6cf; cursor: pointer; }
.ac-toggle span { display: flex; flex-direction: column; line-height: 1.5; }
.ac-toggle b { font-size: 14px; color: var(--ac-ink); }
.ac-toggle small { font-size: 12.5px; color: var(--ac-muted); }
.ac-toggle input { position: absolute; opacity: 0; }
.ac-toggle > i { position: relative; flex-shrink: 0; width: 44px; height: 26px; border-radius: 999px; background: #ddd3b8; transition: background .2s; }
.ac-toggle > i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: inset-inline-start .2s; }
.ac-toggle input:checked + i { background: var(--ac-green); }
.ac-toggle input:checked + i::after { inset-inline-start: 21px; }
.ac-toggle input:focus-visible + i { box-shadow: 0 0 0 3px rgba(186, 155, 50, .35); }

/* ---------- flash messages and banners ---------- */
.ac-flash { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.ac-flash i { margin-top: 4px; }
.ac-flash-ok { background: #eaf6ef; border: 1px solid #bfe0cc; color: #0f5a39; }
.ac-flash-error { background: #fff1ef; border: 1px solid #f3cfc9; color: #93261b; }
.ac-banner, .ac-alert { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #fff9e6, #fff3cf); border: 1px solid #f0dc9c; color: #4d3b00; text-decoration: none; }
.ac-banner > i, .ac-alert > i { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: #CCA83B; color: #fff; font-size: 16px; }
.ac-banner div, .ac-alert div { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.5; }
.ac-banner b, .ac-alert b { font-size: 14px; }
.ac-banner small, .ac-alert small { font-size: 12.5px; color: #6b5a1f; }
.ac-alert-cta { flex-shrink: 0; font-size: 13px; font-weight: 900; color: #5c4700; white-space: nowrap; }
.ac-alert:hover { border-color: #e4c76c; }
.ac-alert.is-danger { background: #fff4f2; border-color: #f3cfc9; color: #7d2117; }
.ac-alert.is-danger > i { background: #c0392b; }
.ac-alert.is-danger small { color: #8d3a30; }

/* ==========================================================================
   Sign in, register, forgot, reset, welcome
   ========================================================================== */
.ac-auth { padding: 30px 0 70px; }
.ac-auth-wrap { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 40px; align-items: start; justify-content: center; max-width: 1040px; }
.ac-auth-narrow { grid-template-columns: minmax(0, 460px); }
.ac-auth-card { position: relative; padding: 28px; border-radius: 26px; background: var(--ac-card); border: 1px solid rgba(186, 155, 50, .35); box-shadow: 0 30px 60px -40px rgba(0, 56, 43, .6); }
.ac-auth-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(186, 155, 50, .14); border-radius: 20px; pointer-events: none; }
.ac-auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; text-decoration: none; color: var(--ac-deep); font-weight: 900; font-size: 18px; }
.ac-auth-brand img { height: 42px; }
.ac-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 16px; background: #f4eedb; margin-bottom: 20px; }
.ac-tabs button { padding: 11px 10px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 14.5px; font-weight: 800; color: #7a715c; cursor: pointer; transition: background .2s, color .2s; }
.ac-tabs button[aria-selected="true"] { background: #fff; color: var(--ac-green); box-shadow: 0 6px 14px -8px rgba(0, 56, 43, .45); }
.ac-auth-card h1 { margin: 0; font-size: 24px; font-weight: 900; color: var(--c-brand-green); }
.ac-lead { margin: -8px 0 4px; color: var(--ac-muted); font-size: 14px; line-height: 1.8; }
.ac-switch { margin: 0; text-align: center; font-size: 13.5px; color: var(--ac-muted); }
.ac-switch button, .ac-switch a { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--ac-green); cursor: pointer; text-decoration: none; }
.ac-switch button:hover, .ac-switch a:hover { text-decoration: underline; }
.ac-icon-seal { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 4px; border-radius: 50%; background: linear-gradient(135deg, #005943, #00382b); color: #E0C76C; font-size: 24px; box-shadow: 0 0 0 8px rgba(224, 199, 108, .16); }
.ac-icon-seal.is-warn { background: linear-gradient(135deg, #CCA83B, #8F7520); color: #fff; }
.ac-icon-seal.is-ok { background: linear-gradient(135deg, #1f8a57, #005943); color: #fff; }
.ac-auth-narrow h1, .ac-auth-narrow .ac-lead { text-align: center; }
.ac-auth-side { padding: 20px 6px; }
.ac-auth-side h2 { margin: 6px 0 20px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; color: var(--c-brand-green); }
.ac-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ac-perks li { display: flex; gap: 14px; align-items: flex-start; }
.ac-perks li > span { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: #fff; border: 1px solid rgba(186, 155, 50, .4); color: #8F7520; font-size: 16px; box-shadow: 0 10px 20px -16px rgba(0, 56, 43, .5); }
.ac-perks li div { display: flex; flex-direction: column; line-height: 1.55; }
.ac-perks b { font-size: 15px; color: var(--ac-ink); }
.ac-perks small { font-size: 13px; color: var(--ac-muted); }

/* welcome: interests */
.ac-welcome .site-wrap { display: flex; justify-content: center; }
.ac-welcome-card { width: 100%; max-width: 860px; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 28px; background: var(--ac-card); border: 1px solid rgba(186, 155, 50, .35); box-shadow: 0 30px 60px -40px rgba(0, 56, 43, .6); text-align: center; }
.ac-welcome-card h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: var(--c-brand-green); }
.ac-welcome-card .ac-lead { margin: -8px 0 0; }
.ac-welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ac-count:not(:empty) { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #E0C76C; color: #00382b; font-size: 12px; }
.ac-levels { margin: 0; padding: 16px; border: 1px dashed var(--ac-line); border-radius: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: start; }
.ac-levels legend { padding: 0 8px; font-size: 13.5px; font-weight: 800; color: var(--ac-green); }
.ac-levels legend em { font-style: normal; font-weight: 600; color: #9a917f; font-size: 12px; }
.ac-level { position: relative; cursor: pointer; }
.ac-level input { position: absolute; opacity: 0; }
.ac-level span { display: flex; flex-direction: column; height: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--ac-line); background: #fff; line-height: 1.5; transition: border-color .15s, background .15s; }
.ac-level b { font-size: 14px; color: var(--ac-ink); }
.ac-level small { font-size: 12px; color: var(--ac-muted); }
.ac-level input:checked + span { border-color: var(--ac-green); background: #f3faf6; }
.ac-level input:focus-visible + span { box-shadow: 0 0 0 3px rgba(186, 155, 50, .3); }

/* category chips */
.ac-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-chips-lg { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; text-align: start; }
.ac-chip { position: relative; cursor: pointer; }
.ac-chip input { position: absolute; opacity: 0; }
.ac-chip > span { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--ac-line); background: #fff; transition: border-color .15s, background .15s, transform .15s; }
.ac-chip > span > i { color: var(--ac-gold); font-size: 14px; }
.ac-chip b { font-size: 13.5px; font-weight: 800; color: var(--ac-ink); }
.ac-chip small { font-size: 11.5px; color: var(--ac-muted); }
.ac-chip-tick { display: none; font-style: normal; }
.ac-chip input:checked + span { border-color: var(--ac-green); background: #f3faf6; }
.ac-chip input:checked + span .ac-chip-tick { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ac-green); color: #E0C76C; font-size: 10px; margin-inline-start: auto; }
.ac-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(186, 155, 50, .3); }
.ac-chip:hover > span { border-color: #d8c58e; }
.ac-chips-lg .ac-chip > span { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 18px; min-height: 104px; }
.ac-chips-lg .ac-chip > span > i { font-size: 20px; margin-bottom: 4px; }
.ac-chips-lg .ac-chip b { font-size: 14.5px; }
.ac-chips-lg .ac-chip-tick { position: absolute; top: 12px; inset-inline-end: 12px; }
.ac-chips-lg .ac-chip input:checked + span .ac-chip-tick { display: grid; margin: 0; }

/* ==========================================================================
   The account frame
   ========================================================================== */
.ac-hero { padding: 26px 0 18px; }
.ac-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ac-who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ac-avatar { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #005943, #00382b); color: #E0C76C; font-size: 22px; font-weight: 900; box-shadow: 0 0 0 4px #fffdf7, 0 0 0 5px rgba(186, 155, 50, .5), 0 16px 30px -18px rgba(0, 56, 43, .9); }
.ac-avatar.is-ws { background: linear-gradient(135deg, #CCA83B, #8F7520); color: #fff; }
.ac-hello { font-size: 13px; font-weight: 700; color: #8F7520; }
.ac-hero h1 { margin: 0; font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; color: var(--c-brand-green); line-height: 1.3; }
.ac-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ac-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--ac-line); font-size: 12px; font-weight: 700; color: #5d574b; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-tag i { color: var(--ac-gold); }
.ac-tag-ws { background: #fff7df; border-color: #ead7a0; color: #5c4700; }
.ac-signout { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(186, 155, 50, .45); background: #fff; color: #7a3a2c; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.ac-signout:hover { background: #fff6f3; border-color: #e5b3a7; }
[dir="rtl"] .ac-signout i { transform: scaleX(-1); }

.ac-body { padding: 4px 0 70px; }
.ac-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.ac-nav { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 22px; background: var(--ac-card); border: 1px solid rgba(186, 155, 50, .3); box-shadow: 0 20px 44px -36px rgba(0, 56, 43, .55); }
.ac-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: #3d4a44; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.ac-nav a i { width: 18px; text-align: center; color: #a4935c; font-size: 14px; }
.ac-nav a:hover { background: #f8f2e0; color: var(--ac-green); }
.ac-nav a.is-on { background: linear-gradient(135deg, #005943, #00382b); color: #fff; box-shadow: 0 10px 20px -14px rgba(0, 56, 43, .9); }
.ac-nav a.is-on i { color: #E0C76C; }
.ac-nav a b { margin-inline-start: auto; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #f1e7c8; color: #5c4700; font-size: 11.5px; }
.ac-nav a.is-on b { background: rgba(255, 255, 255, .18); color: #fff; }
.ac-nav a b.is-alert { background: #c0392b; color: #fff; }
.ac-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* cards */
.ac-card { position: relative; min-width: 0; margin: 0; padding: 20px; border-radius: 22px; background: var(--ac-card); border: 1px solid rgba(186, 155, 50, .3); box-shadow: 0 20px 44px -36px rgba(0, 56, 43, .55); text-decoration: none; color: inherit; }
.ac-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ac-card-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16.5px; font-weight: 900; color: var(--c-brand-green); }
.ac-card-head h2 i { color: var(--ac-gold); font-size: 15px; }
.ac-card-head h2 small { font-size: 12.5px; font-weight: 700; color: #9a917f; }
.ac-card-head > a { font-size: 13px; font-weight: 800; color: #8F7520; text-decoration: none; white-space: nowrap; }
.ac-card-head > a:hover { text-decoration: underline; }
.ac-subhead { margin: 18px 0 10px; font-size: 14px; font-weight: 900; color: var(--ac-ink); }
.ac-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ac-side-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ac-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 16px; }
.ac-empty > span { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8e1, #f1e3b8); color: #BA9B32; font-size: 24px; }
.ac-empty > span.is-warn { background: #fff1e0; color: #c07800; }
.ac-empty b { font-size: 16px; color: var(--c-brand-green); }
.ac-empty small { max-width: 420px; font-size: 13px; color: var(--ac-muted); line-height: 1.7; margin-bottom: 8px; }
.ac-back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13.5px; font-weight: 800; color: var(--ac-green); text-decoration: none; }
.ac-back:hover { text-decoration: underline; }
.ac-link { font-size: 13px; font-weight: 800; color: #8F7520; }

/* overview */
.ac-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ac-stats > * { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 18px; background: var(--ac-card); border: 1px solid rgba(186, 155, 50, .3); text-decoration: none; color: inherit; box-shadow: 0 14px 30px -28px rgba(0, 56, 43, .6); transition: border-color .15s, transform .15s; }
.ac-stats > a:hover { border-color: #d8c58e; transform: translateY(-1px); }
.ac-stats i { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 6px; border-radius: 10px; background: #f6efd9; color: #8F7520; font-size: 14px; }
.ac-stats b { font-size: 22px; font-weight: 900; color: var(--ac-ink); line-height: 1.2; text-align: start; }
.ac-stats span { font-size: 12.5px; color: var(--ac-muted); }
.ac-stats .is-good i { background: #e3f3ea; color: #1f8a57; }
.ac-stats .is-warn i { background: #fff1d6; color: #b07000; }
.ac-stats .is-warn b { color: #9a5c00; }
.ac-ws-mini { display: flex; flex-direction: column; gap: 6px; background: linear-gradient(160deg, #fff8e6, #fffdf7 60%); }
.ac-ws-mini h2 { margin: 4px 0 0; font-size: 16px; font-weight: 900; color: var(--c-brand-green); }
.ac-ws-mini p { margin: 0; font-size: 13px; color: var(--ac-muted); line-height: 1.7; }
.ac-ws-mini.is-rejected, .ac-ws-mini.is-suspended { background: #fff8f6; }
.ac-ws-seal { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #CCA83B, #8F7520); color: #fff; font-size: 18px; }
.ac-ws-seal.is-lg { width: 64px; height: 64px; border-radius: 20px; font-size: 26px; flex-shrink: 0; }
.ac-ws-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ac-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.ac-shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; text-decoration: none; color: #3d4a44; font-size: 12.5px; font-weight: 800; text-align: center; transition: background .15s; }
.ac-shortcuts a i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #f6efd9; color: var(--ac-green); font-size: 15px; }
.ac-shortcuts a.is-gold i { background: linear-gradient(135deg, #CCA83B, #8F7520); color: #fff; }
.ac-shortcuts a:hover { background: #f8f2e0; }
.ac-recs { display: flex; flex-direction: column; }
.ac-books { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px !important; }

/* orders */
.ac-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ac-filters::-webkit-scrollbar { display: none; }
.ac-filters a { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--ac-line); background: #fff; color: #5d574b; font-size: 13.5px; font-weight: 800; text-decoration: none; }
.ac-filters a b { display: grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: #f4eedb; font-size: 11.5px; }
.ac-filters a.is-on { background: var(--ac-deep); border-color: var(--ac-deep); color: #fff; }
.ac-filters a.is-on b { background: rgba(255, 255, 255, .18); }
.ac-orders { display: flex; flex-direction: column; gap: 12px; }
.ac-order { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; background: var(--ac-card); border: 1px solid rgba(186, 155, 50, .3); box-shadow: 0 14px 30px -28px rgba(0, 56, 43, .6); }
.ac-latest .ac-order { padding: 0; border: 0; box-shadow: none; background: none; }
.ac-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; text-decoration: none; color: inherit; }
.ac-order-head div { display: flex; flex-direction: column; line-height: 1.4; }
.ac-order-head b { font-size: 16px; font-weight: 900; color: var(--c-brand-green); letter-spacing: .3px; text-align: start; }
.ac-order-head small { font-size: 12.5px; color: var(--ac-muted); }
.ac-status { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #eef1f0; color: #3d4a44; white-space: nowrap; }
.ac-status.is-new { background: #fff4d6; color: #7a5a00; }
.ac-status.is-prep { background: #e8f0fb; color: #23508a; }
.ac-status.is-ship { background: #ede8fb; color: #4b3a99; }
.ac-status.is-done { background: #e3f3ea; color: #146c42; }
.ac-status.is-off { background: #f4ecea; color: #8a3b30; }
.ac-status.is-warn { background: #fff1d6; color: #9a5c00; }
.ac-order-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: inherit; }
.ac-covers { display: flex; align-items: center; }
.ac-covers img, .ac-covers .cart-thumb-art { width: 44px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: 0 6px 12px -6px rgba(0, 36, 27, .7); border: 2px solid #fffdf7; }
.ac-covers > * + * { margin-inline-start: -10px; }
.ac-covers em { display: grid; place-items: center; width: 34px; height: 34px; margin-inline-start: 6px; border-radius: 50%; background: #f4eedb; font-style: normal; font-size: 12px; font-weight: 800; color: #6d6656; }
.ac-order-total { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.ac-order-total small { font-size: 11.5px; color: var(--ac-muted); }
.ac-order-total b { font-size: 18px; font-weight: 900; color: var(--ac-ink); }
.ac-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ac-progress i { height: 5px; border-radius: 4px; background: #ece4cc; }
.ac-progress[style*="--at: 0"] i:nth-child(-n+1),
.ac-progress[style*="--at: 1"] i:nth-child(-n+2),
.ac-progress[style*="--at: 2"] i:nth-child(-n+3),
.ac-progress[style*="--at: 3"] i { background: linear-gradient(90deg, #1f8a57, #005943); }
.ac-order-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* one order */
.ac-od-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ac-od-head div { display: flex; flex-direction: column; line-height: 1.35; }
.ac-od-head span { font-size: 12px; font-weight: 700; color: var(--ac-muted); }
.ac-od-head b { font-size: 22px; font-weight: 900; color: var(--c-brand-green); text-align: start; }
.ac-od-head small { font-size: 12.5px; color: var(--ac-muted); }
.ac-pay-badge { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #eef1f0; color: #3d4a44; white-space: nowrap; }
.ac-pay-badge.is-pending { background: #fff4d6; color: #7a5a00; }
.ac-pay-badge.is-paid { background: #e3f3ea; color: #146c42; }
.ac-pay-badge.is-cod { background: #e8f0fb; color: #23508a; }
.ac-pay-badge.is-refunded, .ac-pay-badge.is-failed { background: #f4ecea; color: #8a3b30; }
.ac-od-stopped { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; background: #f8f1ef; color: #7d2117; font-size: 14px; font-weight: 700; }
.ac-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ac-steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.ac-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 4px; }
.ac-steps li::before { content: ""; position: absolute; top: 19px; inset-inline-start: calc(-50% + 22px); inset-inline-end: calc(50% + 22px); height: 3px; border-radius: 3px; background: #ece4cc; }
.ac-steps li:first-child::before { display: none; }
.ac-steps li.done::before, .ac-steps li.now::before { background: #1f8a57; }
.ac-steps li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f6efd9; color: #a4935c; font-size: 15px; }
.ac-steps li.done > span { background: #1f8a57; color: #fff; }
.ac-steps li.now > span { background: #fff; color: var(--ac-gold); border: 2px solid var(--ac-gold); box-shadow: 0 0 0 5px rgba(224, 199, 108, .25); }
.ac-steps b { font-size: 12.5px; font-weight: 800; color: var(--ac-ink); line-height: 1.4; }
.ac-steps small { font-size: 11.5px; color: var(--ac-muted); }
.ac-steps li:not(.done):not(.now) b { color: #9a917f; }
.ac-ship { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #f5f8f6; border: 1px solid #d9e8df; }
.ac-ship > i { color: var(--ac-green); font-size: 18px; }
.ac-ship div { display: flex; flex-direction: column; flex: 1; min-width: 120px; line-height: 1.35; }
.ac-ship small { font-size: 12px; color: var(--ac-muted); }
.ac-ship b { font-size: 15px; letter-spacing: .5px; text-align: start; }
.ac-od-cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.ac-od-items { display: flex; flex-direction: column; gap: 12px; }
.ac-od-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.ac-od-cover img, .ac-od-cover .cart-thumb-art { display: block; width: 48px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: 0 8px 14px -8px rgba(0, 36, 27, .7); }
.ac-od-item-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.ac-od-item-text a, .ac-od-item-text > span { font-size: 14px; font-weight: 800; color: var(--ac-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-od-item-text a:hover { color: var(--ac-green); }
.ac-od-item-text small { font-size: 12.5px; color: var(--ac-muted); }
.ac-od-item > b { font-size: 14.5px; font-weight: 900; }
.ac-totals { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed rgba(186, 155, 50, .45); display: flex; flex-direction: column; gap: 8px; }
.ac-totals div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ac-totals dt { color: #5d574b; font-weight: 600; }
.ac-totals dd { margin: 0; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.ac-totals .is-good dt, .ac-totals .is-good dd { color: #1f8a57; }
.ac-totals .is-total { margin-top: 4px; padding-top: 10px; border-top: 1px solid #efe7d1; font-size: 18px; }
.ac-totals .is-total dt { color: var(--ac-ink); font-weight: 900; }
.ac-totals .is-total dd { color: var(--c-brand-green); font-weight: 900; }
.ac-od-info h2 { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: 13px; font-weight: 900; color: var(--c-brand-green); }
.ac-od-info h2:first-child { margin-top: 0; }
.ac-od-info h2 i { color: var(--ac-gold); width: 16px; text-align: center; }
.ac-od-info p { margin: 0; padding-inline-start: 24px; font-size: 13.5px; color: #3d4a44; line-height: 1.75; overflow-wrap: anywhere; }
.ac-od-info p.ac-hint { padding: 10px 0 0; }
.ac-od-actions { display: flex; flex-direction: column; gap: 8px; }
.ac-od-actions > * { justify-content: center; }
.ac-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ac-events li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed #efe6cf; }
.ac-events li:last-child { border: 0; padding: 0; }
.ac-events span { font-size: 12.5px; color: var(--ac-muted); font-weight: 700; }
.ac-events p { margin: 0; font-size: 13.5px; line-height: 1.7; }
.ac-main .co-card { border-radius: 22px; }

/* addresses */
.ac-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ac-toolbar p { margin: 0; font-size: 13.5px; color: var(--ac-muted); }
.ac-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ac-address { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; background: var(--ac-card); border: 1.5px solid rgba(186, 155, 50, .3); }
.ac-address.is-default { border-color: var(--ac-green); box-shadow: 0 14px 30px -26px rgba(0, 89, 67, .9); }
.ac-address header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ac-address header b { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--c-brand-green); }
.ac-address header b i { color: var(--ac-gold); font-size: 13px; }
.ac-default { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #e3f3ea; color: #146c42; font-size: 11.5px; font-weight: 800; }
.ac-address p { margin: 0; font-size: 13.5px; color: #3d4a44; line-height: 1.75; overflow-wrap: anywhere; }
.ac-address footer { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: auto; padding-top: 10px; border-top: 1px dashed #efe6cf; }

/* bottom sheet / dialog (address form) */
.ac-sheet { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ac-sheet[hidden] { display: none; }
.ac-sheet-mask { position: absolute; inset: 0; background: rgba(0, 26, 19, .55); backdrop-filter: blur(3px); }
.ac-sheet-card { position: relative; width: 100%; max-width: 620px; max-height: calc(100dvh - 40px); overflow-y: auto; padding: 22px; border-radius: 24px; background: #fffdf7; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); animation: ac-rise .25s ease both; }
@keyframes ac-rise { from { transform: translateY(16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ac-sheet-card { animation: none; } }
.ac-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ac-sheet-head h2 { margin: 0; font-size: 18px; font-weight: 900; color: var(--c-brand-green); }
.ac-sheet-x { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f4eedb; color: #5d574b; cursor: pointer; }
.ac-sheet-foot { position: sticky; bottom: -22px; display: flex; justify-content: flex-end; gap: 10px; margin: 0 -22px -22px; padding: 14px 22px; background: rgba(255, 253, 247, .97); border-top: 1px solid #efe7d1; }

/* interests & authors */
.ac-authors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ac-authors li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 1px solid #efe6cf; }
.ac-authors li > a { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.ac-authors li > a span { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.ac-authors b { font-size: 13.5px; color: var(--ac-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-authors small { font-size: 12px; color: var(--ac-muted); }
.ac-seal { width: 40px !important; height: 40px !important; font-size: 16px !important; flex-shrink: 0; }

/* settings */
.ac-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* wholesale */
.ac-ws-card { display: flex; flex-direction: column; gap: 18px; background: linear-gradient(160deg, #fff8e6, #fffdf7 55%); }
.ac-ws-top { display: flex; align-items: center; gap: 16px; }
.ac-ws-top h2 { margin: 6px 0 2px; font-size: 22px; font-weight: 900; color: var(--c-brand-green); }
.ac-ws-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ac-ws-terms div { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #efe3bf; line-height: 1.4; }
.ac-ws-terms i { color: var(--ac-gold); font-size: 15px; margin-bottom: 4px; }
.ac-ws-terms b { font-size: 15px; color: var(--ac-ink); text-align: start; }
.ac-ws-terms small { font-size: 12px; color: var(--ac-muted); }
.ac-ws-intro { background: linear-gradient(160deg, #00382b, #005943); border: 0; color: #fff; }
.ac-ws-intro .ac-kicker { color: #E0C76C; }
.ac-ws-intro h2 { margin: 4px 0 18px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; color: #fff; }
.ac-perks-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ac-ws-intro .ac-perks li > span { background: rgba(255, 255, 255, .08); border-color: rgba(224, 199, 108, .45); color: #E0C76C; box-shadow: none; }
.ac-ws-intro .ac-perks b { color: #fff; }
.ac-ws-intro .ac-perks small { color: #cfe1d9; }
.ac-kv { margin: 0 0 4px; display: grid; gap: 8px; }
.ac-kv div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding-bottom: 8px; border-bottom: 1px dashed #efe6cf; }
.ac-kv dt { color: var(--ac-muted); }
.ac-kv dd { margin: 0; font-weight: 800; color: var(--ac-ink); text-align: end; }
.ac-docs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ac-docs li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid #efe6cf; font-size: 13px; }
.ac-docs li i { color: var(--ac-gold); }
.ac-docs li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-docs li small { color: var(--ac-muted); }
.ac-upload { margin-top: 12px; }
.ac-alert.is-static { margin: 0 0 14px; }
[data-files-label].is-picked { border-style: solid; border-color: #bfe0cc; background: #f3faf6; }

/* invoices & lists */
.ac-list { display: flex; flex-direction: column; }
.ac-list-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px dashed #efe6cf; text-decoration: none; color: inherit; }
.ac-list-row:last-child { border-bottom: 0; }
.ac-list-row b { font-size: 14px; font-weight: 900; color: var(--c-brand-green); }
.ac-list-row span { font-size: 12.5px; color: var(--ac-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-list-row strong { font-size: 14.5px; font-weight: 900; }
.ac-list-row i { color: #a49a86; font-size: 12px; }
.ac-list-row:hover b { text-decoration: underline; }

/* quick order */
.ac-qo { display: flex; flex-direction: column; gap: 14px; }
.ac-qo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ac-qo-search { flex: 1 1 280px; background: #fff; }
.ac-qo-only { flex-shrink: 0; }
.ac-qo-paste { flex-basis: 100%; }
.ac-qo-paste summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 800; color: #8F7520; }
.ac-qo-paste summary::-webkit-details-marker { display: none; }
.ac-qo-paste > div { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 14px; border-radius: 16px; background: #fff; border: 1px dashed var(--ac-line); }
.ac-qo-paste textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ac-line); font: inherit; font-size: 14px; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; }
.ac-qo-paste button { align-self: flex-start; }
.ac-qo-table { border-radius: 20px; background: var(--ac-card); border: 1px solid rgba(186, 155, 50, .3); overflow: hidden; }
.ac-qo-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 70px 140px 100px; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #f1ead6; }
.ac-qo-row[hidden] { display: none; }
.ac-qo-head { position: sticky; top: 0; z-index: 2; background: #f8f2e0; font-size: 12px; font-weight: 800; color: #7a715c; padding-block: 12px; }
.ac-qo-row.is-picked { background: #f5faf6; }
.ac-qo-row.is-out { opacity: .55; }
.ac-qo-book { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ac-qo-book > a img, .ac-qo-book > a .cart-thumb-art { display: block; width: 38px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 3px 3px 2px; box-shadow: 0 6px 12px -6px rgba(0, 36, 27, .7); }
.ac-qo-book > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.ac-qo-book > span > a { font-size: 13.5px; font-weight: 800; color: var(--ac-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-qo-book small { font-size: 11.5px; color: var(--ac-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-qo-book em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 11.5px; font-weight: 800; color: #1f8a57; }
.ac-qo-price { display: flex; flex-direction: column; line-height: 1.35; direction: ltr; text-align: start; }
[dir="rtl"] .ac-qo-price { text-align: right; }
.ac-qo-price b { font-size: 14.5px; font-weight: 900; color: var(--c-brand-green); }
.ac-qo-price s { font-size: 12px; color: #a59c8a; }
.ac-qo-price small { font-size: 11px; color: #8F7520; font-weight: 700; direction: inherit; }
[dir="rtl"] .ac-qo-price small { direction: rtl; }
.ac-qo-stock i { font-style: normal; font-size: 13px; font-weight: 800; color: #1f8a57; }
.ac-qo-stock i.is-low { color: #b07000; }
.ac-qo-stock i.is-out { color: #a3271c; font-size: 12px; }
.ac-qo-qty { display: inline-flex; align-items: center; border: 1px solid var(--ac-line); border-radius: 12px; background: #fff; overflow: hidden; width: max-content; }
.ac-qo-qty button { width: 34px; height: 38px; border: 0; background: #faf6ea; color: var(--ac-green); font-size: 17px; font-weight: 800; cursor: pointer; }
.ac-qo-qty button:disabled { cursor: not-allowed; color: #c9c0a8; }
.ac-qo-qty input { width: 56px; height: 38px; border: 0; text-align: center; font: inherit; font-size: 15px; font-weight: 800; color: var(--ac-ink); -moz-appearance: textfield; }
.ac-qo-qty input::-webkit-outer-spin-button, .ac-qo-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ac-qo-row.is-picked .ac-qo-qty { border-color: var(--ac-green); }
.ac-qo-line { display: flex; flex-direction: column; font-size: 14px; font-weight: 900; color: var(--ac-ink); text-align: end; line-height: 1.35; }
.ac-qo-line small { font-size: 11px; font-weight: 700; color: #b07000; direction: ltr; }
[dir="rtl"] .ac-qo-line small { direction: rtl; }
.ac-qo-none { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 30px; color: var(--ac-muted); font-size: 14px; }
.ac-qo-bar { position: sticky; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 20px; background: rgba(0, 56, 43, .96); color: #fff; box-shadow: 0 20px 40px -18px rgba(0, 36, 27, .8); backdrop-filter: blur(10px); }
.ac-qo-sum { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.ac-qo-sum span { font-size: 12.5px; color: #cfe1d9; }
.ac-qo-sum b { font-size: 22px; font-weight: 900; color: #FAF0CD; text-align: start; }
.ac-qo-sum small { font-size: 12px; color: #E0C76C; }
.ac-qo-bar .ac-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.ac-qo-bar .ac-btn { background: linear-gradient(135deg, #E0C76C, #BA9B32) !important; color: #00382b !important; }
.ac-qo-bar .ac-btn i { color: #00382b !important; }
.ac-qo-bar .ac-btn:disabled { opacity: .5; }

/* ==========================================================================
   Tablets and phones
   ========================================================================== */
@media (max-width: 1100px) {
  .ac-books { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .ac-ws-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
  .ac-auth-wrap { grid-template-columns: minmax(0, 520px); }
  .ac-auth-side { order: 2; padding: 0 4px; }
  .ac-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* the menu becomes a row of chips that scrolls sideways */
  .ac-nav { position: static; flex-direction: row; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: none; border-radius: 18px; scroll-snap-type: x proximity; }
  .ac-nav::-webkit-scrollbar { display: none; }
  .ac-nav a { flex-shrink: 0; padding: 9px 14px; font-size: 13px; border-radius: 12px; scroll-snap-align: start; }
  .ac-nav a i { width: auto; }
  .ac-nav a b { margin-inline-start: 2px; }
  .ac-cols, .ac-od-cols, .ac-settings { grid-template-columns: minmax(0, 1fr); }
  .ac-qo-row { grid-template-columns: minmax(0, 1fr) 110px 60px 130px 90px; }
}
@media (max-width: 768px) {
  .ac-qo-head { display: none; }
  .ac-qo-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "book book" "price stock" "qty line"; gap: 10px 12px; padding: 14px; }
  .ac-qo-book { grid-area: book; }
  .ac-qo-price { grid-area: price; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
  .ac-qo-stock { grid-area: stock; text-align: end; }
  .ac-qo-stock i[data-l]::before { content: attr(data-l) " "; font-weight: 600; color: var(--ac-muted); }
  .ac-qo-qty { grid-area: qty; }
  .ac-qo-line { grid-area: line; align-self: center; font-size: 15px; }
  .ac-qo-bar { bottom: calc(var(--tabbar-h, 0px) + 10px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
  .ac-auth { padding: 14px 0 40px; }
  .ac-auth-card { padding: 20px 16px; border-radius: 22px; }
  .ac-auth-card::before { inset: 5px; border-radius: 18px; }
  .ac-auth-card h1 { font-size: 21px; }
  .ac-auth-side h2 { font-size: 21px; margin-bottom: 14px; }
  .ac-perks li > span { width: 38px; height: 38px; font-size: 14px; }
  .ac-welcome-card { padding: 22px 16px; border-radius: 22px; }
  .ac-chips-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ac-chips-lg .ac-chip > span { min-height: 92px; padding: 14px 12px; }
  .ac-levels { grid-template-columns: minmax(0, 1fr); }
  .ac-welcome-actions > * { flex: 1 1 100%; justify-content: center; }
  .ac-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  .ac-hero { padding: 14px 0 12px; }
  .ac-hero-row { align-items: flex-start; }
  .ac-who { gap: 12px; }
  .ac-avatar { width: 50px; height: 50px; font-size: 18px; }
  .ac-signout { padding: 9px; width: 40px; height: 40px; justify-content: center; }
  .ac-signout span { display: none; }
  .ac-tags .ac-tag[dir="ltr"] { max-width: 220px; }
  .ac-body { padding-bottom: 36px; }
  .ac-card { padding: 16px; border-radius: 20px; }
  .ac-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ac-stats > * { padding: 14px; border-radius: 16px; }
  .ac-stats b { font-size: 19px; }
  .ac-banner, .ac-alert { flex-wrap: wrap; padding: 12px 14px; gap: 10px 12px; }
  .ac-banner > button { width: 100%; justify-content: center; }
  .ac-alert-cta { width: 100%; padding-inline-start: 52px; }
  .ac-books { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .ac-order { padding: 14px; border-radius: 18px; }
  .ac-covers img, .ac-covers .cart-thumb-art { width: 38px; }
  .ac-order-actions > * { flex: 1 1 auto; justify-content: center; }
  .ac-steps b { font-size: 11px; }
  .ac-steps li > span { width: 34px; height: 34px; font-size: 13px; }
  .ac-steps li::before { top: 16px; inset-inline-start: calc(-50% + 19px); inset-inline-end: calc(50% + 19px); }
  .ac-steps small { display: none; }
  .ac-od-head b { font-size: 19px; }
  .ac-events li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ac-addresses, .ac-authors { grid-template-columns: minmax(0, 1fr); }
  .ac-toolbar > .ac-btn { width: 100%; justify-content: center; }
  .ac-sheet { align-items: flex-end; padding: 0; }
  .ac-sheet-card { max-width: none; max-height: 92dvh; border-radius: 24px 24px 0 0; padding: 18px 16px 16px; }
  .ac-sheet-foot { margin: 0 -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); bottom: -16px; }
  .ac-sheet-foot > * { flex: 1; justify-content: center; }
  .ac-ws-top { align-items: flex-start; }
  .ac-ws-top h2 { font-size: 19px; }
  .ac-ws-terms { gap: 8px; }
  .ac-ws-terms div { padding: 12px; }
  .ac-ws-actions > * { flex: 1 1 100%; justify-content: center; }
  .ac-perks-row { grid-template-columns: minmax(0, 1fr); }
  .ac-list-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .ac-list-row span { grid-column: 1; grid-row: 2; }
  .ac-list-row strong { grid-row: 1 / span 2; align-self: center; }
  .ac-list-row i { display: none; }
  .ac-form-foot > .ac-btn { width: 100%; justify-content: center; }
  .ac-inline-field { flex-direction: column; align-items: stretch; }
  .ac-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .ac-seg span { text-align: center; }
  .ac-qo-bar { flex-wrap: wrap; padding: 12px; border-radius: 18px; gap: 8px 10px; }
  .ac-qo-sum { flex-basis: 100%; }
  .ac-qo-bar .ac-btn { flex: 1; justify-content: center; }
}
@media (max-width: 380px) {
  .ac-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-chips-lg .ac-chip small { display: none; }
}
