/* ============================================================
   SUPPORT SYSTEM
   Shipping, tracking, returns, refunds — the pages a customer
   reads before they trust a watch shop with $400.
   ============================================================ */

/* ---------- Page hero ---------- */
.sup-hero {
  background: linear-gradient(175deg, var(--c-ice-deep) 0%, var(--c-ice) 55%, var(--c-white) 100%);
  border-bottom: 1px solid var(--c-line);
  padding-block: var(--s-7) var(--s-8);
}
.sup-hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-navy);
  margin-bottom: var(--s-3);
}
.sup-hero__title {
  font-family: var(--f-display); font-size: var(--t-2xl);
  font-weight: 500; line-height: 1.1; margin-bottom: var(--s-4);
  max-width: 20ch;
}
.sup-hero__lede { color: var(--c-ink-soft); font-size: var(--t-md); line-height: 1.7; max-width: 60ch; }

/* Key figures under the hero lede */
.sup-facts {
  display: flex; flex-wrap: wrap; gap: var(--s-6);
  margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: 1px solid var(--c-line);
}
.sup-fact__n {
  font-family: var(--f-display); font-size: var(--t-xl); font-weight: 600;
  color: var(--c-navy-deep); line-height: 1; font-variant-numeric: tabular-nums;
}
.sup-fact__l {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-ink-soft); margin-top: 6px;
}

/* ---------- Quick-link cards ---------- */
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.help-card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5);
  background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.help-card:hover { border-color: #BFD6E6; box-shadow: var(--sh-3); transform: translateY(-3px); }
.help-card__icon {
  width: 44px; height: 44px; border-radius: var(--r);
  background: var(--c-ice-deep); color: var(--c-navy-deep);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.help-card__t { font-size: var(--t-base); font-weight: 700; }
.help-card__d { font-size: var(--t-sm); color: var(--c-ink-soft); line-height: 1.55; flex: 1; }
.help-card__go {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-navy);
  display: inline-flex; align-items: center; gap: 6px;
}
.help-card:hover .help-card__go svg { transform: translateX(3px); }
.help-card__go svg { transition: transform .2s var(--ease); }

@media (max-width: 1000px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .help-grid { grid-template-columns: 1fr; gap: var(--s-3); } }

/* ============================================================
   JOURNEY TIMELINE
   The order's life, stage by stage. Horizontal on desktop so the
   whole path is visible at once; vertical on phones where it is not.
   ============================================================ */
.journey { position: relative; }
.journey__track {
  display: grid;
  grid-template-columns: repeat(var(--steps, 8), 1fr);
  gap: var(--s-3);
  position: relative;
}
/* The rail the nodes sit on */
.journey__track::before {
  content: ''; position: absolute;
  top: 27px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, var(--c-navy) 0%, var(--c-line) 100%);
  z-index: 0;
}
.jstep { position: relative; z-index: 1; text-align: center; }
.jstep__node {
  width: 54px; height: 54px; margin: 0 auto var(--s-3);
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid var(--c-line);
  color: var(--c-steel);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.jstep:hover .jstep__node { border-color: var(--c-navy); color: var(--c-navy); box-shadow: 0 0 0 4px rgba(11,76,124,.09); }
/* Stages that always happen carry the brand colour; later ones stay neutral
   until a real order reaches them. */
.jstep--done .jstep__node { border-color: var(--c-navy); color: var(--c-navy); background: var(--c-ice-deep); }
.jstep__n {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: var(--c-steel); margin-bottom: 4px;
}
.jstep__t { font-size: var(--t-sm); font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.jstep__d { font-size: 11.5px; color: var(--c-ink-soft); line-height: 1.45; }
.jstep__time {
  display: inline-block; margin-top: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 100px;
  background: var(--c-ice); color: var(--c-navy-deep);
  border: 1px solid var(--c-line-soft);
}

@media (max-width: 1100px) {
  .journey__track { grid-template-columns: repeat(4, 1fr); gap: var(--s-5) var(--s-3); }
  .journey__track::before { display: none; }
}
@media (max-width: 640px) {
  /* Vertical rail: a phone cannot show eight columns legibly */
  .journey__track { grid-template-columns: 1fr; gap: 0; }
  .journey__track::before {
    display: block; top: 24px; bottom: 24px; left: 26px; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg, var(--c-navy) 0%, var(--c-line) 100%);
  }
  .jstep {
    display: grid; grid-template-columns: 54px 1fr; gap: var(--s-4);
    text-align: left; padding-block: var(--s-3);
  }
  .jstep__node { margin: 0; }
  .jstep__time { margin-top: 5px; }
}

/* ============================================================
   NUMBERED PROCESS
   Returns and refunds, as a sequence of actions with owners.
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.step-card {
  position: relative;
  background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--s-6) var(--s-5) var(--s-5);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.step-card:hover { border-color: #BFD6E6; box-shadow: var(--sh-2); }
.step-card__n {
  position: absolute; top: -14px; left: var(--s-5);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-navy-deep); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--t-xs); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step-card__icon { color: var(--c-navy); margin-bottom: var(--s-3); }
.step-card__t { font-size: var(--t-base); font-weight: 700; margin-bottom: 6px; }
.step-card__d { font-size: var(--t-sm); color: var(--c-ink-soft); line-height: 1.6; }
.step-card__meta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--s-3); padding-top: var(--s-3);
  border-top: 1px solid var(--c-line-soft);
  font-size: 11.5px; font-weight: 600; color: var(--c-navy-deep);
  width: 100%;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   INFO TABLE
   Rates, timings — facts that belong in rows, not paragraphs.
   ============================================================ */
.itable {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--c-line); border-radius: var(--r-lg);
  overflow: hidden; font-size: var(--t-sm);
}
.itable th {
  text-align: left; padding: 13px var(--s-4);
  background: var(--c-ice); color: var(--c-ink);
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid var(--c-line);
}
.itable td { padding: 14px var(--s-4); border-bottom: 1px solid var(--c-line-soft); vertical-align: top; }
.itable tr:last-child td { border-bottom: 0; }
.itable tbody tr:hover td { background: var(--c-ice); }
.itable td:first-child { font-weight: 600; color: var(--c-ink); }
.itable strong { color: var(--c-navy-deep); }

@media (max-width: 640px) {
  /* Stack each row into a card; a 4-column table cannot survive 375px */
  .itable, .itable tbody, .itable tr, .itable td { display: block; width: 100%; }
  .itable thead { display: none; }
  .itable tr {
    border-bottom: 1px solid var(--c-line);
    padding: var(--s-3) 0;
  }
  .itable tr:last-child { border-bottom: 0; }
  .itable td { border: 0; padding: 5px var(--s-4); }
  .itable td::before {
    content: attr(data-label);
    display: block; font-size: 10px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--c-steel); margin-bottom: 2px;
  }
}

/* ============================================================
   CALLOUT
   ============================================================ */
.callout {
  display: flex; gap: var(--s-4);
  background: var(--c-ice); border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-navy);
  border-radius: var(--r); padding: var(--s-5);
}
.callout--warn { border-left-color: var(--c-sale); }
.callout--ok { border-left-color: var(--c-ok); }
.callout__icon { color: var(--c-navy); flex: none; margin-top: 1px; }
.callout--warn .callout__icon { color: var(--c-sale); }
.callout--ok .callout__icon { color: var(--c-ok); }
.callout__t { font-size: var(--t-base); font-weight: 700; margin-bottom: 5px; }
.callout__d { font-size: var(--t-sm); color: var(--c-ink-soft); line-height: 1.65; }
.callout__d a { color: var(--c-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq { border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; background: var(--c-white); }
.faq__item + .faq__item { border-top: 1px solid var(--c-line-soft); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: var(--s-5);
  font-size: var(--t-md); font-weight: 600; text-align: left; color: var(--c-ink);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.faq__q:hover { background: var(--c-ice); color: var(--c-navy-deep); }
.faq__q svg { flex: none; color: var(--c-steel); transition: transform .24s var(--ease); }
.faq__q[aria-expanded="true"] { color: var(--c-navy-deep); }
.faq__q[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--c-navy); }
.faq__a {
  display: none;
  padding: 0 var(--s-5) var(--s-5);
  font-size: var(--t-sm); color: var(--c-ink-soft); line-height: 1.75;
  max-width: 74ch;
}
.faq__a.is-open { display: block; }
.faq__a p + p { margin-top: var(--s-3); }
.faq__a a { color: var(--c-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.faq__a ul { margin-top: var(--s-2); padding-left: var(--s-4); list-style: disc; }
.faq__a li { margin-top: 5px; }

@media (max-width: 560px) {
  .faq__q { padding: var(--s-4); font-size: var(--t-base); }
  .faq__a { padding: 0 var(--s-4) var(--s-4); }
}

/* ============================================================
   TRACK ORDER
   ============================================================ */
.track-panel {
  background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
  padding: clamp(24px, 3vw, 40px);
}
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--s-4); align-items: end; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field__l { font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink); }
.field__i {
  padding: 13px var(--s-4);
  border: 1px solid var(--c-line); border-radius: var(--r);
  font-size: var(--t-base); background: var(--c-white);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field__i:focus { outline: none; border-color: var(--c-navy); box-shadow: 0 0 0 3px rgba(11,76,124,.12); }
.field__h { font-size: 11.5px; color: var(--c-ink-soft); }

@media (max-width: 800px) {
  .track-form { grid-template-columns: 1fr; }
  .track-form .btn { width: 100%; }
}

/* Status banner shown after a lookup */
.track-result { margin-top: var(--s-6); }
.track-status {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-5);
  background: var(--c-ice); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); margin-bottom: var(--s-5);
}
.track-status__badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 100px;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; flex: none;
}
.badge-status--processing { background: #FFF4E0; color: #8A5A00; border: 1px solid #F0DCB0; }
.badge-status--shipped { background: var(--c-ice-deep); color: var(--c-navy-deep); border: 1px solid #C7DEEE; }
.badge-status--delivered { background: #E4F5EC; color: var(--c-ok); border: 1px solid #BFE5D2; }
.badge-status--none { background: var(--c-ice); color: var(--c-ink-soft); border: 1px solid var(--c-line); }

.track-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.track-meta__k { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-steel); }
.track-meta__v { font-size: var(--t-base); font-weight: 600; margin-top: 3px; }
@media (max-width: 760px) { .track-meta { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   CONTACT / SUPPORT PANEL
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.contact-card {
  background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--s-6) var(--s-5);
  text-align: center;
}
.contact-card__icon {
  width: 48px; height: 48px; margin: 0 auto var(--s-4); border-radius: 50%;
  background: var(--c-ice-deep); color: var(--c-navy-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-card__t { font-size: var(--t-base); font-weight: 700; margin-bottom: 6px; }
.contact-card__v { font-size: var(--t-sm); color: var(--c-navy); font-weight: 600; word-break: break-word; }
.contact-card__d { font-size: 11.5px; color: var(--c-ink-soft); margin-top: 6px; line-height: 1.5; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s-3); } }

/* ============================================================
   PROSE — long-form policy body
   ============================================================ */
.prose { max-width: 74ch; }
.prose h2 {
  font-family: var(--f-display); font-size: var(--t-xl); font-weight: 500;
  margin-top: var(--s-8); margin-bottom: var(--s-4);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--c-line);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--t-md); font-weight: 700; margin-top: var(--s-6); margin-bottom: var(--s-3); }
.prose p { color: var(--c-ink-soft); line-height: 1.8; margin-bottom: var(--s-4); }
.prose ul, .prose ol { margin: 0 0 var(--s-4) var(--s-5); color: var(--c-ink-soft); line-height: 1.8; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--s-2); }
.prose li::marker { color: var(--c-navy); }
.prose strong { color: var(--c-ink); font-weight: 600; }
.prose a { color: var(--c-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; margin-bottom: var(--s-5); }

/* ---------- Section nav for long policies ---------- */
.policy-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--s-8); align-items: start; }
.policy-nav { position: sticky; top: 100px; }
.policy-nav__t {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: var(--s-3);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--c-line);
}
.policy-nav a {
  display: block; padding: 7px 0; font-size: var(--t-sm);
  color: var(--c-ink-soft); border-left: 2px solid transparent; padding-left: var(--s-3);
  margin-left: -2px;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.policy-nav a:hover { color: var(--c-navy); border-left-color: var(--c-navy); }
@media (max-width: 900px) {
  .policy-layout { grid-template-columns: 1fr; gap: var(--s-5); }
  .policy-nav { position: static; }
  .policy-nav__list { display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .policy-nav a {
    border: 1px solid var(--c-line); border-radius: 100px;
    padding: 6px 13px; margin: 0; font-size: var(--t-xs);
  }
  .policy-nav a:hover { border-color: var(--c-navy); }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--c-navy-deep); color: #fff;
  border-radius: var(--r-lg); padding: clamp(28px, 4vw, 52px);
  display: grid; grid-template-columns: 1.2fr auto; gap: var(--s-6); align-items: center;
}
.cta-band__t { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 500; margin-bottom: var(--s-2); }
.cta-band__d { color: rgba(255,255,255,.75); font-size: var(--t-sm); line-height: 1.7; max-width: 56ch; }
.cta-band__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.cta-band .btn--primary { background: #fff; color: var(--c-navy-deep); }
.cta-band .btn--primary:hover { background: var(--c-ice-deep); }
.cta-band .btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.cta-band .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
@media (max-width: 800px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__actions .btn { flex: 1; }
}

/* ============================================================
   MY ACCOUNT — login, register, dashboard
   ============================================================ */
.woocommerce-account .entry-content { font-size: var(--t-md); }

#customer_login {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7);
  margin: 0;
}
#customer_login .u-column1, #customer_login .u-column2 {
  background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--s-6);
}
#customer_login h2 {
  font-family: var(--f-display); font-weight: 800; font-size: var(--t-lg);
  color: var(--c-ink); margin-bottom: var(--s-5);
}

.woocommerce-form-row { margin-bottom: var(--s-4); }
.woocommerce-form-row label {
  display: block; font-size: var(--t-sm); font-weight: 600;
  color: var(--c-ink); margin-bottom: 6px;
}
.woocommerce-form-row .required { color: var(--c-sale); text-decoration: none; }
.woocommerce-Input {
  width: 100%; padding: 12px var(--s-4);
  border: 1px solid var(--c-line); border-radius: var(--r);
  font-size: var(--t-sm); font-family: var(--f-ui);
  background: var(--c-white); color: var(--c-ink);
  transition: border-color .18s var(--ease);
}
.woocommerce-Input:focus { outline: none; border-color: var(--c-navy); }

.woocommerce-form-login__rememberme {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--t-sm); color: var(--c-ink-soft); font-weight: 500;
  cursor: pointer;
}
.form-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); }

.woocommerce-form-login__submit,
.woocommerce-form-register__submit,
.woocommerce-Button {
  background: var(--c-navy); color: #fff; border: none;
  padding: 12px var(--s-5); border-radius: var(--r);
  font-size: var(--t-sm); font-weight: 700; letter-spacing: .02em;
  cursor: pointer; transition: background-color .18s var(--ease);
}
.woocommerce-form-login__submit:hover,
.woocommerce-form-register__submit:hover,
.woocommerce-Button:hover { background: var(--c-navy-deep); }

.woocommerce-LostPassword {
  margin-top: var(--s-4); font-size: var(--t-sm);
}
.woocommerce-LostPassword a { color: var(--c-navy); font-weight: 600; }

/* --- Dashboard (logged-in account) --- */
.woocommerce-MyAccount-navigation ul {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  list-style: none; border-bottom: 1px solid var(--c-line);
  margin-bottom: var(--s-6); padding-bottom: var(--s-3);
}
.woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-MyAccount-navigation a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  font-size: var(--t-sm); font-weight: 600; color: var(--c-ink-soft);
  background: var(--c-ice); transition: background-color .18s var(--ease), color .18s var(--ease);
}
.woocommerce-MyAccount-navigation a:hover { background: var(--c-ice-deep); color: var(--c-navy-deep); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--c-navy); color: #fff; }

.woocommerce-MyAccount-content table.shop_table {
  width: 100%; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  border-collapse: separate; overflow: hidden; font-size: var(--t-sm);
}
.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td {
  padding: 12px var(--s-4); border-top: 1px solid var(--c-line-soft);
}
.woocommerce-MyAccount-content table.shop_table th {
  background: var(--c-ice); color: var(--c-ink-soft); font-weight: 600; text-align: left;
}
.woocommerce-MyAccount-content table.shop_table tr:first-child th { border-top: none; }
.woocommerce-MyAccount-content mark.order-status {
  background: var(--c-ice-deep); color: var(--c-navy-deep);
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.woocommerce-MyAccount-content .woocommerce-Button { display: inline-block; text-decoration: none; }

.woocommerce-message, .woocommerce-error, .woocommerce-info {
  list-style: none; padding: var(--s-4) var(--s-5); border-radius: var(--r);
  font-size: var(--t-sm); margin-bottom: var(--s-5);
  background: var(--c-ice); border: 1px solid var(--c-line); color: var(--c-ink);
}
.woocommerce-message { border-color: #BFE3CE; background: #EFFAF3; color: var(--c-ok); }
.woocommerce-error { border-color: #F0C7B8; background: #FCF1EC; color: var(--c-sale); }

@media (max-width: 780px) {
  #customer_login { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.woocommerce-checkout .entry-content { font-size: var(--t-md); }

/* Coupon */
.woocommerce-form-coupon-toggle .woocommerce-info {
  background: var(--c-ice); border: 1px solid var(--c-line); border-radius: var(--r);
  padding: var(--s-4) var(--s-5); font-size: var(--t-sm); margin-bottom: var(--s-5);
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
}
.woocommerce-form-coupon-toggle .showcoupon { color: var(--c-navy); font-weight: 700; }
.checkout_coupon.woocommerce-form-coupon {
  margin-bottom: var(--s-5);
  background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--s-5);
  overflow: hidden;
}
.checkout_coupon .form-row { margin: 0 0 var(--s-3); }
.checkout_coupon .form-row-last { margin-bottom: 0; }
.checkout_coupon .button {
  background: var(--c-navy); color: #fff; border: none;
  padding: 12px var(--s-5); border-radius: var(--r);
  font-size: var(--t-sm); font-weight: 700; cursor: pointer;
  transition: background-color .18s var(--ease);
}
.checkout_coupon .button:hover { background: var(--c-navy-deep); }

/* Login prompt at the top, if the customer isn't signed in */
.woocommerce-form-login {
  background: var(--c-ice); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: var(--s-5); margin-bottom: var(--s-6); max-width: 420px;
}
.woocommerce-form-login .form-row { margin-bottom: var(--s-3); }
.woocommerce-checkout-login-toggle {
  background: var(--c-ice); border: 1px solid var(--c-line); border-radius: var(--r);
  padding: var(--s-4) var(--s-5); font-size: var(--t-sm); margin-bottom: var(--s-5);
}

/* --- Two-column layout: details on the left, order + payment on the right --- */
form.checkout.woocommerce-checkout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-8);
  align-items: start;
}
#customer_details { grid-column: 1; grid-row: 1; }
#order_review_heading { grid-column: 2; grid-row: 1 / span 2; margin-bottom: var(--s-4); }
#order_review { grid-column: 2; grid-row: 1 / span 2; margin-top: 2.6em; }
#payment.woocommerce-checkout-payment { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }

/* The right column reads as one sticky card: heading + table + payment stacked inside it */
#order_review_heading,
#order_review,
#payment.woocommerce-checkout-payment {
  position: relative;
}
@supports (position: sticky) {
  #order_review_heading { position: sticky; top: 92px; margin-top: 0; z-index: 1; }
}

#customer_details.col2-set {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6);
  margin: 0;
}
#customer_details .col-1, #customer_details .col-2 { width: auto; float: none; }

h3 {
  font-family: var(--f-display); font-weight: 800; font-size: var(--t-lg);
  color: var(--c-ink); margin-bottom: var(--s-4);
}
#ship-to-different-address { margin-bottom: var(--s-3); }
#ship-to-different-address label {
  display: flex; align-items: center; gap: 8px; font-size: var(--t-sm);
  font-weight: 600; color: var(--c-ink); cursor: pointer;
}

.form-row { margin-bottom: var(--s-4); }
.form-row label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--c-ink-soft); margin-bottom: 6px;
}
.form-row label .required { color: var(--c-sale); text-decoration: none; }
.form-row label .optional { font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-row .input-text, .form-row select, .form-row textarea {
  width: 100%; padding: 12px var(--s-4);
  border: 1px solid var(--c-line); border-radius: var(--r);
  font-size: var(--t-sm); font-family: var(--f-ui);
  background: var(--c-white); color: var(--c-ink);
  transition: border-color .18s var(--ease);
}
.form-row .input-text:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--c-navy);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.select2-container { width: 100% !important; }
.select2-container .select2-selection--single {
  height: auto; padding: 11px var(--s-4); border: 1px solid var(--c-line) !important;
  border-radius: var(--r) !important;
}
.select2-selection__rendered { padding: 0 !important; line-height: 1.4 !important; }
.select2-selection__arrow { height: 100% !important; }

.woocommerce-additional-fields { margin-top: var(--s-2); }

/* --- Order review table --- */
.woocommerce-checkout-review-order-table {
  width: 100%; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  border-collapse: separate; overflow: hidden; font-size: var(--t-sm);
  background: var(--c-white);
}
.woocommerce-checkout-review-order-table thead th {
  background: var(--c-ice); color: var(--c-ink-soft); font-weight: 600;
  text-transform: uppercase; font-size: 11px; letter-spacing: .04em;
  padding: 10px var(--s-4); text-align: left;
}
.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table thead th.product-total { text-align: right; }
.woocommerce-checkout-review-order-table td, .woocommerce-checkout-review-order-table tfoot th {
  padding: 12px var(--s-4); border-top: 1px solid var(--c-line-soft);
}
.woocommerce-checkout-review-order-table .product-quantity { color: var(--c-ink-soft); font-weight: 500; }
.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
  font-size: var(--t-md); font-weight: 800; border-top: 2px solid var(--c-line);
}

/* --- Payment methods --- */
.woocommerce-checkout-payment { margin-top: var(--s-5); }
ul.wc_payment_methods {
  list-style: none; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--c-white);
}
li.wc_payment_method { border-top: 1px solid var(--c-line-soft); padding: var(--s-4); }
li.wc_payment_method:first-child { border-top: none; }
li.wc_payment_method label {
  font-weight: 700; font-size: var(--t-sm); color: var(--c-ink);
  display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer;
}
li.wc_payment_method input.input-radio {
  width: 18px; height: 18px; accent-color: var(--c-navy); cursor: pointer;
}
.payment_box {
  background: var(--c-ice); border-radius: var(--r); margin-top: var(--s-3);
  padding: var(--s-4); font-size: var(--t-sm); color: var(--c-ink-soft);
}
.payment_box p:first-child { margin-top: 0; }
#place_order {
  width: 100%; margin-top: var(--s-5);
  background: var(--c-navy); color: #fff; border: none;
  padding: 15px var(--s-5); border-radius: var(--r);
  font-size: var(--t-md); font-weight: 700; letter-spacing: .01em;
  cursor: pointer; transition: background-color .18s var(--ease);
}
#place_order:hover { background: var(--c-navy-deep); }

.woocommerce-terms-and-conditions-wrapper { margin: var(--s-4) 0; font-size: var(--t-sm); }

@media (max-width: 960px) {
  form.checkout.woocommerce-checkout { grid-template-columns: 1fr; }
  #customer_details, #order_review_heading, #order_review, #payment.woocommerce-checkout-payment {
    grid-column: 1;
  }
  #order_review_heading { grid-row: auto; position: static; margin-top: var(--s-6); }
  #order_review, #payment.woocommerce-checkout-payment { grid-row: auto; margin-top: var(--s-4); }
  #customer_details.col2-set { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ============================================================
   LEGAL PAGES — sidebar table of contents (Terms, Privacy)
   ============================================================ */
.legal-page { max-width: 1080px; padding-bottom: var(--s-8); }
.legal-page__head { padding-block: var(--s-8) var(--s-6); border-bottom: 1px solid var(--c-line); margin-bottom: var(--s-7); }
.legal-page__title {
  font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 800; line-height: 1.15;
}
.legal-page__updated { font-size: var(--t-sm); color: var(--c-ink-soft); margin-top: var(--s-2); }

.legal-page__layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--s-8); align-items: start; }

.legal-toc {
  position: sticky; top: 96px;
  border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: var(--s-4);
}
.legal-toc__title {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-ink-soft); margin-bottom: var(--s-3);
}
.legal-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 4px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex; gap: 8px; font-size: var(--t-sm); color: var(--c-ink-soft);
  padding: 7px 8px; border-radius: var(--r-sm); line-height: 1.4;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.legal-toc a::before {
  content: counter(toc); flex: none; color: var(--c-ink-soft);
  font-weight: 700; font-variant-numeric: tabular-nums; width: 1.4em;
}
.legal-toc a:hover { background: var(--c-ice); color: var(--c-navy-deep); }

.legal-page__content { font-size: var(--t-md); line-height: 1.85; color: var(--c-ink-soft); max-width: 74ch; }
.legal-page__content h2 {
  font-family: var(--f-display); font-size: var(--t-xl); font-weight: 800;
  color: var(--c-ink); margin-top: var(--s-7); margin-bottom: var(--s-3);
  scroll-margin-top: 100px;
}
.legal-page__content h2:first-child { margin-top: 0; }
.legal-page__content p { margin-bottom: var(--s-4); }
.legal-page__content ul, .legal-page__content ol { margin: 0 0 var(--s-4) 1.4em; }
.legal-page__content li { margin-bottom: 6px; }
.legal-page__content a { color: var(--c-navy); font-weight: 600; }

@media (max-width: 860px) {
  .legal-page__layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; margin-bottom: var(--s-3); }
}

/* ============================================================
   CHECKOUT — polish pass
   ============================================================ */

/* The two grey prompts (login / coupon) sit side by side as one slim bar
   instead of two stacked banners eating the top of the page. */
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-form-coupon-toggle { margin: 0; }
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  margin: 0 0 var(--s-3); padding: 11px var(--s-4);
  background: var(--c-ice); border: 1px solid var(--c-line);
  border-radius: var(--r); font-size: var(--t-sm);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  color: var(--c-ink-soft);
}
.woocommerce-checkout .woocommerce-info::before { display: none; }
.woocommerce-checkout .showcoupon,
.woocommerce-checkout .showlogin { color: var(--c-navy); font-weight: 700; }

/* Page title sits tighter to the header */
.woocommerce-checkout .entry-content { padding-top: 0 !important; }

/* Section headings inside the columns */
.woocommerce-checkout h3 {
  font-size: var(--t-lg); font-weight: 800; letter-spacing: -.01em;
  padding-bottom: var(--s-3); margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--c-line);
}
#order_review_heading {
  font-size: var(--t-lg); font-weight: 800; letter-spacing: -.01em;
  padding-bottom: var(--s-3); margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--c-line);
}

/* Billing block reads as a card, matching the summary on the right */
#customer_details .col-1,
#customer_details .col-2 {
  background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--s-5);
}

/* First/last name share a row again — Woo's float classes are neutralised
   by the grid, so they are re-paired explicitly. */
#customer_details .col-1 .woocommerce-billing-fields__field-wrapper,
#customer_details .col-2 .woocommerce-shipping-fields__field-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-3);
}
.woocommerce-billing-fields__field-wrapper > .form-row-wide,
.woocommerce-shipping-fields__field-wrapper > .form-row-wide,
.woocommerce-billing-fields__field-wrapper > .notes,
.woocommerce-shipping-fields__field-wrapper > .notes { grid-column: 1 / -1; }

/* Woo floats first/last; inside a grid that only breaks the rows. */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last,
.woocommerce-checkout .form-row-wide {
  float: none; width: auto; padding: 0;
}

/* Order notes textarea was overlapping its neighbours */
#order_comments_field { grid-column: 1 / -1; }
#order_comments { min-height: 96px; width: 100%; display: block; }

/* Order summary card */
#order_review {
  background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--s-5);
}
#order_review .woocommerce-checkout-review-order-table { border: none; border-radius: 0; }
#order_review .woocommerce-checkout-review-order-table thead th {
  background: transparent; border-bottom: 1px solid var(--c-line);
  padding-left: 0; padding-right: 0;
}
#order_review .woocommerce-checkout-review-order-table td,
#order_review .woocommerce-checkout-review-order-table tfoot th {
  padding-left: 0; padding-right: 0;
}
#payment.woocommerce-checkout-payment { margin-top: var(--s-5); }
#order_review ul.wc_payment_methods { border-radius: var(--r); }

/* Terms + privacy note */
.woocommerce-privacy-policy-text p { font-size: 12.5px; line-height: 1.6; color: var(--c-ink-soft); }
.woocommerce-terms-and-conditions-wrapper .form-row { margin-bottom: 0; }
.woocommerce-terms-and-conditions-wrapper label {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; text-transform: none; letter-spacing: 0;
  font-weight: 500; color: var(--c-ink-soft); line-height: 1.5;
}
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
  width: 16px; height: 16px; flex: none; margin-top: 1px; accent-color: var(--c-navy);
}

@media (max-width: 720px) {
  #customer_details .col-1 .woocommerce-billing-fields__field-wrapper,
  #customer_details .col-2 .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr;
  }
}
