/* Checkout, cart page, account, order confirmation, 404 (checkout pages). Loaded after theme.css.
   Reuses the PureChems checkout classes (co-*, fld, rate, pm, pay-box) from the copied source css; solid colours only. */

/* ---- drawer extras */
.acc-link, .drawer-foot .acc-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px; font-size: 14.5px; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.drawer-foot .acc-link { justify-self: center; }

/* ---- shared checkout bits */
.co-pg { background: #fff; }
.co-top .logo img { width: auto; max-width: none; }
.co-back { display: inline-flex; align-items: center; min-height: 44px; }
.co-secure { color: #1f6b3a; }
.co-pg .fld label { display: block; }
.co-pg .fld input, .co-pg .fld select { font-size: 16px; }
.co-pg .fld input:focus, .co-pg .fld select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(91,74,224,.18); }
.co-pg .co-hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.co-pg .co-tick { min-height: 44px; align-items: center; font-size: 14px; color: var(--body); margin-top: 6px; }
.co-pg .co-tick input { width: 20px; height: 20px; accent-color: var(--blue); }
.od-link { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.co-pg .rate { width: 100%; min-height: 56px; background: #fff; cursor: pointer; font: inherit; }
.co-pg .rate b { font-size: 14.5px; white-space: nowrap; }
.co-pg .rate.on { background: var(--lilac); }
.co-pg .rate:focus-visible, .co-pg .pm-head:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pm-head { min-height: 56px; cursor: pointer; font: inherit; }
.pm.on { border-color: var(--blue); }
.pm-name { color: var(--body); }
.pay-mark { display: inline-flex; align-items: center; height: 24px; padding: 0 7px; border: 1px solid var(--line-2); border-radius: 5px; background: #fff; color: var(--navy); font-size: 11.5px; font-weight: 700; }
.pay-box { padding: 16px 16px 6px; background: #fff; }
.co-pay { background: var(--blue); }
.co-pay:hover, .co-pay:active { background: #4a3bc9; filter: none; }
.co-pay[disabled] { opacity: .7; }
.co-preview { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.co-pg .co-legal { margin-top: 8px; }
.co-was { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); text-align: end; }
.co-item-name small { display: block; }
.co-bwsave { margin: 12px 0 0; font-size: 13.5px; font-weight: 700; color: var(--bwl-red); }
.co-code-form button { min-height: 46px; }
.co-code-err { color: #b42318; }
.co-sum-toggle { min-height: 52px; }
.co-pg .co-error { margin-top: 18px; }
.co-pg .co-empty { padding: 96px 16px; }
.co-pg .fld-err { margin-top: 6px; }
.co-trust svg { color: var(--blue); }
.co-totals .co-bw { color: var(--bwl-red); }

/* ---- order confirmation */
.co-done .order-done { max-width: 620px; margin: 0 auto; padding: 44px 16px 72px; display: grid; justify-items: center; gap: 16px; text-align: center; }
.co-done .done-ico { background: var(--blue); }
.co-done .od-sum, .co-done .od-pay, .co-done .od-next-box { width: 100%; }
.co-done .od-sum { padding: 18px; }
.co-done .od-items li { align-items: center; }
.co-done .od-items img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--paper); }
.co-done .od-items li > span { flex: 1; min-width: 0; display: block; text-align: start; }
.co-done .od-items li > b { font-weight: 600; white-space: nowrap; }
.co-done .od-items small { display: block; }
.od-addr address { font-style: normal; line-height: 1.6; font-weight: 600; }
.od-next-box { text-align: start; }
.od-next-box h2 { font-size: 19px; margin-bottom: 10px; }
.od-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.od-actions .btn { min-height: 48px; }

/* ---- cart page */
.cart-sec { padding: 36px 0 72px; }
.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cart-head h1 { font-size: 34px; }
.cart-head .btn-text { display: inline-flex; align-items: center; min-height: 44px; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.cart-lines { display: grid; }
.cl { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cl:first-child { padding-top: 4px; }
.cl-img { display: block; width: 112px; height: 112px; border-radius: 16px; overflow: hidden; background: var(--paper); }
.cl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-main { display: grid; gap: 4px; align-content: start; min-width: 0; }
.cl-name { font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.cl-size, .cl-unit { font-size: 13.5px; color: var(--muted); }
.cl-tier { margin-top: 6px; font-size: 13px; color: var(--body); }
.cl-tier b { color: #1f6b3a; }
.cl-bar { display: block; height: 6px; margin-top: 6px; border-radius: 99px; background: var(--lilac-2); overflow: hidden; max-width: 260px; }
.cl-bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.cl-ctl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cl-ctl .qty { margin-top: 0; }
.cl-ctl .qty span { min-width: 22px; text-align: center; font-weight: 600; }
.cl-remove { min-height: 44px; padding: 0 10px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.cl-remove:hover { color: #b42318; }
.cl-price { text-align: end; display: grid; align-content: start; gap: 2px; font-size: 16px; white-space: nowrap; }
.cl-price s { font-size: 13px; color: var(--muted); }
.cl-price .cl-bw { font-size: 12.5px; font-weight: 700; color: var(--bwl-red); }
.cart-tier-msg { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--lilac-2); border-radius: 12px; background: var(--lilac); font-size: 14px; color: var(--ink); }
.cart-sum { position: sticky; top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); display: grid; gap: 14px; }
.cart-sum h2 { font-size: 19px; }
.cart-sum .co-totals { border-top: 0; padding-top: 0; }
.cart-sum .btn { min-height: 52px; }
.cart-note { font-size: 13px; color: var(--muted); text-align: center; }
.cart-sec .acc2-empty { margin-top: 8px; }

/* ---- account */
.acc2 { background: var(--paper); }
.acc-intro { margin-bottom: 24px; }
.acc-intro h1 { font-size: 34px; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.acc-card { display: grid; gap: 16px; align-content: start; }
.acc-card h2 { font-size: 22px; }
.acc-card .fld { margin-bottom: 0; }
.acc-card .fld label { display: block; }
.acc-card .fld input { width: 100%; }
.acc-reset { border-top: 1px solid var(--line); padding-top: 16px; }
.acc-fine { font-size: 13px; color: var(--muted); margin: 0; }
.acc-pg .fld-err { margin-top: 0; }
.acc-pg .pw-eye { width: 56px; font-size: 13px; font-weight: 600; color: var(--blue); }
.acc-pg .pw input { padding-inline-end: 62px; }
.acc-pg .acc-sub { color: var(--body); }
.acc-pg .acc2-nav a { min-height: 44px; }
.acc-pg .acc2-out { min-height: 44px; }
.acc-pg .acc2-avatar { background: var(--blue); }
.acc-pg .acc2-nav a.on { background: var(--lilac); color: var(--blue); }
.acc-pg .acc-addr { font-style: normal; line-height: 1.7; font-weight: 600; }
.acc-pg .oc-top .acc-chip { background: var(--lilac); color: var(--blue); }
.acc-pg .oc-foot .btn { min-height: 44px; }
.acc-pg .oc-names { white-space: normal; }

/* ---- 404 */
.nf-sec { padding: 72px 0 96px; }
.nf { text-align: center; display: grid; gap: 18px; justify-items: center; }
.nf h1 { font-size: 36px; }
.nf-search { display: flex; align-items: center; gap: 10px; width: min(520px, 100%); padding: 6px 6px 6px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; color: var(--muted); }
.nf-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.nf-search .btn { min-height: 44px; padding: 10px 20px; }
.nf-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(91,74,224,.18); }
.nf-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.nf-links .btn { min-height: 48px; }

@media (max-width: 900px) {
  .cart-grid { grid-template-columns: 1fr; gap: 24px; }
  .cart-sum { position: static; }
  .acc-grid { grid-template-columns: 1fr; }
  .co-pg .co-pay { margin-top: 14px; }
}
@media (max-width: 600px) {
  .cart-sec { padding: 24px 0 56px; }
  .cart-head h1, .acc-intro h1 { font-size: 28px; }
  .cl { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .cl-img { width: 84px; height: 84px; border-radius: 14px; }
  .cl-price { grid-column: 2; text-align: start; display: flex; align-items: baseline; gap: 8px; }
  .nf h1 { font-size: 28px; }
  .co-done .order-done { padding: 28px 16px 56px; }
  .acc-card { padding: 20px; }
  .co-pg .pm-head .pay-logos { padding-inline-start: 30px; }
}

/* Stripe payment, express checkout and the one-click add-on on the thank-you page */
.co-pg .co-express { margin: 0 0 14px; }
.co-pg .co-or { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.co-pg .co-or::before, .co-pg .co-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.co-pg .co-stripe { margin-top: 10px; }
.co-pg .pay-box { padding: 0; background: transparent; min-height: 60px; }
.co-pg .co-code-err, .co-pg .co-error { color: #c0392b; }
.od-up { margin: 20px 0; padding: 18px; border: 1.5px solid var(--blue); border-radius: 14px; background: #fff; }
.od-up .thx-flag { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--blue); }
.od-up .thx-up-b { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.od-up .thx-up-b img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.od-up h2 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.od-up .thx-price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.od-up .thx-price strong { font-size: 20px; color: var(--ink); }
.od-up .thx-price span { color: #e0193f; font-weight: 700; font-size: 14px; }
.od-up small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.od-up .thx-no { display: block; width: 100%; min-height: 44px; margin-top: 6px; background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.od-up .thx-added { margin: 0; color: var(--body); }
.od-up .co-error { margin: 10px 0 0; font-size: 14px; }

/* ---- cart extras (drawer, cart page, checkout): BW strip, gift bar, shipping bar, routine card, carousel, add-on */
.pcx-bw { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 13.5px; color: var(--body); }
.pcx-bw b { color: var(--bwl-red); font-variant-numeric: tabular-nums; }
.pcx-tag, .pcx-off { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--bwl-red); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: 0; }
.pcx-off { margin: 2px 0 0 8px; }
.pcx-saved { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: var(--bwl-red); }
.pcx-gate { padding: 12px; margin-bottom: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--lilac); }
.pcx-msg { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.pcx-msg b { color: var(--blue); }
.pcx-bar { position: relative; height: 8px; border-radius: 4px; background: #fff; border: 1px solid var(--line-2); margin: 0 4px 12px; }
.pcx-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--blue); transition: width .25s; }
.pcx-mk { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); }
.pcx-mk.on { background: var(--blue); border-color: var(--blue); }
.pcx-gifts, .pcx-tierkey { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--body); }
.pcx-gifts li { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; min-height: 28px; }
.pcx-gifts li span { font-weight: 700; color: var(--navy); }
.pcx-gifts li em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.pcx-gifts li.on em { color: #1f6b3a; font-weight: 700; }
.pcx-ship { background: #fff; }
.pcx-ship .pcx-bar { margin-bottom: 4px; }
.pcx-nudge { padding: 12px; margin-bottom: 10px; border-radius: 10px; background: var(--lilac); }
.pcx-nudge .vol-msg { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.pcx-tiers { margin-top: 12px; }
.pcx-tierkey { margin-top: 2px; }
.pcx-tierkey li.on { color: #1f6b3a; font-weight: 700; }
.pcx-giftline .thumb { opacity: 1; }
.pcx-free { display: inline-block; margin-top: 4px; padding: 3px 9px; border-radius: 6px; background: #e8f4ec; color: #1f6b3a; font-size: 12.5px; font-weight: 700; }
.pcx-set, .pcx-more { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.pcx-set h3, .pcx-more h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--navy); }
.pcx-setrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.pcx-setrow img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--lilac); }
.pcx-step { display: block; font-size: 12.5px; color: var(--muted); }
.pcx-cprice { margin: 2px 0 0; font-size: 13.5px; color: var(--body); }
.pcx-cprice s { color: var(--muted); }
.pcx-cprice b { color: var(--navy); }
.pcx-set .btn, .pcx-card .btn { min-height: 44px; min-width: 64px; padding: 0 16px; font-size: 14px; }
.pcx-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.pcx-card { flex: 0 0 148px; display: grid; gap: 6px; align-content: start; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; scroll-snap-align: start; }
.pcx-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--lilac); }
.pcx-cname { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--navy); min-height: 34px; }
.pcx-pay { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.drawer-body .pcx-bw { margin-top: 0; }
/* checkout: add-on panel, trust list, savings line */
.pcx-bump { margin: 14px 0; padding: 14px; border: 1px solid var(--blue); border-radius: 12px; background: #fff; }
.pcx-bump h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--navy); }
.pcx-bump > p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.pcx-opt { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 56px; padding: 8px 10px; margin-top: 8px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-size: 13.5px; color: var(--body); }
.pcx-opt.on { border-color: var(--blue); background: var(--lilac); }
.pcx-opt input { width: 20px; height: 20px; accent-color: var(--blue); }
.pcx-opt b { color: var(--navy); }
.pcx-opt s { color: var(--muted); }
.pcx-opt small { display: block; color: var(--muted); }
.pcx-perks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--body); }
.pcx-perks li::before { content: "\2713"; margin-right: 8px; color: #1f6b3a; font-weight: 700; }
.pcx-sumsave { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--bwl-red); }
/* thank-you: offer pages */
.pcx-timer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: var(--lilac); font-size: 13.5px; font-weight: 600; color: var(--navy); }
.pcx-timer b { color: var(--bwl-red); font-variant-numeric: tabular-nums; }
.pcx-steps { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pcx-quote { margin: 12px 0; padding: 12px 14px; border-left: 3px solid var(--blue); background: var(--lilac); font-size: 13.5px; color: var(--body); }
.pcx-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; color: var(--muted); }
@media (max-width: 600px) { .pcx-card { flex-basis: 140px; } }
.drawer .line .line-remove { min-width: 44px !important; }

.pcx-gate { padding: 10px 12px; }
.pcx-gate[data-gift-bar] .pcx-bar { margin-bottom: 26px; }
.pcx-ml { position: absolute; top: 15px; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pcx-ml.last { transform: translateX(-100%); }
.pcx-ml.on { color: #1f6b3a; }
.pcx-msg { margin-bottom: 8px; }

.pcx-bw { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.pcx-bw > span:nth-child(2) { justify-self: end; }
.pcx-bw .pcx-saved { grid-column: 1 / -1; margin: 0; }
.pcx-ship { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.pcx-ship .pcx-msg { margin-bottom: 6px; font-weight: 600; }
.pcx-ship .pcx-bar { margin-bottom: 2px; }
.pcx-gate[data-gift-bar] > div > .pcx-bar { margin-bottom: 26px; }
.pcx-nudge { padding: 0 2px; margin: 0 0 10px; background: none; }
.pcx-off { justify-self: start; width: max-content; margin: 0; }
.drawer .line .thumb { width: 64px; height: 64px; flex: none; }
.drawer .line .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.drawer-foot { padding-top: 12px; }
.pcx-pay { margin: 6px 0 0; }
.pcx-gate .pcx-ship { background: none; }
.pcx-sumsave, .pcx-saved, .pcx-timer b, .pcx-bw b, .co-bwsave { color: #c4123a; }
