/* Kouzelná Linka — checkout (loaded after kl.css) */

.co { padding-block: 18px 150px; }
.co-notice { margin-bottom: 18px; }
.co-progress { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.co-progress li { display: grid; gap: 7px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.co-progress li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); transition: background-color .3s; }
.co-progress li.done::before, .co-progress li.current::before { background: var(--red); }
.co-progress li.current { color: var(--ink); }
.co-progress button { all: unset; display: inline-flex; align-items: center; min-height: 26px; cursor: pointer; }
.co-progress button:focus-visible { outline: 3px solid var(--gold); border-radius: 4px; }
.co-grid { display: grid; gap: 34px; }
.co-main { min-width: 0; }
.co-step { display: grid; gap: 26px; animation: stepIn .4s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.co-step-head { display: grid; gap: 8px; }
.co-step-head h1, .co-step-head .co-title { font-weight: 900; font-size: clamp(1.8rem, 7.6vw, 2.5rem); line-height: 1.14; }
.co-step-head h1:focus, .co-step-head .co-title:focus { outline: none; }
.co-step-head h1 em, .co-step-head .co-title em { color: var(--red); }
.co-step-head p { color: var(--ink-2); }
.group { display: grid; gap: 12px; }
.group-title { font: 700 1.2rem/1.2 var(--font-display); }

/* character + package cards */
.pick { display: grid; gap: 10px; }
.pick-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .2s; }
.pick-card:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.pick-card:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--green-cta); }
.pick-card:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.pick-card input { position: absolute; opacity: 0; pointer-events: none; }
.pick-card > img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.pick-card .copy { display: grid; gap: 2px; min-width: 0; }
.pick-card .copy b { font: 700 1.2rem/1.2 var(--font-display); }
.pick-card .copy small { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.mini-play { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 10px 5px 6px; border-radius: 10px; border: 0; background: var(--paper-2); color: var(--ink); font-size: .8125rem; font-weight: 700; width: max-content; position: relative; z-index: 2; }
.mini-play .i { width: 15px; height: 15px; }
.mini-play.is-playing { background: var(--night); color: #fff; }
.radio-dot { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); display: grid; place-items: center; transition: box-shadow .2s, background-color .2s; }
.pick-card:has(input:checked) .radio-dot { background: var(--green-cta); box-shadow: none; }
.radio-dot .i { width: 17px; height: 17px; color: #fff; stroke-width: 3.2; opacity: 0; }
.pick-card:has(input:checked) .radio-dot .i { opacity: 1; }
.pkg-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 18px; }
.pkg-card .copy b { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pkg-card .copy b > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.pkg-amt { font: 700 1.35rem/1 var(--font-display); color: var(--red); white-space: nowrap; padding-top: 2px; }
.pop { display: inline-flex; vertical-align: middle; margin-left: 4px; padding: 4px 8px; border-radius: 999px; background: var(--red); color: #fff; font: 800 .58rem/1.2 var(--font-text); letter-spacing: .07em; text-transform: uppercase; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; font: 800 .625rem/1.2 var(--font-text); letter-spacing: .07em; text-transform: uppercase; background: var(--gold); color: #2f2300; }
.pkg-card ul { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 5px; font-size: .9375rem; color: var(--ink-2); }
.pkg-card li { display: flex; gap: 8px; align-items: flex-start; }
.pkg-card li .i { width: 16px; height: 16px; margin-top: 3px; color: var(--green-ink); stroke-width: 2.8; }

/* child */
.opening { display: flex; align-items: center; gap: 9px; font: italic 400 1rem/1.35 var(--font-display); color: var(--ink-2); }
.opening img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.opening em { font-style: italic; font-weight: 700; color: var(--red); }
.seg-big span { min-height: 56px; font-size: 1.05rem; }
.age-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.age-chips .chip span { display: grid; width: 100%; min-width: 0; padding: 0; }
@media (min-width: 600px) { .age-chips { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.letter-field { position: relative; padding: 18px 18px 10px 30px; border-radius: 6px; background: var(--paper); box-shadow: var(--shadow-paper); }
.letter-field::after { content: ""; position: absolute; top: 0; bottom: 0; left: 20px; width: 1.5px; background: rgba(212, 43, 51, .3); pointer-events: none; }
.letter-field .greet { font: 600 1.6rem/34px var(--font-hand); color: #2b2f3a; }
textarea.letter-input { display: block; width: 100%; min-height: 170px; border: 0; padding: 0; resize: vertical; font: 500 1.55rem/34px var(--font-hand); color: #2b2f3a;
  background: transparent repeating-linear-gradient(180deg, transparent 0 33px, rgba(120, 150, 170, .3) 33px 34px); background-attachment: local; }
textarea.letter-input:focus { outline: none; }
textarea.letter-input::placeholder { color: #9da3ad; }
.letter-field:focus-within { box-shadow: 0 0 0 3px rgba(23, 33, 31, .12), var(--shadow-paper); }
.has-error .letter-field { box-shadow: 0 0 0 2px var(--red), var(--shadow-paper); }
.extra { border-radius: var(--r); background: var(--gold-tint); }
.extra summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 700; cursor: pointer; }
.extra summary::-webkit-details-marker { display: none; }
.extra summary .i { width: 18px; height: 18px; color: var(--gold-deep); transition: transform .2s var(--ease); }
.extra[open] summary .i { transform: rotate(45deg); }
.extra .badge { padding: 3px 8px; font-size: .6rem; }
.extra-body { display: grid; gap: 12px; padding: 0 16px 16px; }
.extra-body .hint { margin-top: -2px; }
.wish-box { display: grid; gap: 12px; margin: 0; min-width: 0; padding: 16px 18px; border: 0; border-radius: var(--r); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
/* a floated legend sits inside the box instead of on its border */
.wish-box legend { float: left; width: 100%; padding: 0; font-weight: 700; }
.wish-box legend + * { clear: both; }
.wish-box .hint { margin: 0; }
.wish-switch { padding: 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; }
.switch-copy { display: grid; gap: 2px; }
.switch-copy b { font-weight: 700; }
.switch-copy small { font-size: .875rem; color: var(--muted); line-height: 1.4; }
.wish-switch .err:empty { display: none; }
.wish-switch .err { margin: 0 18px 14px; }

/* when */
.when-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.when-card { position: relative; cursor: pointer; }
.when-card input { position: absolute; opacity: 0; pointer-events: none; }
.when-card > span { display: grid; gap: 4px; height: 100%; padding: 16px; border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s; }
.when-card b { font: 700 1.05rem/1.2 var(--font-display); }
.when-card small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.when-card input:checked + span { box-shadow: inset 0 0 0 2.5px var(--ink); }
.when-card input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.when-card input:disabled + span { opacity: .55; cursor: not-allowed; }
.slot-picker { display: grid; gap: 12px; }
.cal { padding: 10px 12px 12px; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); max-width: 460px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.cal-head b { font: 700 1.1rem/1 var(--font-display); }
.cal-nav { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; color: var(--ink); }
.cal-nav[data-cal-nav="-1"] .i { transform: rotate(90deg); }
.cal-nav[data-cal-nav="1"] .i { transform: rotate(-90deg); }
.cal-nav[disabled] { opacity: .3; cursor: not-allowed; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cal-dow span { padding: 2px 0 4px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cal-day { position: relative; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 650 .95rem/1 var(--font-text); font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s; }
.cal-day:hover:not([disabled]) { background: var(--paper-2); }
.cal-day[disabled] { color: #c9c2b4; cursor: default; }
.cal-day.today::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); transform: translateX(-50%); }
.cal-day[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cal-day[aria-pressed="true"]::after { background: var(--gold); }
.times { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); max-width: 460px; }
.times-title { font: 700 1.05rem/1.3 var(--font-display); }
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot { min-height: 46px; border-radius: 10px; border: 0; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s; }
.slot:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.slot[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.slot.is-taken { background: var(--paper-2); color: var(--muted); box-shadow: none; text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: .7; cursor: not-allowed; }
.slot.is-taken:hover { box-shadow: none; }
.slots-empty { grid-column: 1 / -1; color: var(--muted); }
.slots-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.slots-loading .spinner { width: 22px; height: 22px; border-width: 3px; }
.slot-note { color: var(--muted); font-size: .85rem; }
.has-error.cal, .has-error.times { box-shadow: inset 0 0 0 2px var(--red); }
@media (min-width: 600px) { .slot-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .slot-picker { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; column-gap: 16px; }
  .slot-picker > .err { grid-column: 1 / -1; }
  .slot-picker .times { max-width: none; }
  .slot-picker .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* contact + consents */
.contact-row { display: grid; gap: 14px; }
@media (min-width: 600px) { .contact-row { grid-template-columns: 1fr 1fr; align-items: start; } }
.consents { display: grid; gap: 10px; }
.consents-title { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.check a { font-weight: 700; color: var(--ink); text-underline-offset: 2px; }
.ai-line { display: flex; gap: 10px; font-size: .875rem; color: var(--muted); line-height: 1.45; }
.ai-line .i { width: 18px; height: 18px; margin-top: 1px; }
.ai-line a { color: var(--ink-2); font-weight: 700; }
.checkout-terms { font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.checkout-terms a { color: var(--ink-2); font-weight: 700; }
.wallets { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.wallets > span:first-child { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; color: var(--ink-2); font-size: .875rem; font-weight: 600; }
.wallets > span:first-child .i { width: 16px; height: 16px; color: var(--green-ink); }

/* receipt */
.receipt { position: relative; padding: 0 0 18px; background: var(--white); border-radius: 16px 16px 0 0; filter: drop-shadow(0 18px 26px rgba(40, 30, 10, .16)) drop-shadow(0 1px 1px rgba(40, 30, 10, .08)); margin-bottom: 12px; font-size: .95rem; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(135deg, var(--white) 33.33%, transparent 33.33%) 0 0 / 14px 10px repeat-x, linear-gradient(225deg, var(--white) 33.33%, transparent 33.33%) 0 0 / 14px 10px repeat-x; }
.receipt > *:not(.rc-head) { margin-left: 20px; margin-right: 20px; }
.rc-head { display: grid; justify-items: center; gap: 2px; padding: 16px 20px 14px; border-radius: 16px 16px 0 0; background: var(--night); color: var(--on-night); text-align: center; }
.rc-brand { font: 700 1.15rem/1 var(--font-display); }
.rc-brand em { color: var(--gold); font-style: italic; }
.rc-head small { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); }
.rc-who { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; padding: 16px 0 10px; }
.rc-who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold); }
.rc-who small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rc-who b { display: block; font: 700 1.15rem/1.2 var(--font-display); }
.rc-who span span { color: var(--ink-2); font-size: .9rem; }
.rc-meta { display: grid; gap: 8px; margin: 0; padding: 8px 0 12px; }
.rc-meta > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "dt btn" "dd btn"; column-gap: 10px; align-items: center; }
.rc-meta dt { grid-area: dt; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rc-meta dd { grid-area: dd; margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.rc-meta dd.empty { color: #aaa392; font-weight: 500; }
.rc-meta button { grid-area: btn; border: 0; background: none; padding: 0; font-size: .8rem; font-weight: 700; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.receipt.in-step4 [data-rc-contact] { display: none; }
.rc-letter { margin-bottom: 12px; padding: 10px 12px; border-radius: 8px; background: var(--page); font: 500 1.2rem/1.2 var(--font-hand); color: #2b2f3a; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rc-letter b { display: block; font: 800 .66rem/1.3 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 2px; }
.rc-items { list-style: none; margin: 0; padding: 12px 0; border-top: 1.5px dashed var(--line-2); display: grid; gap: 7px; }
.rc-items li { display: flex; align-items: baseline; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.rc-items li > span:first-child { min-width: 0; }
.rc-items li small { color: var(--muted); font-weight: 500; }
.rc-items .dots { flex: 1 1 12px; min-width: 12px; border-bottom: 1.5px dotted var(--line-2); transform: translateY(-4px); }
.rc-items b { white-space: nowrap; font-weight: 700; color: var(--ink); }
.rc-items li.main { color: var(--ink); font-weight: 700; font-size: .95rem; }
.rc-items li.main > span:first-child { flex: 1 1 auto; }
.rc-items li.main small { display: block; font-weight: 500; }
.rc-items li.main .dots { display: none; }
.rc-items li.inc b { color: var(--green-ink); font-size: .82rem; }
.rc-items li.disc b { color: var(--red); }
.receipt:not(.in-step4) .rc-items li.inc { display: none; }
.receipt.in-step4 .rc-incl { display: none; }
.rc-incl { margin-top: -4px; margin-bottom: 12px; font-size: .84rem; color: var(--ink-2); line-height: 1.4; }
.rc-incl b { color: var(--green-ink); }
.rc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 2px solid var(--ink); }
.rc-total span { font-weight: 800; }
.rc-total strong { font: 700 1.9rem/1 var(--font-display); color: var(--red); }
.rc-total del { color: var(--muted); font-weight: 600; margin-right: 8px; font-size: 1rem; }
.rc-code-toggle { display: block; margin-top: 12px; padding: 0; border: 0; background: none; font-weight: 700; font-size: .9rem; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.rc-code-toggle:hover { color: var(--ink); text-decoration-color: currentColor; }
.rc-code { display: flex; gap: 8px; margin-top: 14px; }
.rc-code .input { min-height: 44px; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.rc-code .btn { flex: none; min-height: 44px; }
.receipt .err { margin-top: 8px; }
.rc-code-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 14px; color: var(--green-ink); font-weight: 700; font-size: .9rem; }
.rc-code-ok .i { width: 18px; height: 18px; }
.rc-code-ok small { flex-basis: 100%; color: var(--muted); font-weight: 500; font-size: .8rem; }
.rc-code-ok button { margin-left: auto; border: 0; background: none; color: var(--ink-2); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.rc-memory { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--gold-tint); font-size: .88rem; font-weight: 600; color: var(--ink); }
.rc-memory .i { color: var(--gold-deep); width: 20px; height: 20px; }
.rc-upsell { display: grid; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--gold-tint); font-size: .88rem; }
.rc-upsell .btn { justify-self: start; }
.rc-note { margin-top: 12px; font-size: .78rem; color: var(--muted); text-align: center; }

/* bottom bar (phones) */
.co-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 253, 247, .98); box-shadow: 0 -1px 0 var(--line), 0 -14px 30px -22px rgba(40, 30, 10, .5); }
.co-bar-inner { display: flex; align-items: center; gap: 12px; max-width: 720px; margin-inline: auto; }
.co-bar .back { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--paper-2); display: grid; place-items: center; flex: none; color: var(--ink); }
.co-bar .total { display: grid; line-height: 1.2; min-width: 0; background: none; border: 0; padding: 0; text-align: left; color: var(--ink); }
.co-bar .total small { font-size: .78rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-bar .total b { font: 700 1.3rem/1.15 var(--font-display); }
.co-bar .total u { font-size: .78rem; font-weight: 700; color: var(--ink-2); text-underline-offset: 2px; }
.co-bar .btn { margin-left: auto; padding: 0 18px; }
.co-desktop-nav { display: none; }
.btn .spinner { width: 18px; height: 18px; border-width: 2.5px; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
@media (min-width: 980px) {
  .co { padding-block: 34px 90px; }
  .co-grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 56px; align-items: start; }
  .co-main { max-width: 680px; }
  .co-summary { position: sticky; top: 96px; }
  .co-bar { display: none; }
  .co-desktop-nav { display: flex; gap: 12px; align-items: center; margin-top: 30px; }
  .co-desktop-nav [data-next] { margin-left: auto; }
}
@media (max-width: 979px) { .co-summary { display: none; } }

/* Stripe dialog in the new look */
.kl-page .checkout-dialog { border-color: var(--line); background: var(--page); color: var(--ink); font-family: var(--font-text); }
.kl-page .checkout-dialog-header h2 { font-family: var(--font-display); font-weight: 900; }
.kl-page .checkout-dialog-close { border-color: var(--line-2); background: var(--white); color: var(--ink); }
.kl-page .checkout-overlay { background: rgba(8, 20, 24, .6); }
