/* Checkout — calm one-page form. Phase 6 polishes; Phase 2 = functional + on-brand chrome. */
.co-wrap { max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) 20px 64px; }
.co-back { display: inline-flex; gap: 6px; font-size: 14px; opacity: .7; text-decoration: none; color: inherit; margin-bottom: 24px; }
.co-back:hover { opacity: 1; }
.co-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 760px) { .co-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.co-summary { border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: 16px; padding: 22px; }
.co-eyebrow { font-family: var(--font-mono, monospace); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .55; margin-bottom: 8px; }
.co-prod-name { font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.co-feats { list-style: none; padding: 0; margin: 0 0 16px; }
.co-feats li { font-size: 14px; opacity: .85; padding: 3px 0; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); padding-top: 14px; }
.co-total .lbl { opacity: .7; font-size: 14px; }
.co-total .amt { font-size: 28px; font-weight: 800; }
.co-vat { font-family: var(--font-mono, monospace); font-size: 12px; opacity: .55; margin-top: 4px; text-align: right; }
.co-form label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 5px; }
.co-form input[type=text], .co-form input[type=email] { width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 10px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: transparent; color: inherit; font-size: 15px; }
.co-form input:focus { outline: 2px solid color-mix(in srgb, currentColor 40%, transparent); outline-offset: 1px; }
.co-row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.co-buyer { display: flex; gap: 16px; margin: 14px 0 4px; }
.co-buyer label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }
.co-nip { display: none; }
.co-nip.show { display: block; }
.co-error { background: color-mix(in srgb, #d33 16%, transparent); border: 1px solid color-mix(in srgb, #d33 40%, transparent); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 12px; }
.co-trust { font-family: var(--font-mono, monospace); font-size: 12px; opacity: .6; margin-top: 14px; line-height: 1.6; }
.co-submit { margin-top: 18px; width: 100%; }

/* ════════════════ PHASE 6 — calm checkout polish ════════════════ */

/* Inherit the storefront dialect surfaces on the dark checkout body */
body.checkout { background: var(--bg-midnight, #0a1020); color: var(--text-snow, #e8eef9); }

.co-error { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.co-error svg { flex-shrink: 0; margin-top: 1px; color: #f87171; }

/* Summary card */
.co-summary {
  border-color: var(--line-ice, rgba(125,211,252,0.10));
  background: linear-gradient(180deg, var(--bg-midnight-3, #131b2e), var(--bg-midnight-2, #0e1424));
}
.co-eyebrow { color: var(--ice, #7dd3fc); opacity: 1; }
.co-feats { display: flex; flex-direction: column; gap: 9px; }
.co-feats li { display: flex; align-items: flex-start; gap: 9px; opacity: 1; color: var(--text-snow, #e8eef9); line-height: 1.4; }
.co-feats li svg { flex-shrink: 0; margin-top: 2px; color: var(--ice, #7dd3fc); }

.co-total-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-ice, rgba(125,211,252,0.12));
}
.co-total { border: 0; padding: 0; }
.co-total .lbl { opacity: .75; }
.co-total .amt { font-size: 30px; }
.co-vat-row {
  display: flex; justify-content: space-between;
  font-size: 12px; opacity: .55; margin-top: 4px;
}

.co-trust-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.co-trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--text-snow-2, #bac5d9);
  border: 1px solid var(--line-ice, rgba(125,211,252,0.12));
  border-radius: 999px;
  padding: 5px 10px;
}
.co-trust-badge svg { color: var(--ice, #7dd3fc); }

/* Method picker */
.co-method { margin-bottom: 18px; }
.co-method-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.co-method-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.co-method-pill {
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 14px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  font-size: 13px; font-weight: 600;
  background: transparent;
}
.co-method-pill-primary {
  border-color: var(--flame, #fb923c);
  background: color-mix(in srgb, var(--flame, #fb923c) 14%, transparent);
  color: var(--flame-hi, #fdba74);
}
.co-method-note { font-size: 11px; opacity: .5; }

/* Fields */
.co-field { margin-bottom: 4px; }
.co-form .co-field label,
.co-form fieldset legend { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 5px; padding: 0; }
.co-help { display: block; font-family: var(--font-mono, monospace); font-size: 11px; opacity: .55; margin-top: 5px; line-height: 1.5; }

.co-form input[type=text], .co-form input[type=email] {
  background: var(--surface, rgba(255,255,255,0.02));
  border-color: var(--line-ice, rgba(125,211,252,0.14));
}
.co-form input:focus {
  outline: none;
  border-color: var(--ice, #7dd3fc);
  box-shadow: 0 0 0 3px rgba(125,211,252,0.18);
}

.co-fieldset { border: 0; padding: 0; margin: 0; }
.co-buyer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.co-buyer-opt {
  display: flex; align-items: center; gap: 10px;
  margin: 0 !important;
  padding: 12px 14px;
  border: 1px solid var(--line-ice, rgba(125,211,252,0.14));
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.co-buyer-opt:hover { border-color: var(--line-ice-2, rgba(125,211,252,0.25)); }
.co-buyer-opt:has(input:checked) {
  border-color: var(--ice, #7dd3fc);
  background: rgba(125,211,252,0.07);
}
.co-buyer-opt input { accent-color: var(--ice, #7dd3fc); width: 16px; height: 16px; flex-shrink: 0; }
.co-buyer-opt-body { display: flex; flex-direction: column; gap: 1px; }
.co-buyer-opt-title { font-size: 14px; font-weight: 600; }
.co-buyer-opt-sub { font-size: 11px; opacity: .55; }
.co-buyer-opt:focus-within { box-shadow: 0 0 0 3px rgba(125,211,252,0.18); border-radius: 12px; }

/* ════════════════ Payment rail switcher (P24 / Stripe) ════════════════
   Mirrors the buyer-type segmented control. Fixed min-height so switching
   rail (which re-renders the page) never shifts the layout. PL rail keeps
   the ice accent; the international rail gets the flame accent so the two
   choices are instantly distinguishable. */
.co-rail { margin-bottom: 4px; }
.co-rail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 0; }
.co-rail-opt {
  display: flex; align-items: flex-start; gap: 11px;
  margin: 0;
  padding: 14px 15px;
  min-height: 76px;
  border: 1px solid var(--line-ice, rgba(125,211,252,0.14));
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.co-rail-opt:hover { border-color: var(--line-ice-2, rgba(125,211,252,0.25)); }
.co-rail-opt input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--ice, #7dd3fc); }
.co-rail-opt-body { display: flex; flex-direction: column; gap: 3px; }
.co-rail-opt-title { font-size: 14px; font-weight: 600; }
.co-rail-opt-sub { font-size: 11px; line-height: 1.4; color: var(--text-snow-2, #bac5d9); }
.co-rail-opt:focus-within { box-shadow: 0 0 0 3px rgba(125,211,252,0.18); border-radius: 12px; }
.co-rail-opt-pl:has(input:checked) {
  border-color: var(--ice, #7dd3fc);
  background: rgba(125,211,252,0.07);
}
.co-rail-opt-intl input { accent-color: var(--flame, #fb923c); }
.co-rail-opt-intl:has(input:checked) {
  border-color: var(--flame, #fb923c);
  background: rgba(251,146,60,0.07);
}
.co-rail-opt-intl:focus-within { box-shadow: 0 0 0 3px rgba(251,146,60,0.18); }
.co-rail-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--text-snow-3, #6b7896);
  letter-spacing: .02em;
}

/* License + publication note (TikTok edits only) — short copyright-license heads-up.
   The actual consent is rolled into the Regulamin acceptance checkbox below; this is
   informational, NOT a second consent control (so nothing here is pre-checked). */
.co-license-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line-ice, rgba(125,211,252,0.14));
  border-left: 3px solid var(--flame, #fb923c);
  border-radius: 12px;
  background: rgba(251,146,60,0.04);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-snow-2, #bac5d9);
}
.co-license-note a { color: var(--ice, #7dd3fc); border-bottom: 1px solid rgba(125,211,252,0.4); }
.co-license-note a:hover { border-bottom-color: var(--ice, #7dd3fc); }

@media (max-width: 480px) {
  .co-rail-grid { grid-template-columns: 1fr; }
}

.co-trust a { color: var(--ice, #7dd3fc); border-bottom: 1px solid rgba(125,211,252,0.35); }
.co-trust a:hover { border-bottom-color: var(--ice, #7dd3fc); }

/* Consent — P24 required acceptance (Regulamin + Polityka + art. 38 UPK) */
.co-consent {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line-ice, rgba(125,211,252,0.14));
  border-radius: 12px;
  background: rgba(125,211,252,0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.co-consent:focus-within { border-color: var(--ice, #7dd3fc); box-shadow: 0 0 0 3px rgba(125,211,252,0.16); }
.co-consent-label {
  display: flex; align-items: flex-start; gap: 11px;
  margin: 0; cursor: pointer; font-weight: 400;
}
.co-consent-label input[type=checkbox] {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px;
  accent-color: var(--flame, #fb923c); cursor: pointer;
}
.co-consent-label input[type=checkbox]:focus-visible { outline: 2px solid var(--ice, #7dd3fc); outline-offset: 2px; }
.co-consent-text { font-size: 12.5px; line-height: 1.55; color: var(--text-snow-2, #bac5d9); }
.co-consent-text strong { color: var(--text-snow, #e8eef9); font-weight: 600; }
.co-consent-text a { color: var(--ice, #7dd3fc); border-bottom: 1px solid rgba(125,211,252,0.4); }
.co-consent-text a:hover { border-bottom-color: var(--ice, #7dd3fc); }

@media (max-width: 480px) {
  .co-buyer { grid-template-columns: 1fr; }
  .co-row2 { grid-template-columns: 1fr 1fr; }
}

/* ════════════════ PHASE 6 — checkout return (processing / poll) ════════════════ */

.co-return { max-width: 560px; }
.co-return-card {
  text-align: center;
  border: 1px solid var(--line-ice, rgba(125,211,252,0.12));
  border-radius: 20px;
  padding: clamp(32px, 7vw, 56px) clamp(24px, 5vw, 44px);
  background: linear-gradient(180deg, var(--bg-midnight-3, #131b2e), var(--bg-midnight-2, #0e1424));
}
.co-return .co-eyebrow { text-align: center; }

.co-return-spinner {
  position: relative;
  width: 76px; height: 76px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  color: var(--ice, #7dd3fc);
}
.co-return-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(125,211,252,0.16);
  border-top-color: var(--ice, #7dd3fc);
  animation: co-spin 1.1s linear infinite;
}
.co-return-spinner.is-stalled { color: var(--text-snow-3, #6b7896); }
.co-return-spinner.is-stalled .co-return-ring { animation: none; border-top-color: var(--text-snow-3, #6b7896); }
@keyframes co-spin { to { transform: rotate(360deg); } }

.co-return-headline {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.co-return-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-snow-2, #bac5d9);
  margin: 0 auto 24px;
  max-width: 44ch;
}
.co-return-sub strong { color: var(--text-snow, #e8eef9); }
.co-return-sub a { color: var(--ice, #7dd3fc); border-bottom: 1px solid rgba(125,211,252,0.4); }

.co-return-steps {
  list-style: none; padding: 0;
  margin: 0 auto 24px;
  max-width: 320px;
  text-align: left;
  display: flex; flex-direction: column; gap: 12px;
}
.co-return-steps li {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  color: var(--text-snow-3, #6b7896);
}
.co-step-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--text-snow-3, #6b7896);
  flex-shrink: 0;
}
.co-return-steps li.is-done { color: var(--text-snow-2, #bac5d9); }
.co-return-steps li.is-done .co-step-dot { background: var(--st-fulfilled, #34d399); }
.co-return-steps li.is-active { color: var(--text-snow, #e8eef9); }
.co-return-steps li.is-active .co-step-dot {
  background: var(--ice, #7dd3fc);
  box-shadow: 0 0 0 3px rgba(125,211,252,0.18);
  animation: co-pulse 1.8s ease-in-out infinite;
}
@keyframes co-pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

.co-return-home { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .co-return-ring { animation: none; }
  .co-return-steps li.is-active .co-step-dot { animation: none; }
}

/* ════════════════ Pre-launch — "płatności wkrótce" ════════════════
   Calm empty state shown in place of the buyer form before payment
   rails go live. Reuses the co-return-card surface dialect — no second
   visual language. The order summary aside stays visible alongside. */

.co-soon-card {
  border: 1px solid var(--line-ice, rgba(125,211,252,0.12));
  border-radius: 20px;
  padding: clamp(28px, 6vw, 48px) clamp(22px, 5vw, 40px);
  background: linear-gradient(180deg, var(--bg-midnight-3, #131b2e), var(--bg-midnight-2, #0e1424));
}
.co-soon-card .co-eyebrow { margin-bottom: 18px; }

.co-soon-badge {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 20px;
  border-radius: 18px;
  color: var(--ice, #7dd3fc);
  background: rgba(125,211,252,0.08);
  border: 1px solid var(--line-ice, rgba(125,211,252,0.16));
}

.co-soon-headline {
  font-size: clamp(23px, 3.4vw, 31px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
  text-wrap: balance;
}
.co-soon-sub {
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-snow-2, #bac5d9);
  margin: 0 0 26px;
  max-width: 46ch;
}
.co-soon-sub strong { color: var(--text-snow, #e8eef9); font-weight: 600; }

.co-soon-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 22px;
}
.co-soon-cta { text-decoration: none; }
.co-soon-cta:focus-visible {
  outline: 2px solid var(--ice, #7dd3fc);
  outline-offset: 3px;
}

.co-soon-legal { margin-top: 0; }

@media (max-width: 480px) {
  .co-soon-actions { flex-direction: column; align-items: stretch; }
  .co-soon-cta { justify-content: center; text-align: center; }
}
