/* Atheel Line — bag, checkout and account panels */

/* Cards: price + states */
.card { min-width: 0; }
.card-info p { gap: 10px; }
.card-info p > span:first-child { min-width: 0; }
.card-info p > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price s, .pv-price s { color: var(--stone); margin-inline-end: 4px; }
.card-tag.sale { background: var(--ink); color: var(--paper); direction: ltr; }
.card.is-out .card-media img { opacity: .55; }

/* ── Overlay ── */
.ov { position: fixed; inset: 0; z-index: 80; }
.ov-open { overflow: hidden; }
.ov-scrim { position: absolute; inset: 0; background: rgba(12, 12, 14, .5); opacity: 0; transition: opacity .45s var(--ease); }
.ov.open .ov-scrim { opacity: 1; }
.ov-panel { position: absolute; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; }
.ov-panel.drawer { inset-block: 0; inset-inline-end: 0; width: min(460px, 100%); transform: translateX(100%); transition: transform .55s var(--ease); }
[dir="rtl"] .ov-panel.drawer { transform: translateX(-100%); }
.ov.open .ov-panel.drawer { transform: none; }
.ov-panel.modal { inset: 0; margin: auto; width: min(520px, calc(100% - 32px)); height: fit-content; max-height: calc(100% - 48px); opacity: 0; transform: translateY(24px); transition: opacity .4s ease, transform .5s var(--ease); }
.ov-panel.modal.wide { width: min(980px, calc(100% - 32px)); }
.ov.open .ov-panel.modal { opacity: 1; transform: none; }
.ov-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--line); flex: none; }
.ov-head h2 { font: 300 clamp(1.6rem, 2.6vw, 2.1rem)/1.2 var(--serif); }
.ov-x { font: 300 30px/1 var(--sans); padding: 0 6px; }
.ov-body { padding: 24px 28px; overflow-y: auto; flex: 1; }
.ov-foot { padding: 20px 28px 26px; border-top: 1px solid var(--line); flex: none; display: flex; flex-direction: column; gap: 14px; }
.ov h3 { font: 400 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--stone); margin: 4px 0 16px; }
.ov .muted { color: var(--stone); font-size: 13.5px; }

/* Buttons + forms */
.sbtn { display: block; width: 100%; padding: 18px 20px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); font: 400 11.5px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; text-align: center; transition: opacity .3s; }
.sbtn:hover { opacity: .82; }
.sbtn.ghost { background: none; color: var(--ink); }
.sbtn:disabled { opacity: .4; cursor: default; }
.form { display: flex; flex-direction: column; gap: 14px; }
.f { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.f span { font: 400 10.5px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.f input, .f textarea, .promo input { border: 0; border-bottom: 1px solid var(--line); background: none; padding: 9px 0; font: 300 16px var(--sans); color: var(--ink); border-radius: 0; outline: none; width: 100%; transition: border-color .3s; }
.f input:focus, .f textarea:focus, .promo input:focus { border-color: var(--ink); }
.f textarea { min-height: 60px; resize: vertical; }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
.f2 { display: flex; gap: 18px; }
.form-err { color: #9c2f2f; font-size: 13.5px; min-height: 1.2em; margin: 0; }
.form-alt { text-align: center; font-size: 13.5px; color: var(--stone); }
.form-alt button, .backlink, .promo-on button, .rm { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); font-size: 13px; }
.backlink { align-self: flex-start; margin-bottom: 14px; color: var(--stone); }
[dir="rtl"] .ov * { letter-spacing: 0 !important; }
[dir="rtl"] .ov h3, [dir="rtl"] .f span, [dir="rtl"] .sbtn { font-size: 14px; }

/* Product view */
.pv { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pv-img { aspect-ratio: 3 / 4.2; background: var(--ivory); overflow: hidden; }
.pv-info { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.pv-colour { color: var(--stone); }
.pv-price { font-size: 18px; display: flex; align-items: center; gap: 14px; }
.pv-low { font: 400 10.5px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #9c2f2f; }
.pv-desc { color: #3b3935; line-height: 1.75; white-space: pre-line; }
.pv-label { font: 400 10.5px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--stone); margin-top: 8px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button { min-width: 52px; padding: 12px 14px; border: 1px solid var(--line); font-size: 13px; transition: .25s; }
.sizes button:hover { border-color: var(--ink); }
.sizes button[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pv-info .sbtn { margin-top: auto; }

/* Bag lines */
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:first-child { padding-top: 0; }
.line img { width: 72px; height: 98px; object-fit: cover; background: var(--ivory); }
.line-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line-info b { font-weight: 400; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; }
.line-info span { color: var(--stone); font-size: 13.5px; }
.line-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.stepper > button:not(.rm) { width: 30px; height: 30px; border: 1px solid var(--line); font-size: 16px; line-height: 1; }
.stepper > span { min-width: 30px; text-align: center; color: var(--ink); }
.stepper .rm { margin-inline-start: 12px; color: var(--stone); }
.promo { display: flex; gap: 12px; align-items: flex-end; }
.promo button { font: 400 11px var(--sans); letter-spacing: .24em; text-transform: uppercase; padding: 10px 0; }
.promo-on { font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px; }
.tot { margin: 0; display: grid; gap: 7px; }
.tot div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.tot dt { color: var(--stone); } .tot dd { margin: 0; font-variant-numeric: tabular-nums; }
.tot .grand { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 5px; font-size: 16px; }
.tot .grand dt { color: var(--ink); }
.empty { text-align: center; padding: 60px 0; display: flex; flex-direction: column; gap: 24px; color: var(--stone); }

/* Checkout */
.gate { display: flex; flex-direction: column; gap: 12px; }
.gate h3 { font: 300 1.7rem/1.25 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0; }
.gate > p { color: var(--stone); margin-bottom: 10px; }
.opt { display: flex; flex-direction: column; gap: 4px; text-align: start; padding: 18px 20px; border: 1px solid var(--line); transition: .3s; position: relative; }
.opt:hover { border-color: var(--ink); background: #fff; }
.opt b { font: 400 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.opt span { color: var(--stone); font-size: 13.5px; }
.opt::after { content: '→'; position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); }
[dir="rtl"] .opt::after { content: '←'; }
[dir="rtl"] .opt b { font-size: 15px; }
.co { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; }
.co-sum { background: var(--ivory); padding: 24px; align-self: start; }
.co-sum .line { grid-template-columns: 54px 1fr auto; border-color: rgba(18, 18, 18, .1); }
.co-sum .line img { width: 54px; height: 74px; }
.co-sum .tot { margin-top: 16px; }
.co .form h3:not(:first-child) { margin-top: 18px; }
.signed { color: var(--stone); font-size: 13.5px; margin-top: -8px; }
.pay { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--ink); }
.pay b { font-weight: 400; } .pay span { color: var(--stone); font-size: 13.5px; }
.done { display: flex; flex-direction: column; gap: 22px; text-align: center; padding: 10px 0; }
.done > p:first-child { color: #3b3935; }
.done-no { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--ivory); }
.done-no span { font: 400 10.5px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--stone); }
.done-no b { font: 400 30px/1 var(--serif); letter-spacing: .06em; }

/* Account */
.hello { font: 300 1.9rem/1.2 var(--serif); }
.sub { margin-top: 30px !important; }
.ord { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.ord-top { display: flex; justify-content: space-between; align-items: center; }
.ord-top b { font-weight: 500; letter-spacing: .06em; }
.ord-item { font-size: 13.5px; }
.st { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 10px; border: 1px solid currentColor; border-radius: 20px; }
.st-delivered { color: #2f6b4a; } .st-cancelled { color: var(--stone); } .st-shipped { color: #2c5c86; }
button.linkish { font: inherit; letter-spacing: inherit; text-transform: inherit; }

@media (max-width: 760px) {
  .ov-panel.modal, .ov-panel.modal.wide { inset: auto 0 0 0; margin: 0; width: 100%; max-height: 92%; }
  .ov-head, .ov-body, .ov-foot { padding-inline: 20px; }
  .pv, .co { grid-template-columns: 1fr; gap: 22px; }
  .pv-img { aspect-ratio: 4 / 3.6; }
  .co-sum { order: -1; }
  .f2 { flex-direction: column; gap: 14px; }
}

/* BenefitPay transfer details */
.paybox { border: 1px solid var(--ink); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; text-align: start; }
.paybox h3 { margin-bottom: 8px; color: var(--ink); }
.paybox > .muted { margin-bottom: 8px; line-height: 1.6; }
.pay-title { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.pay-title b { font-weight: 400; } .pay-title span { color: var(--stone); font-size: 13.5px; line-height: 1.6; }
.pay-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.pay-row span { font: 400 10.5px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.pay-row b { font: 400 15px/1.3 var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: start; }
[dir="rtl"] .pay-row b { text-align: right; }
[dir="rtl"] .pay-row span { font-size: 13px; }
.copy { font: 400 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 9px 12px; border: 1px solid var(--line); min-width: 74px; transition: .25s; }
.copy:hover { border-color: var(--ink); }
.copy.ok { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[dir="rtl"] .copy { font-size: 13px; }
.is-due { color: #9a6a14; } .is-paid { color: #2f6b4a; }
@media (max-width: 760px) { .pay-row { grid-template-columns: 1fr auto; } .pay-row span { grid-column: 1 / -1; margin-bottom: -6px; } }

/* Country select, delivery note, saved address */
.f select { border: 0; border-bottom: 1px solid var(--line); background: none; padding: 9px 0; font: 300 16px var(--sans); color: var(--ink); border-radius: 0; outline: none; width: 100%; appearance: none;
  background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 9px) 55% / 5px 5px no-repeat, linear-gradient(135deg, var(--ink) 50%, transparent 50%) calc(100% - 4px) 55% / 5px 5px no-repeat; }
[dir="rtl"] .f select { background-position: 9px 55%, 4px 55%; }
.f select:focus { border-color: var(--ink); }
.ship-note { margin: -2px 0 0; font-size: 12.5px; color: var(--stone); }
.addr { line-height: 1.7; margin-bottom: 6px; }
.signed + .f, .ov .sub + .form { margin-top: 0; }

/* Payment screenshot upload */
.proof { display: flex; flex-direction: column; gap: 10px; text-align: start; padding: 16px 18px; background: var(--ivory); }
.proof h3 { margin: 0; color: var(--ink); }
.proof .muted { line-height: 1.6; }
.proof-msg { margin: 0; font-size: 14px; line-height: 1.6; }
.proof-msg:empty { display: none; }
.proof-msg.v-match { color: #2f6b4a; } .proof-msg.v-mismatch { color: #9c2f2f; }
.filebtn { cursor: pointer; background: var(--paper) !important; }
.proof.busy .filebtn { opacity: .4; pointer-events: none; }
.ord .proof { margin: 8px 0; }
.pend { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pend-t { font: 300 1.4rem/1.3 var(--serif); }
