/* Namcovi Naturals — the checkout page (/checkout/, option E approved Oct 10 2026): quiet header + footer,
   form left, order summary right (folds into one bar <=900px). Theme tokens only. */

/* ---------- quiet checkout header + footer ---------- */
.co-head { border-bottom: var(--rule) dashed var(--ink); background: var(--card); }
.co-head__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 14px var(--gutter); }
.co-head__logo img { display: block; width: 150px; height: auto; }
.co-head__back { justify-self: start; font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.co-head__safe { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; }
.co-head__safe svg, .co-safe svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.co-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 26px var(--gutter) 90px; border-top: var(--rule) dashed var(--ink); font-family: var(--font-text); font-size: 0.9rem; }
.co-foot a { color: var(--ink); }
.co-foot span { opacity: 0.65; }

/* ---------- shared form pieces ---------- */
.namcovi-checkout main { font-family: var(--font-text); }
.co-h { margin: 0 0 14px; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 760; font-size: 1.75rem; line-height: 1.05; color: var(--head); display: flex; align-items: center; gap: 10px; }
.co-h3 { margin: 22px 0 10px; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.co-title { margin: 0 0 18px; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 760; font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem); line-height: 0.95; letter-spacing: var(--display-tracking); color: var(--head); }
.co-sec { padding: 22px 0; border-top: var(--rule) dashed rgba(0, 0, 0, 0.25); }
.co-num { display: inline-grid; place-items: center; flex: none; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--red); color: var(--card); font-family: var(--font-body); font-size: 0.55em; font-weight: 700; }
.co-field { display: block; margin-bottom: 12px; }
.co-field > span { display: block; margin-bottom: 5px; font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.co-field input, .co-field select { width: 100%; padding: 0.8em 1em; border: var(--rule) solid var(--ink); border-radius: 12px; background: var(--card); font: 1rem var(--font-text); color: var(--ink); }
.co-field input:focus, .co-field select:focus, .co-promo input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.co-row--3 { grid-template-columns: 1.3fr 1fr 1fr; }
.co-check { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 0.95rem; cursor: pointer; }
.co-check input, .co-radio input { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.co-radios { border: var(--rule) solid var(--ink); border-radius: 14px; overflow: hidden; }
.co-radio { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.co-radio + .co-radio, .co-cardform + .co-radio { border-top: var(--rule) solid rgba(0, 0, 0, 0.2); }
.co-radio:has(input:checked) { background: #F7ECEC; }
.co-radio__txt { flex: 1; display: flex; flex-direction: column; }
.co-radio__txt small { opacity: 0.7; }
.co-cards { font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; opacity: 0.7; }
.co-cardform { padding: 14px 16px 4px; background: #FBF6F6; border-top: var(--rule) solid rgba(0, 0, 0, 0.2); }
.co-note { margin: 0 0 10px; font-size: 0.9rem; opacity: 0.75; }
.co-paybox + .co-check { margin-top: 12px; }
.co-paynow { margin-top: 24px; padding-block: 1.15em; font-size: 0.95rem; }
.co-soon { margin: 10px 0 0; font-size: 0.88rem; text-align: center; }
.co-fine { margin: 14px 0 0; font-size: 0.82rem; opacity: 0.7; text-align: center; }
.co-fine a { color: inherit; }

.co-express__title { margin: 0 0 10px; font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; }
.co-express__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.co-pay { height: 48px; border: 0; border-radius: 10px; font: 700 1.05rem var(--font-text); cursor: pointer; }
.co-pay--g, .co-pay--a { background: #000; color: #fff; }
.co-pay--p { background: #FFC439; color: #003087; font-style: italic; }
.co-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; font-size: 0.85rem; opacity: 0.7; }
.co-or::before, .co-or::after { content: ""; flex: 1; border-top: var(--rule) solid rgba(0, 0, 0, 0.25); }

/* ---------- order summary ---------- */
.co-items { list-style: none; margin: 0 0 16px; padding: 0; }
.co-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 8px 0; }
.co-thumb { position: relative; display: grid; place-items: center; width: 64px; aspect-ratio: 1; border-radius: 12px; background: #F7ECEC; }
.co-thumb img { width: 58%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.18)); }
.co-thumb--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; filter: none; }
.co-badge { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: var(--card); font: 700 0.75rem var(--font-body); }
.co-item__txt { display: flex; flex-direction: column; min-width: 0; }
.co-item__name { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.25rem; line-height: 1.1; color: var(--head); }
.co-item__meta { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.co-item__price { font-weight: 700; }
.co-promo { display: flex; gap: 8px; padding: 14px 0; border-top: var(--rule) dashed rgba(0, 0, 0, 0.25); }
.co-promo input { flex: 1; min-width: 0; padding: 0.7em 1em; border: var(--rule) solid var(--ink); border-radius: var(--radius-pill); font: inherit; }
.co-totals { margin: 6px 0 0; }
.co-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.co-totals dt, .co-totals dd { margin: 0; }
.co-total { margin-top: 8px; padding-top: 12px !important; border-top: var(--rule) solid currentColor; font-size: 1.35rem; font-weight: 800; }
.co-total small { font: 700 0.7rem var(--font-body); opacity: 0.7; vertical-align: middle; }

/* ---------- two columns, grey summary side to the page edge ---------- */
.co--e { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 70vh; }
.co--e .co-main { display: flex; justify-content: flex-end; padding: 36px clamp(20px, 4vw, 56px) 60px var(--gutter); }
.co-main__in { width: 100%; max-width: 580px; }
.co--e .co-side { padding: 36px var(--gutter) 60px clamp(20px, 4vw, 56px); background: #F7F3F1; border-left: var(--rule) solid rgba(0, 0, 0, 0.12); }
.co--e .co-sum { max-width: 460px; }

/* the fold-away order summary bar (phones + tablets) */
.co-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; margin-bottom: 18px; padding: 14px 18px; border: var(--rule) solid var(--ink); border-radius: 14px; background: #F7ECEC; font: 700 0.95rem var(--font-text); color: var(--red); cursor: pointer; }
.co-toggle span::after { content: " \25BE"; }
.co-toggle[aria-expanded="true"] span::after { content: " \25B4"; }
.co-toggle b { color: var(--ink); font-size: 1.15rem; }

/* ---------- phones + tablets ---------- */
@media (max-width: 900px) {
  .co--e { grid-template-columns: minmax(0, 1fr); }
  .co--e .co-side { order: -1; border-left: 0; border-bottom: var(--rule) solid rgba(0, 0, 0, 0.12); padding-block: 20px; }
  .co--e .co-main { justify-content: center; padding-inline: var(--gutter); }
  .co--e .co-sum { max-width: none; }
}
@media (max-width: 560px) {
  .co-head__row { grid-template-columns: auto 1fr; }
  .co-head__logo { order: -1; }
  .co-head__logo img { width: 116px; }
  .co-head__back { justify-self: end; }
  .co-head__safe { display: none; }
  .co-row--3 { grid-template-columns: 1fr 1fr; }
  .co-row--3 .co-field:first-child { grid-column: 1 / -1; }
  .co-express__row { grid-template-columns: 1fr; }
  .co-h { font-size: 1.5rem; }
}
@media (max-width: 360px) {
  .co-row { grid-template-columns: 1fr; }
}

/* the summary folds into one bar below 901px */
.co--e .co-toggle { display: none; }
.co--e .co-drop { margin: 0; padding: 0; border: 0; }
@media (min-width: 901px) {
  .co--e .co-drop[hidden] { display: block; }
  .co--e .co-drop { position: sticky; top: 24px; }
}
@media (max-width: 900px) {
  .co--e .co-side { padding-block: 14px; }
  .co--e .co-toggle { display: flex; margin: 0; }
  .co--e .co-drop { margin-top: 12px; }
  .co--e .co-sum .co-h { display: none; }
}
.co--e .co-sec .co-h { font-size: 1.9rem; }

/* ---------- theme additions ---------- */
.co [hidden]:not(.co-drop), .co-side[hidden] { display: none !important; }
.co-sample { margin: 10px 0 0; font-size: 0.86rem; opacity: 0.75; }
.co .ct-empty { padding-top: 10px; }
/* empty cart: no summary column, the message sits in the middle */
.co--e:has(.co-side[hidden]) { grid-template-columns: minmax(0, 1fr); }
.co--e:has(.co-side[hidden]) .co-main { justify-content: center; }
