/* ═══════════════════════════════════════════════════════════════════
   checkout.css — Boi na Brasa  /  Mobile-First Professional
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand:      #e8000a;
  --brand-dk:   #c40008;
  --brand-lt:   #fff0f0;
  --green:      #16a34a;
  --green-lt:   #f0fdf4;
  --bg:         #f4f5f7;
  --surface:    #ffffff;
  --border:     #e5e7eb;
  --border-2:   #d1d5db;
  --text-1:     #111827;
  --text-2:     #4b5563;
  --text-3:     #9ca3af;
  --r-sm:       8px;
  --r-md:       14px;
  --r-lg:       20px;
  --r-pill:     999px;
  --sh:         0 2px 12px rgba(0,0,0,.07);
  --sh-md:      0 4px 24px rgba(0,0,0,.10);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 90px;
}

a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Header ──────────────────────────────────────────────────────── */
.ck-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  box-shadow: 0 2px 12px rgba(232,0,10,.35);
}
.ck-header__back {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: none; color: #fff; cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}
.ck-header__back:hover { background: rgba(255,255,255,.3); }
.ck-header__back svg { width: 22px; height: 22px; }
.ck-header__title {
  flex: 1;
  font-size: 17px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ck-header__logo {
  width: 38px; height: 38px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.45);
  flex-shrink: 0;
}

/* ── Container ───────────────────────────────────────────────────── */
.ck-container {
  max-width: 620px;
  margin: 0 auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Card ────────────────────────────────────────────────────────── */
.ck-card {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--sh);
  overflow: hidden;
}
.ck-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.ck-card__icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--brand-lt);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ── Step numbers (estilo iFood) ─────────────────────────────────── */
.ck-step {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
  position: relative;
}
.ck-step--done {
  background: #16a34a;
}
.ck-step--done::after {
  content: '';
  display: block;
  width: 7px; height: 12px;
  border: 2.5px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
  position: absolute;
}
.ck-step--done { font-size: 0; }
.ck-step--fire {
  background: transparent;
  font-size: 20px;
  width: 28px; height: 28px;
}

.ck-card__title { font-size: 15px; font-weight: 700; color: var(--text-1); }
.ck-card__body { padding: 16px 18px; }

/* ── Items do pedido ─────────────────────────────────────────────── */
.ck-items { display: flex; flex-direction: column; gap: 0; }

.ck-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.ck-item:last-child { border-bottom: none; padding-bottom: 0; }
.ck-item:first-child { padding-top: 0; }

.ck-item__img-wrap {
  position: relative;
  flex-shrink: 0;
}
.ck-item__img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
}
.ck-item__qty-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--brand);
  color: #fff;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.ck-item__qty {
  min-width: 30px;
  height: 30px;
  background: var(--brand-lt);
  color: var(--brand);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ck-item__info { flex: 1; min-width: 0; }
.ck-item__name { font-size: 14px; font-weight: 600; color: var(--text-1); line-height: 1.35; }
.ck-item__complements { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.ck-item__price { font-size: 14px; font-weight: 700; color: var(--text-1); white-space: nowrap; }

.ck-empty-cart {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 0; gap: 10px; text-align: center;
}
.ck-empty-cart svg { width: 48px; height: 48px; color: var(--text-3); }
.ck-empty-cart p { font-size: 14px; color: var(--text-3); }

/* ── Formulários ─────────────────────────────────────────────────── */
.ck-form { display: flex; flex-direction: column; gap: 16px; }

.ck-field { display: flex; flex-direction: column; gap: 5px; }
.ck-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.ck-field input,
.ck-field select {
  height: 50px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 0 14px;
  background: var(--surface);
  color: var(--text-1);
  font-size: 15px;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}
.ck-field input:focus,
.ck-field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(232,0,10,.12);
}
.ck-field input::placeholder { color: var(--text-3); font-weight: 400; }
.ck-field input[readonly] { background: var(--bg); color: var(--text-2); }
.ck-field .field-error {
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  min-height: 16px;
  display: block;
  margin-top: 4px;
}
.ck-field.has-error input,
.ck-field.has-error select {
  border-color: var(--brand);
  background: #fff8f8;
}
.ck-field.has-error label { color: var(--brand); }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  15%      { transform: translateX(-6px); }
  30%      { transform: translateX(6px); }
  45%      { transform: translateX(-4px); }
  60%      { transform: translateX(4px); }
  75%      { transform: translateX(-2px); }
  90%      { transform: translateX(2px); }
}
.shake { animation: shake .45s ease; }

.ck-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ck-row--cep { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: flex-end; }
.ck-row--33-66 { grid-template-columns: 1fr 2fr; }

/* Botão buscar CEP */
.btn-cep {
  height: 50px;
  padding: 0 18px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}
.btn-cep:hover { background: var(--brand-dk); }
.btn-cep .spinner { display: none; }
.btn-cep.loading .btn-text { display: none; }
.btn-cep.loading .spinner { display: block; }
.btn-cep.loading { pointer-events: none; opacity: .75; }

/* ── Opções de entrega ───────────────────────────────────────────── */
.ck-delivery-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition: opacity .3s, max-height .4s;
}
.ck-delivery-options.visible {
  opacity: 1;
  pointer-events: auto;
  max-height: 400px;
}

.ck-delivery-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
}
.ck-delivery-option input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.ck-delivery-option.selected {
  border-color: #eb0033;
  background: #fff5f7;
}
.ck-delivery-option__dot {
  width: 18px; height: 18px;
  border: 2px solid var(--border-2);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.ck-delivery-option.selected .ck-delivery-option__dot {
  border-color: #eb0033;
  background: #eb0033;
  box-shadow: inset 0 0 0 4px #fff;
}
.ck-delivery-option__info { flex: 1; }
.ck-delivery-option__title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.ck-delivery-option__subtitle { font-size: 12px; color: var(--text-2); margin-top: 1px; }
.ck-delivery-option__price {
  font-size: 14px; font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}
.ck-delivery-option__price.paid { color: var(--text-1); }
.ck-delivery-option__badge {
  display: block;
  font-size: 10px;
  background: #eb0033;
  color: #fff;
  border-radius: 100px;
  padding: 2px 7px;
  font-weight: 600;
  margin-top: 3px;
  width: fit-content;
}

#deliveryPrompt {
  font-size: 13px;
  color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
  padding: 4px 0;
}

/* ── Formas de pagamento ─────────────────────────────────────────── */
.ck-pay-options { display: flex; flex-direction: column; gap: 10px; }

.ck-pay-option {
  border: 2px solid var(--border-2);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s;
}
.ck-pay-option.selected { border-color: var(--brand); }

.ck-pay-option__label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
}
.ck-pay-option input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.ck-pay-option__dot {
  width: 20px; height: 20px;
  border: 2px solid var(--border-2);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color .2s;
}
.ck-pay-option.selected .ck-pay-option__dot {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 4px #fff;
}
.ck-pay-option__icon {
  width: 40px; height: 40px;
  background: var(--bg);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.ck-pay-option__info { flex: 1; }
.ck-pay-option__title { font-size: 15px; font-weight: 700; color: var(--text-1); }
.ck-pay-option__subtitle { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* Card form */
.ck-card-form {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .3s;
  padding: 0 16px;
}
.ck-card-form.visible {
  max-height: 600px;
  opacity: 1;
  padding: 0 16px 16px;
}
.ck-card-logos { display: flex; gap: 8px; margin-bottom: 14px; }
.ck-card-logos img { height: 28px; width: auto; border-radius: 4px; }

/* Troco */
.ck-troco {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s, opacity .3s;
  padding: 0 16px;
}
.ck-troco.visible {
  max-height: 200px;
  opacity: 1;
  padding: 0 16px 16px;
}

/* ── Nota de segurança ───────────────────────────────────────────── */
.ck-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 12px;
}
.ck-note .icon { font-size: 16px; flex-shrink: 0; }

/* ── Totais ──────────────────────────────────────────────────────── */
.ck-totals {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--sh);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ck-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-2);
}
.ck-totals__row.total {
  border-top: 1.5px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
}
.ck-totals__row.total span:last-child { font-size: 20px; }
.free { color: var(--green); font-weight: 600; }

/* ── Barra de confirmar ─────────────────────────────────────────── */
.ck-submit-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.ck-submit-bar__inner { max-width: 620px; margin: 0 auto; }

.btn-confirm {
  width: 100%;
  height: 54px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .1s;
  font-family: inherit;
  letter-spacing: .01em;
}
.btn-confirm:hover { background: var(--brand-dk); }
.btn-confirm:active { transform: scale(.98); }
.btn-confirm:disabled {
  background: var(--text-3);
  cursor: not-allowed;
  transform: none;
}
.btn-confirm .spinner { display: none; }
.btn-confirm.loading .btn-text { display: none; }
.btn-confirm.loading .spinner { display: block; }
.btn-confirm.loading { pointer-events: none; }

/* ── Spinner ─────────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Modal: cartão indisponível (premium, sempre centralizado) ─────── */
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(17,24,39,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cc-overlay.open { opacity: 1; pointer-events: auto; }

.cc-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #fffdfb;
  border-radius: 24px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28), 0 4px 16px rgba(0,0,0,.08);
  text-align: center;
  transform: translateY(14px) scale(.96);
  opacity: 0;
  transition: transform .32s cubic-bezier(.16,1,.3,1), opacity .28s ease;
}
.cc-overlay.open .cc-modal { transform: translateY(0) scale(1); opacity: 1; }

.cc-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(17,24,39,.05);
  color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cc-close:hover { background: rgba(17,24,39,.1); color: var(--text-2); }
.cc-close svg { width: 14px; height: 14px; }

.cc-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(180deg, #fef3e2, #fde9c8);
  border: 1px solid #fbdca0;
  display: flex; align-items: center; justify-content: center;
  color: #c2790c;
}
.cc-icon svg { width: 26px; height: 26px; }

.cc-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.cc-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 24px;
}
.cc-text strong { color: var(--text-1); font-weight: 700; }

.btn-cc-pix {
  width: 100%;
  height: 54px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: background .2s, transform .1s;
  box-shadow: 0 10px 26px rgba(232,0,10,.28);
}
.btn-cc-pix:hover { background: var(--brand-dk); }
.btn-cc-pix:active { transform: scale(.98); }
.btn-cc-pix svg { width: 22px; height: 22px; flex-shrink: 0; }

.cc-retry {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  padding: 6px;
  transition: color .15s;
}
.cc-retry:hover { color: var(--text-2); text-decoration: underline; }

/* ── Overlay: processando pagamento com cartão (premium) ────────────── */
.cp-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(17,24,39,.6);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cp-overlay.open { opacity: 1; pointer-events: auto; }

.cp-modal {
  width: 100%;
  max-width: 360px;
  background: #fffdfb;
  border-radius: 24px;
  padding: 30px 26px 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
  text-align: center;
  transform: scale(.96);
  opacity: 0;
  transition: transform .32s cubic-bezier(.16,1,.3,1), opacity .28s ease;
}
.cp-overlay.open .cp-modal { transform: scale(1); opacity: 1; }

/* Cartão visual */
.cp-card {
  position: relative;
  width: 208px;
  height: 128px;
  margin: 0 auto 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f2937, #0f172a);
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(15,23,42,.3);
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color .35s ease, box-shadow .35s ease;
}
.cp-card::before {
  content: '';
  position: absolute;
  top: 0; left: -55%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
  animation: cpScan 1.7s ease-in-out infinite;
}
.cp-card.alert::before { animation: none; opacity: 0; }
.cp-card.alert {
  border-color: rgba(251,191,36,.45);
  box-shadow: 0 16px 32px rgba(180,83,9,.18);
}
@keyframes cpScan {
  0%   { left: -55%; }
  100% { left: 130%; }
}
.cp-card.shake { animation: cpShake .42s ease; }
@keyframes cpShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-3px); }
  40%      { transform: translateX(3px); }
  60%      { transform: translateX(-2px); }
  80%      { transform: translateX(2px); }
}

.cp-card__chip { position: absolute; top: 18px; left: 18px; width: 30px; height: 22px; }
.cp-card__lines { position: absolute; left: 18px; bottom: 36px; display: flex; gap: 7px; }
.cp-card__lines span { width: 22px; height: 7px; border-radius: 3px; background: rgba(255,255,255,.16); }
.cp-card__dots { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 5px; }
.cp-card__dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.55);
  animation: cpDot 1.1s ease-in-out infinite;
}
.cp-card__dots i:nth-child(2) { animation-delay: .15s; }
.cp-card__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cpDot {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50%      { opacity: 1;  transform: scale(1.15); }
}

/* Barra de progresso */
.cp-progress {
  width: 100%; height: 4px;
  border-radius: 99px;
  background: rgba(17,24,39,.08);
  overflow: hidden;
  margin-bottom: 22px;
}
.cp-progress__fill {
  height: 100%; width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), #ff6b5e);
  transition: width .55s cubic-bezier(.4,0,.2,1), background .35s ease;
}
.cp-progress__fill.alert { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.cp-title { font-size: 16.5px; font-weight: 800; color: var(--text-1); margin-bottom: 6px; letter-spacing: -.005em; }
.cp-subtitle { font-size: 13px; color: var(--text-2); line-height: 1.5; margin-bottom: 22px; }

.cp-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; text-align: left; }
.cp-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--text-3);
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease, color .25s ease;
}
.cp-step.active, .cp-step.done { opacity: 1; transform: translateY(0); }
.cp-step.active { color: var(--text-1); }
.cp-step.done { color: var(--text-3); }
.cp-step__dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--border-2);
  transition: background .25s ease, box-shadow .25s ease;
}
.cp-step.active .cp-step__dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(232,0,10,.12); }
.cp-step.done .cp-step__dot { background: var(--green); box-shadow: none; }

/* ── Tela de sucesso ─────────────────────────────────────────────── */
.ck-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 32px 24px;
  text-align: center;
  gap: 12px;
  background: var(--surface);
}
.ck-success.visible { display: flex; }

.ck-success__anim {
  width: 90px; height: 90px;
  background: var(--green-lt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  margin-bottom: 8px;
}
.ck-success__title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-1);
}
.ck-success__code {
  font-size: 15px;
  color: var(--text-2);
}
.ck-success__code strong { color: var(--brand); font-weight: 700; }
.ck-success__msg {
  font-size: 15px;
  color: var(--text-2);
  max-width: 320px;
  line-height: 1.6;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  margin-top: 8px;
  transition: background .2s;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
}
.btn-whatsapp:hover { background: #1fba5a; }
.btn-whatsapp svg { width: 22px; height: 22px; }

/* ── Modal PIX ───────────────────────────────────────────────────── */
.ck-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.ck-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.ck-modal {
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 24px 20px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ck-overlay.open .ck-modal { transform: translateY(0); }
.ck-modal__handle {
  width: 40px; height: 4px;
  background: var(--border-2);
  border-radius: 100px;
  margin: 0 auto 4px;
}
.ck-modal__title { font-size: 22px; font-weight: 800; color: var(--text-1); text-align: center; }
.ck-modal__subtitle { font-size: 14px; color: var(--text-2); text-align: center; margin-top: -6px; }

/* Status do pagamento PIX */
.ck-pay-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: #fef9c3;
  color: #92400e;
  font-weight: 600;
  font-size: 14px;
}
.ck-pay-status .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  flex-shrink: 0;
  animation: pulse-dot 1.2s ease infinite;
}
.ck-pay-status.paid { background: var(--green-lt); color: var(--green); }
.ck-pay-status.paid .dot { background: var(--green); animation: none; }

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: .6; }
}

/* QR Code */
.ck-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--r-md);
}
.ck-qr-wrap img {
  width: 200px; height: 200px;
  border-radius: var(--r-sm);
  display: block;
}

/* Código copia e cola */
.ck-pix-copy {
  display: flex;
  gap: 8px;
  align-items: stretch;
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 12px;
}
.ck-pix-copy__code {
  flex: 1;
  font-size: 11.5px;
  color: var(--text-2);
  word-break: break-all;
  line-height: 1.5;
  font-family: 'Courier New', monospace;
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  border: 1px solid var(--border);
}
.btn-copy {
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}
.btn-copy:hover { background: var(--brand-dk); }
.btn-copy.copied { background: var(--green); }

/* Timer */
.ck-pix-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
}
.ck-pix-timer.expired { color: var(--brand); }

/* Botão verificar */
.btn-check-pay {
  width: 100%;
  height: 50px;
  background: var(--surface);
  color: var(--brand);
  border: 2px solid var(--brand);
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, color .2s;
  font-family: inherit;
}
.btn-check-pay:hover { background: var(--brand-lt); }

/* ── Toast ───────────────────────────────────────────────────────── */
.ck-toast {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px)); left: 50%;
  transform: translateX(-50%) translateY(12px) scale(.97);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  color: var(--text-1);
  padding: 14px 18px;
  border-radius: var(--r-md);
  border-left: 4px solid var(--brand);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  max-width: min(420px, 90vw);
  text-align: left;
  box-shadow: var(--sh-md);
}
.ck-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.ck-toast__icon {
  flex-shrink: 0;
  display: flex;
  color: var(--brand);
}
.ck-toast__msg { line-height: 1.4; }
.ck-toast--success { border-left-color: var(--green); }
.ck-toast--success .ck-toast__icon { color: var(--green); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .ck-container { padding: 24px 16px; gap: 14px; }
  .ck-card__body { padding: 20px 22px; }
  .ck-card__header { padding: 18px 22px 14px; }
  .ck-totals { padding: 20px 22px; }
  .ck-overlay { align-items: center; }
  .ck-modal {
    border-radius: var(--r-lg);
    margin: 16px;
    max-height: 90dvh;
  }
}

/* ── Order Bumps ─────────────────────────────────────────────────── */
.ob-list { display: flex; flex-direction: column; gap: 8px; }

.ob-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color .15s;
}
.ob-item.added {
  border-color: var(--green);
  background: var(--green-lt);
}
.ob-img {
  width: 52px; height: 52px;
  border-radius: 7px;
  object-fit: contain;
  background: #f8f8f8;
  flex-shrink: 0;
}
.ob-info { flex: 1; min-width: 0; }
.ob-badge {
  display: inline-block;
  background: #eb0033;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: .03em;
  margin-bottom: 2px;
}
.ob-name {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ob-prices {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.ob-prices s { font-size: .7rem; color: var(--text-3); }
.ob-prices strong { font-size: .78rem; color: var(--green); font-weight: 700; }
.ob-btn {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1.5px solid #eb0033;
  background: transparent;
  color: #eb0033;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.ob-btn:hover { background: #eb0033; color: #fff; }
.ob-item.added .ob-btn {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
