/* Checkout TV FAST: usa os tokens de /styles.css */
body.ck {
  margin: 0; min-height: 100vh; background: var(--bg-page, #060810);
  color: #f1f5f9; font-family: 'DM Sans', system-ui, sans-serif;
  background-image: radial-gradient(70rem 32rem at 50% -14rem, rgba(0, 120, 248, .16), transparent 70%);
}
.ck [hidden] { display: none !important; }
.ck ::selection { background: rgba(0, 232, 248, .32); color: #fff; }
.ck :focus-visible { outline: 2px solid var(--brand-cyan, #00e8f8); outline-offset: 3px; }
.ck a { text-underline-offset: 3px; }

/* topo */
.ck-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1040px; margin: 0 auto; padding: 18px 24px;
}
.ck-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; font-family: 'Outfit', system-ui, sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.ck-logo img { height: 30px; width: auto; display: block; }
.ck-logo b { color: var(--brand-cyan, #00e8f8); font-weight: 800; }
.ck-help {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  color: #e2e8f0; text-decoration: none; font-size: 14.5px; font-weight: 600;
  border: 1px solid rgba(37, 211, 102, .35); background: rgba(37, 211, 102, .07); transition: border-color .15s, color .15s;
}
.ck-help:hover { color: #fff; border-color: var(--whatsapp-color, #25d366); }
.ck-wa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp-color, #25d366); box-shadow: 0 0 0 3px rgba(37, 211, 102, .22); }

/* estrutura: etapa à esquerda, resumo do pedido à direita */
.ck-shell {
  max-width: 1040px; margin: 0 auto; padding: 8px 24px 120px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 56px; align-items: start;
}
.ck-progress, .ck-main { grid-column: 1; }
.ck-order { grid-column: 2; grid-row: 1 / span 2; }
body[data-step="4"] .ck-order { display: none; }
body[data-step="4"] .ck-shell { grid-template-columns: minmax(0, 640px); justify-content: center; }

/* progresso */
.ck-progress { list-style: none; margin: 18px 0 34px; padding: 0; display: flex; align-items: center; gap: 10px; }
.ck-progress li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--text-muted, #94a3b8); white-space: nowrap; }
.ck-progress li + li::before { content: ''; width: 34px; height: 1px; background: rgba(148, 163, 184, .3); margin-right: 1px; }
.ck-progress-n {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none;
  font-family: 'Outfit', system-ui, sans-serif; font-size: 13.5px; font-weight: 700;
  box-shadow: inset 0 0 0 1.5px rgba(148, 163, 184, .35);
}
.ck-progress li.is-on { color: #fff; }
.ck-progress li.is-on .ck-progress-n { color: #04121a; background: var(--brand-cyan, #00e8f8); box-shadow: none; }
.ck-progress li.is-done { color: #cbd5e1; }
.ck-progress li.is-done .ck-progress-n { color: var(--brand-cyan, #00e8f8); box-shadow: inset 0 0 0 1.5px rgba(0, 232, 248, .55); }
.ck-progress li.is-done + li::before { background: rgba(0, 232, 248, .55); }
body[data-step="4"] .ck-progress { display: none; }

/* textos */
.ck-step h1 {
  font-family: 'Outfit', system-ui, sans-serif; font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(30px, 5vw, 42px); line-height: 1.08; margin: 0 0 12px; outline: none; color: #fff;
}
.ck-h2 { font-family: 'Outfit', system-ui, sans-serif; font-size: 19px; font-weight: 700; color: #fff; margin: 36px 0 14px; }
.ck-lead { color: var(--text-secondary, #cbd5e1); font-size: 17px; line-height: 1.55; margin: 0 0 26px; max-width: 52ch; }
.ck-summary {
  margin: 4px 0 26px; padding: 12px 16px; border-radius: 12px; font-size: 15px; line-height: 1.45;
  background: rgba(0, 232, 248, .06); border: 1px solid rgba(0, 232, 248, .2); color: #e2e8f0;
}
.ck-note { color: var(--text-muted, #94a3b8); font-size: 15px; line-height: 1.55; margin: 18px 0 0; }
.ck-note a, .ck-wait a { color: var(--whatsapp-color, #25d366); font-weight: 700; }
.ck-note strong { color: #e2e8f0; }
.ck-back {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--text-muted, #94a3b8);
  font: inherit; font-size: 15px; font-weight: 600; padding: 6px 0; margin: 0 0 10px; cursor: pointer;
}
.ck-back:hover { color: #fff; }
.ck-badge {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 16px; padding: 6px 12px 6px 9px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--whatsapp-color, #25d366); background: rgba(37, 211, 102, .1); border: 1px solid rgba(37, 211, 102, .3);
}

/* planos */
.ck-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding-top: 10px; }
.ck-plan { position: relative; cursor: pointer; display: block; }
.ck-plan input { position: absolute; opacity: 0; pointer-events: none; }
.ck-plan-body {
  position: relative; display: flex; flex-direction: column; height: 100%; box-sizing: border-box;
  padding: 20px 20px 18px; border-radius: 16px; background: var(--bg-surface-elevated, #0a0f1d);
  border: 1.5px solid rgba(148, 163, 184, .16); transition: border-color .15s, background .15s, box-shadow .15s;
}
.ck-plan:hover .ck-plan-body { border-color: rgba(0, 232, 248, .4); }
.ck-plan input:checked + .ck-plan-body {
  border-color: var(--brand-cyan, #00e8f8); background: linear-gradient(180deg, rgba(0, 232, 248, .09), rgba(0, 120, 248, .04) 70%), var(--bg-surface-elevated, #0a0f1d);
  box-shadow: 0 14px 40px -18px rgba(0, 232, 248, .45);
}
.ck-plan input:focus-visible + .ck-plan-body { outline: 2px solid var(--brand-cyan, #00e8f8); outline-offset: 3px; }
.ck-plan-tag {
  position: absolute; top: -11px; left: 18px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--brand-blue, #0078f8); color: #fff; letter-spacing: .01em;
}
.ck-plan-tag-alt { background: #0f5132; color: #d1fae5; }
.ck-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ck-plan-name { font-family: 'Outfit', system-ui, sans-serif; font-weight: 700; font-size: 19px; color: #fff; }
.ck-radio { width: 20px; height: 20px; flex: none; border-radius: 50%; box-sizing: border-box; border: 2px solid rgba(148, 163, 184, .45); transition: border-color .15s, border-width .15s; }
.ck-plan input:checked + .ck-plan-body .ck-radio { border: 6px solid var(--brand-cyan, #00e8f8); background: #04121a; }
.ck-plan-time { color: var(--text-secondary, #cbd5e1); font-size: 14.5px; margin-top: 3px; }
.ck-plan-price { font-family: 'Outfit', system-ui, sans-serif; font-weight: 800; font-size: 30px; margin-top: 16px; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.ck-plan-save { color: var(--text-muted, #94a3b8); font-size: 13.5px; font-weight: 600; }
.ck-plan-save.is-deal { color: var(--brand-cyan, #00e8f8); }

/* novo ou renovação */
.ck-who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ck-chip {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  background: var(--bg-surface-elevated, #0a0f1d); border: 1.5px solid rgba(148, 163, 184, .16); transition: border-color .15s;
}
.ck-chip span { display: grid; gap: 1px; }
.ck-chip strong { font-size: 16px; color: #fff; }
.ck-chip small { font-size: 13.5px; color: var(--text-muted, #94a3b8); }
.ck-chip:hover { border-color: rgba(0, 232, 248, .4); }
.ck-chip:has(input:checked) { border-color: var(--brand-cyan, #00e8f8); background: rgba(0, 232, 248, .05); }
.ck-chip input, .ck-check input, .ck-pay-opt input { accent-color: var(--brand-cyan, #00e8f8); width: 20px; height: 20px; margin: 0; flex: none; }

/* formulário */
.ck-form { display: grid; gap: 18px; }
.ck-form label { display: grid; gap: 8px; font-size: 15px; font-weight: 600; color: #e2e8f0; }
.ck-opt { font-weight: 400; color: var(--text-muted, #94a3b8); }
.ck-form input:not([type=checkbox]), .ck-form select, .ck-field, .ck-copy input {
  box-sizing: border-box; width: 100%; height: 54px; padding: 0 16px; border-radius: 12px; font: inherit; font-size: 17px; font-weight: 400;
  color: #f1f5f9; background: #0b1222; border: 1.5px solid rgba(148, 163, 184, .22); transition: border-color .15s, box-shadow .15s;
}
.ck-field { padding-top: 15px; }
.ck-form input:hover:not(:focus), .ck-form select:hover:not(:focus) { border-color: rgba(148, 163, 184, .38); }
.ck-form input:focus, .ck-form select:focus, .ck-copy input:focus { outline: none; border-color: var(--brand-cyan, #00e8f8); box-shadow: 0 0 0 4px rgba(0, 232, 248, .14); }
.ck-form input::placeholder { color: #64748b; }
.ck-check {
  display: flex !important; align-items: center; gap: 12px; font-weight: 500 !important; cursor: pointer;
  padding: 14px 16px; border-radius: 12px; border: 1.5px solid rgba(148, 163, 184, .16); background: var(--bg-surface-elevated, #0a0f1d);
}
.ck-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ck-safe { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted, #94a3b8); padding-left: 28px; position: relative; }
.ck-safe::before {
  content: ''; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; background: var(--whatsapp-color, #25d366);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ck-mock .ck-field { display: flex; align-items: center; color: #64748b; }
.ck-mock .ck-field::after { content: 'modo teste'; padding: 0 4px; font-size: 14px; }

/* forma de pagamento */
.ck-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ck-pay-opt {
  display: grid; grid-template-columns: auto auto 1fr; column-gap: 12px; row-gap: 4px; align-items: center; padding: 16px; border-radius: 14px; cursor: pointer;
  background: var(--bg-surface-elevated, #0a0f1d); border: 1.5px solid rgba(148, 163, 184, .16); transition: border-color .15s;
}
.ck-pay-opt:hover { border-color: rgba(0, 232, 248, .4); }
.ck-pay-opt:has(input:checked) { border-color: var(--brand-cyan, #00e8f8); background: rgba(0, 232, 248, .05); }
.ck-pay-ico { width: 24px; height: 24px; color: var(--brand-cyan, #00e8f8); }
.ck-pay-opt strong { font-size: 17px; color: #fff; }
.ck-pay-opt span { grid-column: 1 / -1; color: var(--text-muted, #94a3b8); font-size: 14px; line-height: 1.45; }
.ck-pay:has(#pay-card[hidden]) { grid-template-columns: 1fr; }

.ck-error { min-height: 1px; margin: 16px 0 0; color: #fca5a5; font-weight: 600; font-size: 15px; }
.ck-error:empty { margin: 0; }

/* botões */
.ck-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; margin-top: 24px; padding: 0 20px;
  border: 0; border-radius: 14px; cursor: pointer; text-decoration: none; box-sizing: border-box;
  font-family: 'Outfit', system-ui, sans-serif; font-weight: 700; font-size: 18px; color: #04121a;
  background: linear-gradient(90deg, var(--brand-cyan, #00e8f8), var(--brand-blue, #0078f8));
  box-shadow: 0 12px 30px -14px rgba(0, 160, 248, .8); transition: filter .15s, transform .1s;
}
.ck-btn:hover { filter: brightness(1.08); }
.ck-btn:active { transform: scale(.99); }
.ck-btn:disabled { opacity: .6; cursor: progress; }
.ck-btn + .ck-btn { margin-top: 12px; }
.ck-btn-sm { width: auto; min-height: 54px; margin: 0; font-size: 16px; flex: none; box-shadow: none; }
.ck-btn-ghost { background: transparent; color: var(--text-secondary, #cbd5e1); border: 1px dashed rgba(148, 163, 184, .4); font-size: 15px; box-shadow: none; }
.ck-btn-wa { background: var(--whatsapp-color, #25d366); color: var(--whatsapp-text, #05190e); box-shadow: none; }

/* resumo do pedido */
.ck-order {
  position: sticky; top: 24px; margin-top: 18px; padding: 26px 26px 22px; border-radius: 20px;
  background: var(--bg-surface-elevated, #0a0f1d); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 70px -40px rgba(0, 120, 248, .45);
}
.ck-order h2 { font-family: 'Outfit', system-ui, sans-serif; font-size: 18px; font-weight: 700; margin: 0 0 16px; color: #fff; }
.ck-order-plan { display: grid; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ck-order-plan strong { font-family: 'Outfit', system-ui, sans-serif; font-size: 22px; color: #fff; }
.ck-order-plan span { color: var(--text-secondary, #cbd5e1); font-size: 14.5px; }
.ck-order-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.ck-order-list li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.45; color: #e2e8f0; }
.ck-order-list li::before {
  content: ''; position: absolute; left: 4px; top: 5px; width: 9px; height: 5px;
  border-left: 2px solid var(--brand-cyan, #00e8f8); border-bottom: 2px solid var(--brand-cyan, #00e8f8); transform: rotate(-45deg);
}
.ck-order-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .07); }
.ck-order-total span { color: var(--text-secondary, #cbd5e1); font-weight: 600; }
.ck-order-total strong { font-family: 'Outfit', system-ui, sans-serif; font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ck-order-foot { margin: 10px 0 0; color: var(--text-muted, #94a3b8); font-size: 13.5px; line-height: 1.5; }

/* Pix */
.ck-howto { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: how; display: grid; gap: 10px; }
.ck-howto li { counter-increment: how; position: relative; padding-left: 40px; color: var(--text-secondary, #cbd5e1); font-size: 16px; line-height: 1.55; }
.ck-howto li::before {
  content: counter(how); position: absolute; left: 0; top: -1px; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Outfit', system-ui, sans-serif; font-size: 14px; font-weight: 700; color: var(--brand-cyan, #00e8f8); box-shadow: inset 0 0 0 1.5px rgba(0, 232, 248, .45);
}
.ck-howto strong { color: #fff; }
.ck-qr { display: block; width: min(260px, 70vw); aspect-ratio: 1; margin: 0 auto 20px; padding: 14px; background: #fff; border-radius: 18px; box-shadow: 0 20px 50px -24px rgba(0, 232, 248, .5); }
.ck-copy { display: flex; gap: 10px; }
.ck-copy input { font-family: ui-monospace, monospace; font-size: 14px; text-overflow: ellipsis; }
.ck-wait { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; padding: 15px 16px; border-radius: 14px; background: rgba(0, 120, 248, .1); border: 1px solid rgba(0, 120, 248, .25); color: #e2e8f0; font-size: 15px; line-height: 1.45; }
.ck-spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2.5px solid rgba(0, 232, 248, .25); border-top-color: var(--brand-cyan, #00e8f8); animation: ck-spin .8s linear infinite; }
@keyframes ck-spin { to { transform: rotate(360deg); } }

/* pronto */
.ck-cred { display: grid; gap: 0; border-radius: 16px; overflow: hidden; border: 1.5px solid rgba(37, 211, 102, .4); background: var(--bg-surface-elevated, #0a0f1d); }
.ck-cred:empty { display: none; }
.ck-cred-row { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 12px; padding: 16px 18px; }
.ck-cred-row + .ck-cred-row { border-top: 1px solid rgba(255, 255, 255, .07); }
.ck-cred-row span { color: var(--text-muted, #94a3b8); font-size: 14px; }
.ck-cred-row strong { font-family: ui-monospace, monospace; font-size: 20px; word-break: break-all; color: #fff; }
.ck-cred-row button { padding: 8px 14px; border-radius: 9px; border: 1px solid rgba(148, 163, 184, .3); background: transparent; color: #e2e8f0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ck-cred-row button:hover { border-color: var(--brand-cyan, #00e8f8); color: #fff; }

/* WhatsApp flutuante */
.ck-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 20; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 14px; border-radius: 999px; text-decoration: none; font-weight: 700;
  background: var(--whatsapp-color, #25d366); color: var(--whatsapp-text, #05190e); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

@media (max-width: 920px) {
  .ck-shell { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .ck-order { display: none; }
}
@media (min-width: 921px) {
  .ck-summary { display: none; }
}
@media (max-width: 520px) {
  .ck-top { padding: 14px 16px; }
  .ck-help-long { display: none; }
  .ck-shell { padding: 0 16px 110px; }
  .ck-progress { margin: 10px 0 26px; gap: 8px; }
  .ck-progress li { font-size: 13px; gap: 7px; }
  .ck-progress li + li::before { width: 14px; }
  .ck-plans { gap: 12px; }
  .ck-plan-body { padding: 18px 14px 14px; }
  .ck-plan-tag { left: 12px; font-size: 11.5px; }
  .ck-plan-name { font-size: 17px; }
  .ck-plan-time { font-size: 13.5px; }
  .ck-plan-price { font-size: 25px; margin-top: 12px; }
  .ck-plan-save { font-size: 12.5px; }
  .ck-who, .ck-pay, .ck-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ck-spin { animation-duration: 2.4s; }
  .ck-btn, .ck-plan-body, .ck-chip, .ck-pay-opt, .ck-radio, .ck-form input { transition: none; }
}

/* vendas em pausa / senha já mostrada */
.ck-off { margin: 22px 0 0; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.5; color: #fde68a; background: rgba(250, 204, 21, .07); border: 1px solid rgba(250, 204, 21, .28); }
.ck-off + .ck-btn { margin-top: 14px; }
.ck-cred-row strong.ck-cred-hidden { font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text-muted, #94a3b8); }

/* usuário escolhido pelo cliente */
.ck-hint { margin: -6px 0 2px; font-size: 13.5px; line-height: 1.45; color: var(--text-muted, #94a3b8); min-height: 1.45em; }
.ck-hint[data-kind="ok"] { color: #4ade80; }
.ck-hint[data-kind="bad"] { color: #fca5a5; }
.ck-form input[aria-invalid="true"] { border-color: #f87171; }
