/* ===========================================================
   WildWilly — Checkout + Thank You
   Loads AFTER ww-styles.css; reuses its tokens (data-dir="b").
   =========================================================== */

body { background: var(--bg); }
.co { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- minimal checkout header ---------- */
.co-top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.co-top__inner {
  width: min(1180px, 94vw); margin-inline: auto;
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.co-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink-soft); transition: color .2s, gap .2s; }
.co-back:hover { color: var(--ink); gap: 11px; }
.co-back svg { width: 17px; height: 17px; flex: none; }
.co-logo { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; letter-spacing: var(--display-spacing); display: inline-flex; align-items: center; gap: 9px; }
.co-logo__mark { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 15px; font-weight: 800; font-family: var(--font-body); flex: none; }
.co-secure { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.co-secure svg { width: 15px; height: 15px; color: var(--accent-2-ink, var(--ink-soft)); }

/* ---------- the signature two-pane split ---------- */
.co-split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.co-main { display: flex; justify-content: flex-end; padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 64px); }
.co-main__inner { width: min(560px, 100%); }
.co-aside { background: var(--surface); border-left: 1px solid var(--line); padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 64px); }
.co-aside__inner { width: min(440px, 100%); position: sticky; top: 92px; }

/* ---------- progress crumb ---------- */
.co-crumbs { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 26px; font-size: 13px; }
.co-crumb { color: var(--ink-soft); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.co-crumb.is-now { color: var(--accent); }
.co-crumb.is-done { color: var(--ink); }
.co-crumb__sep { color: var(--line); }

/* ---------- express row ---------- */
.co-express { margin-bottom: 8px; }
.co-express__lead { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); text-align: center; margin: 0 0 14px; }
.co-xpay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-xbtn { height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: .01em; transition: transform .18s, box-shadow .18s, filter .18s; box-shadow: 0 3px 0 rgba(0,0,0,.16); }
.co-xbtn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(0,0,0,.16); }
.co-xbtn:active { transform: translateY(0); box-shadow: 0 2px 0 rgba(0,0,0,.16); }
.co-xbtn--apple { background: #000; color: #fff; }
.co-xbtn--google { background: #fff; color: #3c4043; box-shadow: 0 3px 0 rgba(0,0,0,.1); border: 1px solid #dadce0; }
.co-xbtn svg, .co-xbtn img { height: 20px; width: auto; display: block; }
.co-or { display: flex; align-items: center; gap: 16px; color: var(--ink-soft); font-size: 12.5px; font-weight: 600; margin: 22px 0 8px; }
.co-or::before, .co-or::after { content: ""; height: 1px; flex: 1; background: var(--line); }

/* ---------- form sections ---------- */
.co-sec { padding: 26px 0; border-top: 1px solid var(--line); }
.co-sec:first-of-type { border-top: none; }
.co-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.co-sec__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(20px, 2.4vw, 26px); letter-spacing: var(--display-spacing); margin: 0; }
.co-sec__step { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.co-sec__aside { font-size: 13.5px; color: var(--ink-soft); }
.co-sec__aside a, .co-link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.co-link { cursor: pointer; }

/* logged-in chip */
.co-acct { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1.6px solid var(--line); margin-bottom: 16px; }
.co-acct__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.co-acct__id { min-width: 0; flex: 1; }
.co-acct__name { font-weight: 700; font-size: 14.5px; }
.co-acct__mail { font-size: 12.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-acct__out { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.co-acct__out:hover { color: var(--accent); }

/* checkbox row */
.co-check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; font-size: 14px; color: var(--ink-soft); margin-top: 12px; user-select: none; }
.co-check input { position: absolute; opacity: 0; pointer-events: none; }
.co-check__box { width: 20px; height: 20px; border-radius: 6px; border: 1.7px solid var(--line); background: var(--bg); display: grid; place-items: center; flex: none; transition: background .18s, border-color .18s; margin-top: 1px; }
.co-check__box svg { width: 13px; height: 13px; stroke: var(--accent-ink); stroke-width: 3; opacity: 0; transform: scale(.5); transition: opacity .18s, transform .18s; }
.co-check input:checked + .co-check__box { background: var(--accent); border-color: var(--accent); }
.co-check input:checked + .co-check__box svg { opacity: 1; transform: none; }
.co-check input:focus-visible + .co-check__box { box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.co-check b { color: var(--ink); font-weight: 700; }

/* native select styled like a field */
.co-select { position: relative; }
.co-select::after { content: "▾"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-soft); font-size: 12px; }
.co-select select { -webkit-appearance: none; appearance: none; width: 100%; padding: 13px 40px 13px 16px; border-radius: 12px; border: 1.6px solid var(--line); background: var(--bg); font-family: inherit; font-size: 15.5px; font-weight: 500; color: var(--ink); cursor: pointer; }
.co-select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent); }

/* field error states (reuse .field / .field__input from ww-styles) */
.field--err .field__input, .field--err .co-select select { border-color: oklch(0.55 0.2 18); box-shadow: 0 0 0 3px color-mix(in oklab, oklch(0.6 0.22 18) 22%, transparent); animation: fieldGlow 1.8s ease-in-out infinite; }
.field--err .field__input:focus, .field--err .co-select select:focus { animation: none; box-shadow: 0 0 0 3px color-mix(in oklab, oklch(0.6 0.22 18) 30%, transparent); }
@keyframes fieldGlow {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in oklab, oklch(0.6 0.22 18) 14%, transparent); }
  50% { box-shadow: 0 0 0 4px color-mix(in oklab, oklch(0.6 0.22 18) 30%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .field--err .field__input, .field--err .co-select select { animation: none; } }
.field__err { font-size: 12px; font-weight: 600; color: oklch(0.55 0.2 18); display: flex; align-items: center; gap: 5px; }
.field__err svg { width: 13px; height: 13px; }
.co-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-grid-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.co-fields { display: flex; flex-direction: column; gap: 14px; }

/* ---------- radio option cards (shipping + payment) ---------- */
.co-opts { display: flex; flex-direction: column; gap: 12px; }
.co-opt {
  display: block; border: 1.6px solid var(--line); border-radius: 16px; background: var(--bg);
  overflow: hidden; transition: border-color .2s, box-shadow .2s, background .2s; cursor: pointer;
}
.co-opt:hover { border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.co-opt.is-on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 9%, var(--bg)); box-shadow: 0 0 0 1px var(--accent), 0 12px 26px -20px rgba(40,25,15,.55); }
.co-opt__row { display: flex; align-items: center; gap: 13px; padding: 15px 17px; }
.co-opt__row > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.co-opt__dot { width: 21px; height: 21px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; transition: border-color .2s; }
.co-opt__dot::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .2s cubic-bezier(.2,1.6,.4,1); }
.co-opt.is-on .co-opt__dot { border-color: var(--accent); }
.co-opt.is-on .co-opt__dot::after { transform: scale(1); }
.co-opt__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-opt__name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.co-opt__sub { font-size: 13px; color: var(--ink-soft); }
.co-opt__price { font-weight: 700; font-size: 15px; white-space: nowrap; }
.co-opt__price--free { color: oklch(0.5 0.13 150); }
.co-opt__logo { height: 26px; width: auto; display: block; flex: none; }
.co-opt__icon { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 12%, var(--surface)); color: var(--accent); }
.co-opt__icon svg { width: 21px; height: 21px; }

/* tiny carrier wordmarks */
.co-mark { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 9px; border-radius: 7px; font-weight: 800; font-size: 13px; letter-spacing: -.01em; flex: none; }
.co-mark--inpost { background: #ffcc00; color: #1a1a1a; }
.co-mark--dhl { background: #ffcc00; color: #d40511; font-style: italic; }
.co-mark--pickup { background: color-mix(in oklab, var(--accent) 14%, var(--surface)); color: var(--accent); }

/* expandable body inside a selected option (paczkomat picker, blik, card) */
.co-opt__expand { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .34s cubic-bezier(.4,0,.2,1), opacity .26s ease; }
.co-opt.is-on .co-opt__expand { max-height: 720px; opacity: 1; }
.co-opt__expand-in { overflow: hidden; }
.co-opt__pad { padding: 2px 17px 17px; }
.co-addr-saved { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; background: none; color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; align-self: flex-start; }
.co-addr-saved:hover { text-decoration: underline; text-underline-offset: 3px; }

/* paczkomat picker */
.co-locker { display: flex; gap: 13px; align-items: center; padding: 13px; border-radius: 12px; background: var(--surface); border: 1.5px dashed var(--line); }
.co-locker__map { width: 64px; height: 64px; border-radius: 10px; flex: none; background-image: repeating-linear-gradient(45deg, color-mix(in oklab, var(--accent) 16%, var(--surface)) 0 7px, var(--surface) 7px 14px); display: grid; place-items: center; }
.co-locker__map svg { width: 24px; height: 24px; color: var(--accent); }
.co-locker__body { flex: 1; min-width: 0; }
.co-locker__title { display: block; font-weight: 700; font-size: 14px; }
.co-locker__addr { display: block; font-size: 13px; color: var(--ink-soft); }
.co-locker__btn { font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; align-self: flex-start; }
.co-locker--addr { border-style: solid; border-color: var(--accent); background: color-mix(in oklab, var(--accent) 5%, var(--surface)); }
.co-locker__tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }

/* BLIK 6-box code */
.co-blik { display: flex; gap: 9px; margin-top: 4px; }
.co-blik input { width: 100%; aspect-ratio: 1; max-width: 52px; text-align: center; font-family: var(--font-display); font-size: 22px; font-weight: 700; border: 1.7px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.co-blik input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent); }
.co-blik input.filled { border-color: var(--accent); }
.co-hint { font-size: 12.5px; color: var(--ink-soft); margin: 10px 0 0; }

/* card form */
.co-card { display: flex; flex-direction: column; gap: 12px; }
.co-card__num { position: relative; }
.co-card__brands { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; gap: 5px; }
.co-card__brands img { height: 19px; opacity: .4; transition: opacity .2s; }
.co-card__brands img.on { opacity: 1; }

/* przelewy24 bank grid */
.co-banks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 4px; }
.co-bank { padding: 11px 10px; border-radius: 11px; border: 1.6px solid var(--line); background: var(--bg); font-weight: 700; font-size: 13px; color: var(--ink); text-align: center; transition: border-color .18s, background .18s; cursor: pointer; }
.co-bank:hover { border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.co-bank.is-on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 9%, var(--bg)); box-shadow: 0 0 0 1px var(--accent); }

/* pay button (in main column, desktop) */
.co-alert { display: flex; gap: 12px; margin-top: 22px; padding: 15px 16px; border-radius: 14px; border: 1.5px solid color-mix(in oklab, oklch(0.55 0.2 18) 45%, var(--line)); background: color-mix(in oklab, oklch(0.55 0.2 18) 7%, var(--bg)); animation: coalert .28s cubic-bezier(.2,.9,.3,1); }
@keyframes coalert { from { opacity: 0; transform: translateY(-6px); } }
.co-alert__ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: oklch(0.55 0.2 18); color: #fff; }
.co-alert__ico svg { width: 16px; height: 16px; }
.co-alert__body { min-width: 0; }
.co-alert__title { font-weight: 700; font-size: 14.5px; color: oklch(0.42 0.16 18); margin: 3px 0 0; }
.co-alert__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.co-alert__chip { font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--bg); border: 1.4px solid color-mix(in oklab, oklch(0.55 0.2 18) 40%, var(--line)); color: oklch(0.45 0.16 18); cursor: pointer; transition: background .15s, border-color .15s, transform .12s; }
.co-alert__chip:hover { background: color-mix(in oklab, oklch(0.55 0.2 18) 12%, var(--bg)); border-color: oklch(0.55 0.2 18); }
.co-alert__chip:active { transform: translateY(1px); }

.co-pay { width: 100%; justify-content: center; height: 58px; font-size: 17px; margin-top: 24px; }
.co-pay__spin { width: 18px; height: 18px; border: 2.4px solid color-mix(in oklab, var(--accent-ink) 40%, transparent); border-top-color: var(--accent-ink); border-radius: 50%; animation: cospin .7s linear infinite; }
@keyframes cospin { to { transform: rotate(360deg); } }
.co-paynote { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.co-paynote svg { width: 14px; height: 14px; flex: none; }

.co-foot-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.co-foot-links a { font-size: 12.5px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.co-foot-links a:hover { color: var(--accent); }

/* =================== ORDER SUMMARY =================== */
.co-sum {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  overflow: hidden;
}
.co-sum__lines { display: flex; flex-direction: column; gap: 16px; }
.co-line { display: flex; align-items: center; gap: 14px; }
.co-line__media { position: relative; width: 60px; height: 60px; border-radius: 12px; overflow: hidden; flex: none; border: 1px solid var(--line); background: var(--bg); }
.co-line__media img { width: 100%; height: 100%; object-fit: cover; }
.co-line__ph { width: 100%; height: 100%; background-image: repeating-linear-gradient(45deg, color-mix(in oklab, var(--tone, var(--accent)) 30%, var(--surface)) 0 7px, var(--surface) 7px 14px); }
.co-line__qty { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.co-line__info { flex: 1; min-width: 0; }
.co-line__name { font-weight: 700; font-size: 14px; line-height: 1.25; }
.co-line__meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.co-line__tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; background: color-mix(in oklab, oklch(0.5 0.13 150) 16%, var(--surface)); color: oklch(0.42 0.12 150); }
.co-line__price { font-weight: 700; font-size: 14px; white-space: nowrap; text-align: right; }
.co-line__was { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); text-decoration: line-through; }

.co-promo { display: flex; gap: 9px; margin: 22px 0; }
.co-promo__input { flex: 1; padding: 12px 15px; border-radius: 12px; border: 1.6px solid var(--line); background: var(--bg); font-family: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.co-promo__input::placeholder { color: var(--ink-soft); }
.co-promo__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent); }
.co-promo.err .co-promo__input { border-color: oklch(0.55 0.2 18); }
.co-promo__btn { padding: 0 20px; border-radius: 12px; background: color-mix(in oklab, var(--ink) 8%, var(--surface)); color: var(--ink); font-weight: 700; font-size: 14px; border: 1.6px solid var(--line); transition: background .18s, color .18s; }
.co-promo__btn:not(:disabled):hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.co-promo__btn:disabled { opacity: .5; cursor: not-allowed; }
.co-promo__err { font-size: 12.5px; font-weight: 600; color: oklch(0.55 0.2 18); margin: -12px 0 18px; }

.co-applied { display: flex; align-items: center; gap: 10px; margin: 20px 0; padding: 11px 14px; border-radius: 12px; background: color-mix(in oklab, oklch(0.5 0.13 150) 12%, var(--surface)); border: 1.5px solid color-mix(in oklab, oklch(0.5 0.13 150) 40%, var(--surface)); }
.co-applied__tick { width: 22px; height: 22px; border-radius: 50%; background: oklch(0.5 0.13 150); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.co-applied__meta { flex: 1; min-width: 0; line-height: 1.25; }
.co-applied__code { font-weight: 800; font-size: 13.5px; letter-spacing: .03em; }
.co-applied__label { font-size: 12px; color: var(--ink-soft); }
.co-applied__clear { width: 26px; height: 26px; border-radius: 50%; color: var(--ink-soft); font-size: 18px; line-height: 1; display: grid; place-items: center; flex: none; }
.co-applied__clear:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); color: var(--ink); }

.co-totals { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); min-width: 0; }
.co-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 14.5px; min-width: 0; }
.co-row span:first-child { color: var(--ink-soft); }
.co-row b { font-weight: 700; white-space: nowrap; }
.co-row--disc span, .co-row--disc b { color: oklch(0.45 0.12 150); }
.co-grand { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--line); }
.co-grand__l { font-weight: 700; font-size: 15px; white-space: nowrap; }
.co-grand > span:last-child { white-space: nowrap; }
.co-grand__cur { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-right: 8px; }
.co-grand__v { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 30px; letter-spacing: var(--display-spacing); }

.co-trust { display: flex; flex-direction: column; gap: 11px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.co-trust__row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-soft); }
.co-trust__row svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.co-trust__row b { color: var(--ink); font-weight: 700; }

.co-row--stack { align-items: stretch; flex-direction: column; }
.co-row__shipping {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in oklab, var(--surface) 60%, var(--bg));
  text-align: left;
  overflow: hidden;
}
.co-row__shipping ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.co-row__shipping li { margin: 0; min-width: 0; }
.co-row__shipping label { display: inline-flex; gap: 6px; align-items: center; color: var(--ink); font-size: 13px; flex-wrap: wrap; }
.co-row__shipping input { margin: 0 2px 0 0; }
.co-row__shipping .amount { font-weight: 700; }
.co-row__shipping .woocommerce-shipping-destination,
.co-row__shipping .shipping-calculator-button,
.co-row__shipping .woocommerce-shipping-calculator {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.co-row__shipping .woocommerce-shipping-destination {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.co-row__shipping .shipping-calculator-button {
  display: inline-flex;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.co-row__shipping .shipping-calculator-form {
  margin-top: 14px;
}
.co-row__shipping .shipping-calculator-form .form-row {
  margin: 0 0 10px;
}
.co-row__shipping .shipping-calculator-form input,
.co-row__shipping .shipping-calculator-form select {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font: inherit;
  color: var(--ink);
}
.co-row__shipping .shipping-calculator-form button {
  width: 100%;
  justify-content: center;
}

#payment .payment_box { display: block; margin: 0; padding: 0; background: transparent; border: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
#payment .payment_box p:last-child { margin-bottom: 0; }

/* =================== CART PAGE =================== */
.bag__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(24px, 3vw, 42px); align-items: start; }
.bag__main { min-width: 0; }
.bag__lines { border-top: 1px solid var(--line); }
.bag__aside { position: sticky; top: 96px; }
.bag__card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px); overflow: hidden; }
.bag__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.bag__actions .promo { margin: 0; flex: 1 1 320px; }
.bag__actions .promo__form { max-width: 420px; }
.bag__update { min-width: 220px; justify-content: center; }

@media (max-width: 980px) {
  .bag__grid { grid-template-columns: 1fr; }
  .bag__aside { position: static; }
}

/* ---------- mobile order summary bar ---------- */
.co-mobsum { display: none; }

@media (max-width: 920px) {
  .co-split { grid-template-columns: 1fr; }
  .co-main { order: 2; justify-content: center; padding: 24px clamp(18px, 5vw, 32px) 40px; }
  .co-main__inner { width: min(560px, 100%); }
  .co-aside { display: none; }
  .co-mobsum { display: block; order: 1; background: var(--surface); border-bottom: 1px solid var(--line); }
  .co-mobsum__bar { width: min(560px, 92vw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; cursor: pointer; }
  .co-mobsum__l { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14.5px; color: var(--accent); }
  .co-mobsum__l svg { width: 17px; height: 17px; transition: transform .3s; }
  .co-mobsum.open .co-mobsum__l svg { transform: rotate(180deg); }
  .co-mobsum__total { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; letter-spacing: var(--display-spacing); }
  .co-mobsum__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s cubic-bezier(.4,0,.2,1); }
  .co-mobsum.open .co-mobsum__panel { grid-template-rows: 1fr; }
  .co-mobsum__panel-in { overflow: hidden; }
  .co-mobsum__pad { width: min(560px, 92vw); margin-inline: auto; padding: 4px 0 22px; }
  .co-crumbs { margin-bottom: 20px; }
  .co-xpay { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .co-grid-2, .co-grid-3 { grid-template-columns: 1fr; }
  .co-blik input { max-width: none; }
  .co-banks { grid-template-columns: repeat(2, 1fr); }
  .co-top__inner { height: 60px; }
  .co-secure span { display: none; }
  .co-sum,
  .bag__card { padding: 18px; }
  .co-row { align-items: flex-start; }
  .co-grand { align-items: flex-start; }
  .co-grand > span:last-child { display: flex; flex-direction: column; align-items: flex-end; }
  .co-row__shipping { padding: 12px 13px; }
}

/* =================== THANK YOU =================== */
.ty { width: min(880px, 92vw); margin-inline: auto; padding: clamp(36px, 6vw, 72px) 0 80px; }
.ty-hero { text-align: center; margin-bottom: clamp(30px, 4vw, 44px); }
.ty-badge { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center; background: oklch(0.5 0.13 150); box-shadow: 0 18px 40px -16px color-mix(in oklab, oklch(0.5 0.13 150) 80%, transparent); position: relative; }
.ty-badge svg { width: 46px; height: 46px; stroke: #fff; stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ty-badge svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tyCheck .5s .25s cubic-bezier(.6,.2,.2,1) forwards; }
@keyframes tyCheck { to { stroke-dashoffset: 0; } }
.ty-badge::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid oklch(0.5 0.13 150); animation: tyPulse 1.4s 0.1s ease-out; opacity: 0; }
@keyframes tyPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ty-badge svg path { animation: none; stroke-dashoffset: 0; } .ty-badge::after { animation: none; } }
.ty-order { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.ty-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(34px, 6vw, 60px); line-height: 1; letter-spacing: var(--display-spacing); margin: 12px 0 14px; }
.ty-lead { font-size: clamp(15px, 1.4vw, 18px); color: var(--ink-soft); line-height: 1.55; max-width: 52ch; margin: 0 auto; }
.ty-lead b { color: var(--ink); }

.ty-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); margin-bottom: 20px; }
.ty-card__h { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 21px; letter-spacing: var(--display-spacing); margin: 0 0 20px; }
.ty-card__h svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* tracking */
.ty-track { display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px, 3vw, 34px); align-items: center; }
.ty-map { aspect-ratio: 1; border-radius: var(--radius); background-image: repeating-linear-gradient(45deg, color-mix(in oklab, var(--accent) 14%, var(--surface)) 0 9px, var(--surface) 9px 18px); border: 1.5px dashed var(--line); display: grid; place-items: center; position: relative; }
.ty-map__pin { width: 46px; height: 46px; }
.ty-map__pin svg { width: 100%; height: 100%; color: var(--accent); filter: drop-shadow(0 6px 10px rgba(40,25,15,.3)); animation: tyPin 2.4s ease-in-out infinite; }
@keyframes tyPin { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.ty-steps { display: flex; flex-direction: column; gap: 0; }
.ty-step { display: flex; gap: 14px; }
.ty-step__rail { display: flex; flex-direction: column; align-items: center; }
.ty-step__dot { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line); background: var(--surface); flex: none; display: grid; place-items: center; transition: all .2s; }
.ty-step.is-done .ty-step__dot { background: oklch(0.5 0.13 150); border-color: oklch(0.5 0.13 150); }
.ty-step.is-done .ty-step__dot svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 3.5; }
.ty-step.is-now .ty-step__dot { border-color: var(--accent); }
.ty-step.is-now .ty-step__dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.ty-step__line { width: 2.5px; flex: 1; background: var(--line); margin: 3px 0; min-height: 18px; }
.ty-step.is-done .ty-step__line { background: oklch(0.5 0.13 150); }
.ty-step__body { flex: 1; min-width: 0; padding-bottom: 18px; }
.ty-step:last-child .ty-step__body { padding-bottom: 0; }
.ty-step__name { font-weight: 700; font-size: 14.5px; }
.ty-step.is-pending .ty-step__name { color: var(--ink-soft); }
.ty-step__when { font-size: 12.5px; color: var(--ink-soft); margin-top: 1px; }

/* info grid */
.ty-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ty-info__h { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px; }
.ty-info__b { font-size: 14px; line-height: 1.55; color: var(--ink); }
.ty-info__b .mut { color: var(--ink-soft); }

/* recap line reuse co-line; totals reuse co-* */
.ty-recap .co-totals { margin-top: 18px; }

/* scratch upsell */
.ty-scratch { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; background: var(--accent); color: var(--accent-ink); border: none; }
.ty-scratch__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.ty-scratch__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(24px, 3.5vw, 34px); line-height: 1.02; letter-spacing: var(--display-spacing); margin: 8px 0 8px; }
.ty-scratch__sub { font-size: 14.5px; line-height: 1.5; opacity: .9; max-width: 40ch; margin: 0; }
.ty-scratch__cta { background: var(--accent-ink); color: var(--accent); white-space: nowrap; }
.ty-scratch__ticket { width: 110px; height: 110px; border-radius: 18px; background: color-mix(in oklab, var(--accent-ink) 14%, var(--accent)); border: 2px dashed color-mix(in oklab, var(--accent-ink) 45%, transparent); display: grid; place-items: center; flex: none; }
.ty-scratch__ticket svg { width: 48px; height: 48px; color: var(--accent-ink); }

.ty-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.ty-help { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 26px; }
.ty-help a { color: var(--accent); font-weight: 700; }

@media (max-width: 640px) {
  .ty-track { grid-template-columns: 1fr; }
  .ty-map { max-width: 160px; margin: 0 auto; }
  .ty-cols { grid-template-columns: 1fr; }
  .ty-scratch { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .ty-scratch__ticket { order: -1; }
}
