/* ===== Pokladna, košík a platba ===== */
.steps { list-style: none; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 0; padding: 0; margin: 10px 0 18px; }
.steps li { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: #a78bb6; }
.steps li + li::before { content: ''; width: 46px; height: 3px; border-radius: 3px; background: #f1c3da; margin: 0 14px; }
.steps li.done + li::before, .steps li.current::before { background: var(--grad); }
.steps-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid #f1c3da; font-size: 0.95rem; }
.steps li.done { color: #12794b; }
.steps li.done .steps-dot { background: #e6f8ef; border-color: #12794b; color: #12794b; }
.steps li.current { color: var(--berry); }
.steps li.current .steps-dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--shadow); }
.steps a { color: inherit; text-decoration: none; }
.steps a:hover { text-decoration: underline; }

.co { padding-block: 12px 64px; }
.co-title { text-align: center; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 28px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; max-width: 1140px; margin-inline: auto; }
.co-card { background: #fff; border-radius: 28px; padding: 28px; margin-bottom: 20px; box-shadow: var(--card-shadow); }
.co-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.co-num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; box-shadow: var(--shadow); }
.co-head h2 { margin: 0; font-size: 1.4rem; }
.co-head p { margin: 2px 0 0; font-size: 0.92rem; opacity: 0.75; }

/* volba dopravy */
.ship-option { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px solid var(--pink); background: #fff7fb; border-radius: 20px; }
.ship-check { position: absolute; top: -11px; right: 18px; width: 24px; height: 24px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; }
.ship-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--pink-soft); color: var(--pink-deep); display: grid; place-items: center; }
.ship-text { display: grid; gap: 2px; flex: 1; line-height: 1.3; }
.ship-text small { opacity: 0.75; font-size: 0.88rem; }
.ship-price { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--pink-deep); white-space: nowrap; }
.ship-price.free { color: #12794b; }

/* výdejní místo */
.pickup { margin-top: 14px; display: grid; gap: 10px; }
.pickup-drop { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 18px 20px; border: 2px dashed #e8a9cb; border-radius: 20px; background: #fff; cursor: pointer; font: inherit; color: inherit; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.pickup-drop:hover { border-color: var(--pink); background: #fff7fb; transform: translateY(-1px); }
.pickup-drop.invalid { border-color: #d63a3a; background: #fff5f5; }
.pickup-drop[hidden], .pickup-card[hidden] { display: none; }
.pickup-pin { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.pickup-label { display: grid; gap: 2px; line-height: 1.3; }
.pickup-label strong { font-size: 1.05rem; }
.pickup-label small { opacity: 0.75; font-size: 0.88rem; }
.pickup-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: #eafaf1; border: 2px solid #b9e6cf; }
.pickup-ok { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #12794b; color: #fff; display: grid; place-items: center; }
.pickup-info { display: grid; flex: 1; gap: 1px; min-width: 0; line-height: 1.35; }
.pickup-info small { color: #12794b; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.7rem; }
.pickup-change { flex: none; background: #fff; border: 2px solid #b9e6cf; color: #12794b; border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.pickup-change:hover { background: #12794b; color: #fff; }
.btn-link { background: none; border: 0; padding: 0; color: var(--violet); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.85rem; justify-self: start; }

/* pole formuláře */
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.co-fields .wide { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; margin: 0; font-weight: 400; }
.field label { font-weight: 700; font-size: 0.92rem; color: var(--berry); }
.field label em { font-weight: 400; font-style: normal; opacity: 0.6; }
.field input, .field textarea { padding: 15px 16px; border-radius: 16px; border: 2px solid #f3d3e5; background: #fffafd; font: inherit; font-size: 1rem; color: var(--berry); width: 100%; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.field input:hover, .field textarea:hover { border-color: #eab6d2; }
.field input:focus, .field textarea:focus { border-color: var(--pink); background: #fff; box-shadow: 0 0 0 4px rgb(255 61 154 / 0.15); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: #b7a1c2; }
.field input.invalid { border-color: #d63a3a; background: #fff8f8; }
.field textarea { resize: vertical; min-height: 72px; }

/* zaškrtávátka */
.check { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; margin: 0; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; left: 0; top: 10px; cursor: pointer; }
.check .box { flex: none; width: 26px; height: 26px; border-radius: 9px; border: 2px solid #e8a9cb; background: #fff; display: grid; place-items: center; color: transparent; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.check:hover .box { border-color: var(--pink); }
.check input:checked + .box { background: var(--grad); border-color: transparent; color: #fff; }
.check input:focus-visible + .box { outline: 3px solid var(--pink); outline-offset: 2px; }
.check .text { font-size: 0.95rem; padding-top: 2px; }

/* souhrn */
.co-side { position: sticky; top: 90px; }
.co-summary { background: #fff; border-radius: 28px; padding: 26px; box-shadow: var(--card-shadow); border: 2px solid rgb(255 61 154 / 0.08); }
.co-summary h2 { font-size: 1.4rem; margin-bottom: 14px; }
.sum-items { list-style: none; margin: 0; padding: 0; }
.sum-items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; }
.sum-thumb { position: relative; display: block; }
.sum-thumb img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 2px solid var(--pink-soft); }
.sum-qty { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--berry); color: #fff; font-size: 0.78rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.sum-name { display: grid; font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
.sum-name small { font-family: var(--font-body); font-weight: 400; opacity: 0.75; font-size: 0.88rem; }
.sum-totals { margin: 10px 0 14px; padding-top: 12px; border-top: 2px dashed #f3d3e5; }
.sum-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.sum-totals dt, .sum-totals dd { margin: 0; }
.sum-totals dd.free { color: #12794b; font-weight: 700; }
.sum-totals .grand { margin-top: 8px; padding-top: 14px; border-top: 2px solid var(--pink-soft); font-family: var(--font-heading); font-weight: 700; font-size: 1.45rem; }
.btn-lg { padding: 19px 34px; font-size: 1.25rem; }
/* hlavní tlačítka v pokladně a v platbě: jemný puls, ať je jasné, kam kliknout */
.btn-lg.btn-pink:not(:disabled) { animation: cta-glow 2.8s ease-in-out infinite; }
@keyframes cta-glow { 0%, 100% { box-shadow: 0 12px 28px rgb(255 61 154 / 0.45), inset 0 2px 0 rgb(255 255 255 / 0.4), inset 0 -3px 0 rgb(160 0 80 / 0.28); } 50% { box-shadow: 0 16px 40px rgb(255 61 154 / 0.7), inset 0 2px 0 rgb(255 255 255 / 0.4), inset 0 -3px 0 rgb(160 0 80 / 0.28); } }
@media (prefers-reduced-motion: reduce) { .btn-lg.btn-pink:not(:disabled) { animation: none; } }
.sum-legal { text-align: center; font-size: 0.82rem; opacity: 0.75; margin: 12px 0 0; }
.trust { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed #f3d3e5; display: grid; gap: 10px; font-size: 0.9rem; }
.trust li { display: flex; gap: 10px; align-items: center; }
.trust .icon { color: var(--pink-deep); flex: none; }

.ship-tip { display: flex; gap: 10px; align-items: center; margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: #fff; border: 2px dashed #f1c3da; font-size: 0.95rem; }
.ship-tip .icon { color: var(--pink-deep); flex: none; }
.ship-tip.ok { border-style: solid; border-color: #b9e6cf; background: #eafaf1; }
.ship-tip.ok .icon { color: #12794b; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 24px; }
.stat { background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--card-shadow); }
.stat small { display: block; opacity: 0.7; font-size: 0.85rem; }
.stat strong { display: block; font-family: var(--font-heading); font-size: 1.7rem; line-height: 1.2; }
.stat.warn { border: 2px solid var(--pink); }
.top-list { margin: 0 0 24px; padding-left: 20px; }
.ship-note { margin: 10px 4px 0; font-size: 0.88rem; opacity: 0.8; }
.ship-note[hidden] { display: none; }
.sum-sub { display: block; font-size: 0.8rem; opacity: 0.7; }

/* řádky košíku uvnitř karty */
.cart-card { padding-block: 8px; }
.cart-card .cart-line { background: transparent; box-shadow: none; border-radius: 0; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--pink-soft); }
.cart-card .cart-line:last-child { border-bottom: 0; }
.sum-totals.first { border-top: 0; margin-top: 0; padding-top: 0; }
.co-card.empty { max-width: 520px; margin-inline: auto; text-align: center; }
.co-summary .pickup-card { margin-top: 14px; }

@media (max-width: 989px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-side { position: static; }
}
@media (max-width: 599px) {
  .co-card { padding: 20px; border-radius: 22px; }
  .co-fields { grid-template-columns: 1fr; }
  .steps li + li::before { width: 18px; margin: 0 8px; }
  .steps li { font-size: 0.9rem; gap: 6px; }
  .ship-option { flex-wrap: wrap; }
  .ship-text { flex-basis: 60%; }
  .pickup-card { flex-wrap: wrap; }
}

/* Apple Pay / Google Pay nahoře, pod nimi dělítko před kartou */
.express { margin: 0; }
.express-or[hidden] { display: none; }
.express-or { display: flex; align-items: center; gap: 14px; margin: 16px 0 18px; font-size: 0.9rem; font-weight: 700; color: var(--violet); }
.express-or::before, .express-or::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: #f1c3da; }

.wallet-hint { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--pink-soft); color: var(--violet); font-size: 0.85rem; line-height: 1.45; }
.wallet-hint[hidden] { display: none; }

/* odstup mezi formulářem Stripe a tlačítkem Zaplatit */
.stripe-form #pay-btn { margin-top: 24px; }
