/* ═══════════════════════════════════════════════════════════
   CHECKOUT — Premium redesign
   Matches index.html visual language: white cards, orange CTAs,
   radius 12-16 px, soft shadows, clean typography
═══════════════════════════════════════════════════════════ */

/* ── Reset & tokens ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:      #ff6900;
  --orange-d:    #e85c00;
  --orange-lt:   #fff3eb;
  --pix:         #32bcad;
  --pix-lt:      #e8f8f7;
  --green:       #2e7d32;
  --green-lt:    #e8f5e9;
  --red:         #c62828;
  --red-lt:      #ffebee;
  --text:        #1a1a1a;
  --text-2:      #555;
  --text-3:      #888;
  --border:      #e8e8e8;
  --border-f:    #bdbdbd;
  --bg:          #f5f5f7;
  --white:       #ffffff;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; padding-bottom: 100px; }

/* ── Utility ─────────────────────────────────────────────── */
.hidden { display: none !important; }
.ck-green { color: var(--green); font-weight: 600; }

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.ck-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.ck-header-left,
.ck-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}

.ck-header-right { justify-content: flex-end; }

.ck-header-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.ck-header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.ck-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-2);
  transition: background .15s;
}
.ck-btn-icon:hover { background: var(--bg); }
.ck-btn-icon svg { width: 20px; height: 20px; }

.ck-secure-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-lt);
  padding: 4px 10px;
  border-radius: 20px;
}
.ck-secure-badge svg { width: 13px; height: 13px; stroke: var(--green); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   PROGRESS STEPS
══════════════════════════════════════════════════════════ */
.ck-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px 20px 10px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.ck-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ck-step-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-3);
  background: var(--white);
  transition: all .25s;
}

.ck-step-item span {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
  transition: color .25s;
}

.ck-step-item.active .ck-step-bubble {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(255,105,0,.15);
}

.ck-step-item.active span { color: var(--orange); }

.ck-step-item.done .ck-step-bubble {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.ck-step-item.done span { color: var(--green); }

.ck-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 6px;
  margin-bottom: 14px;
  max-width: 60px;
  transition: background .25s;
}

.ck-step-line.done { background: var(--green); }
.ck-step-line.active { background: var(--orange); }

/* ══════════════════════════════════════════════════════════
   MAIN / VIEWS
══════════════════════════════════════════════════════════ */
.ck-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 12px 24px;
}

.ck-view { display: flex; flex-direction: column; gap: 12px; }

/* ══════════════════════════════════════════════════════════
   CARDS (base)
══════════════════════════════════════════════════════════ */
.ck-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.ck-card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════════════
   STEP 1 — PRODUCT ROW
══════════════════════════════════════════════════════════ */
.ck-product-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ck-product-img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fafafa;
}

.ck-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ck-product-info {
  flex: 1;
  min-width: 0;
}

.ck-product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
}

.ck-product-vendor {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-2);
  margin-bottom: 8px;
}

.ck-product-vendor svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.ck-product-vendor strong { color: var(--green); }

.ck-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.ck-qty-label {
  font-size: 12px;
  color: var(--text-2);
}

.ck-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ck-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-size: 16px;
  color: var(--text-2);
  transition: background .15s;
}

.ck-qty-btn:hover { background: #e8e8e8; }

.ck-qty-ctrl span {
  width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  line-height: 28px;
}

.ck-product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.ck-price-from {
  font-size: 11px;
  color: var(--text-3);
  text-decoration: line-through;
}

.ck-price-main {
  font-size: 17px;
  font-weight: 800;
  color: var(--orange);
  white-space: nowrap;
}

/* Confirmação de localidade após CEP */
.ck-ship-cep-ok {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-lt);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  margin-bottom: 10px;
}

/* ══════════════════════════════════════════════════════════
   SHIPPING OPTIONS
══════════════════════════════════════════════════════════ */
.ck-shipping-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ck-ship-opt {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
  gap: 10px;
  position: relative;
}

.ck-ship-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ck-ship-opt.selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,105,0,.10);
  background: var(--orange-lt);
}

.ck-ship-body {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.ck-ship-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ck-ship-icon.free     { background: var(--green-lt); }
.ck-ship-icon.free svg   { stroke: var(--green); }
.ck-ship-icon.express  { background: var(--orange-lt); }
.ck-ship-icon.express svg { stroke: var(--orange); }
.ck-ship-icon svg { width: 20px; height: 20px; }

.ck-ship-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ck-ship-info strong { font-size: 13.5px; color: var(--text); }
.ck-ship-info span   { font-size: 11.5px; color: var(--text-2); }

.ck-ship-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}

.ck-ship-price.free-tag { color: var(--green); }

.ck-ship-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .18s;
}

.ck-ship-opt.selected .ck-ship-check {
  border-color: var(--orange);
}

.ck-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  transition: opacity .18s, transform .18s;
  transform: scale(0.5);
}

.ck-ship-opt.selected .ck-radio-dot {
  opacity: 1;
  transform: scale(1);
}

/* ══════════════════════════════════════════════════════════
   SUMMARY CARD
══════════════════════════════════════════════════════════ */
.ck-summary-card { padding: 16px; }

.ck-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--text-2);
}

.ck-sum-row span:last-child { font-weight: 600; color: var(--text); }

.ck-sum-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.ck-sum-total {
  align-items: flex-start;
  padding: 8px 0 0;
}

.ck-sum-total > span:first-child {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding-top: 3px;
}

.ck-sum-total-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.ck-sum-pix {
  font-size: 18px;
  font-weight: 800;
  color: var(--pix);
}

.ck-sum-pix em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  background: var(--pix-lt);
  color: var(--pix);
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 4px;
}

.ck-sum-card {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 500;
}

.ck-pix-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--pix-lt);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 12px;
  font-size: 12.5px;
  color: #1a6b64;
}

.ck-pix-tag svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   CTA BLOCK (step 1)
══════════════════════════════════════════════════════════ */
.ck-cta-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 4px;
}

.ck-link-back {
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color .15s;
}

.ck-link-back:hover { color: var(--orange); }

/* ══════════════════════════════════════════════════════════
   PRIMARY BUTTON
══════════════════════════════════════════════════════════ */
.ck-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-d) 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,105,0,.35);
  transition: transform .15s, box-shadow .15s, opacity .15s;
  letter-spacing: .01em;
}

.ck-btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }

.ck-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,105,0,.45);
}

.ck-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255,105,0,.35);
}

.ck-btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ══════════════════════════════════════════════════════════
   FORM SECTIONS
══════════════════════════════════════════════════════════ */
.ck-form-section { padding: 18px 16px; }

.ck-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.ck-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Field ─────────────────────────────────────────────── */
.ck-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.ck-field:last-child { margin-bottom: 0; }

.ck-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

.ck-field input,
.ck-field select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
  -webkit-appearance: none;
}

.ck-field input:focus,
.ck-field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,105,0,.12);
}

.ck-field input.valid {
  border-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232e7d32' stroke-width='2.5'%3E%3Cpolyline points='3 8 7 12 13 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 36px;
}

.ck-field input.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(198,40,40,.10);
}

.ck-err {
  font-size: 11px;
  color: var(--red);
  min-height: 14px;
  font-weight: 500;
}

.ck-field-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.ck-field-row .ck-field { margin-bottom: 0; flex: 1; }
.ck-field-xs { max-width: 110px; }
.ck-field-uf { max-width: 72px; }

/* ── CEP wrap ────────────────────────────────────────────── */
.ck-cep-wrap {
  position: relative;
}

.ck-cep-wrap input {
  padding-right: 42px;
}

.ck-cep-status {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ck-cep-status.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: block;
}

.ck-cep-status.ok::after {
  content: '';
  display: block;
  width: 8px;
  height: 5px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg) translateY(-2px);
}

.ck-cep-status.err::after {
  content: '!';
  font-size: 13px;
  font-weight: 900;
  color: var(--red);
  display: block;
  line-height: 1;
}

/* Address fields animate-in */
.ck-address-fields {
  overflow: hidden;
  animation: slideDown .3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   PAYMENT OPTIONS
══════════════════════════════════════════════════════════ */
.ck-pay-opt {
  display: block;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
  margin-bottom: 10px;
  position: relative;
}

.ck-pay-opt:last-child { margin-bottom: 0; }

.ck-pay-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ck-pay-opt.active {
  border-color: var(--pix);
  box-shadow: 0 0 0 3px rgba(50,188,173,.12);
  background: var(--pix-lt);
}

.ck-pay-opt#optCard.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,105,0,.12);
  background: var(--orange-lt);
}

.ck-pay-opt-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ck-pix-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.ck-pay-opt-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ck-pay-opt-info strong { font-size: 14px; color: var(--text); }
.ck-pay-opt-info span   { font-size: 12px; color: var(--text-2); }

.ck-radio-ring {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .18s;
}

.ck-pay-opt.active .ck-radio-ring { border-color: var(--pix); }
.ck-pay-opt#optCard.active .ck-radio-ring { border-color: var(--orange); }

.ck-pay-opt.active .ck-radio-ring .ck-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pix);
  display: block;
}

.ck-pay-opt#optCard.active .ck-radio-ring .ck-radio-dot {
  background: var(--orange);
}

.ck-badge-green {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--green-lt);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 20px;
  width: fit-content;
}

.ck-pix-value-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(50,188,173,.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(50,188,173,.2);
}

.ck-pix-value-box p {
  font-size: 13px;
  color: var(--text-2);
  flex: 1;
}

.ck-pix-value-box strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--pix);
}

.ck-discount-chip {
  font-size: 11px;
  font-weight: 700;
  background: var(--green);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.ck-pix-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
  padding-left: 0;
  counter-reset: pix;
}

.ck-pix-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  counter-increment: pix;
}

.ck-pix-steps li::before {
  content: counter(pix);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pix);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ck-pix-steps li em { font-style: normal; font-weight: 600; }

.ck-pix-note {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--pix);
}

/* Card fields */
.ck-card-fields {
  margin-top: 14px;
  overflow: hidden;
  animation: slideDown .3s ease;
}

.ck-card-fields .ck-field { margin-bottom: 12px; }
.ck-card-fields .ck-field:last-child { margin-bottom: 0; }

/* Installments select */
.ck-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='1 1 6 7 11 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════
   TRUST BADGES
══════════════════════════════════════════════════════════ */
.ck-trust-row {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.ck-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
}

.ck-trust-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--orange);
}

.ck-trust-item span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  line-height: 1.3;
}

/* Form error */
.ck-form-error {
  background: var(--red-lt);
  border: 1px solid #ef9a9a;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--red);
  font-weight: 500;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   STICKY FOOTER
══════════════════════════════════════════════════════════ */
.ck-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 14px;
}

.ck-sticky-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}

.ck-sticky-label {
  font-size: 10.5px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ck-sticky-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.ck-sticky-value em {
  font-style: normal;
  font-size: 11px;
  color: var(--pix);
  font-weight: 600;
  margin-left: 2px;
}

.ck-sticky-sub {
  font-size: 10.5px;
  color: var(--green);
  font-weight: 600;
}

.sticky-cta {
  flex: 1;
  max-width: 240px;
  padding: 13px 16px;
  font-size: 14px;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   STEP 3 — PIX SCREEN
══════════════════════════════════════════════════════════ */
.ck-greet-card {
  background: linear-gradient(135deg, #e8f8f7 0%, #f0fff9 100%);
  border: 1px solid rgba(50,188,173,.25);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ck-greet-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(50,188,173,.25);
}

.ck-greet-icon svg { width: 24px; height: 24px; }

.ck-greet-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.ck-greet-msg {
  font-size: 12.5px;
  color: #1a6b64;
}

/* PIX main card */
.ck-pix-main { padding: 20px 16px; }

.ck-pix-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.ck-pix-logo { width: 36px; height: 36px; flex-shrink: 0; }

.ck-pix-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}

.ck-pix-sub { font-size: 12px; color: var(--text-2); }

/* Code input */
.ck-code-wrap { margin-bottom: 10px; }

.ck-code-input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-family: 'Courier New', monospace;
  color: var(--text-2);
  background: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  outline: none;
  cursor: default;
}

.ck-btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border: 2px solid var(--pix);
  border-radius: var(--radius-md);
  background: var(--pix-lt);
  color: #1a6b64;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, transform .12s;
}

.ck-btn-copy:hover { background: rgba(50,188,173,.18); }
.ck-btn-copy:active { transform: scale(.98); }
.ck-btn-copy svg { width: 18px; height: 18px; stroke: var(--pix); }

.ck-copy-ok {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  margin-top: 8px;
}

/* Timer */
.ck-timer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin: 14px 0;
  font-size: 12.5px;
  color: var(--text-2);
  flex-wrap: wrap;
}

.ck-timer-row svg { width: 15px; height: 15px; flex-shrink: 0; }
.ck-timer-sep { color: var(--border); }

.ck-countdown {
  font-size: 15px;
  font-weight: 800;
  color: var(--orange);
  font-family: 'Courier New', monospace;
  letter-spacing: .05em;
}

.ck-countdown.urgent { color: var(--red); animation: blink 1s infinite; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* QR frame */
.ck-qr-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 8px 0 14px;
  min-height: 180px;
}

.ck-qr-frame img {
  max-width: 160px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* Polling indicator */
.ck-polling {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-2);
  padding: 10px 0;
}

.ck-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pix);
  display: inline-block;
  animation: ripple 1.4s ease-out infinite;
  flex-shrink: 0;
}

@keyframes ripple {
  0%   { box-shadow: 0 0 0 0 rgba(50,188,173,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(50,188,173,0); }
  100% { box-shadow: 0 0 0 0 rgba(50,188,173,0); }
}

/* Cancel note */
.ck-cancel-note {
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
  padding: 0 16px;
}

/* HR separator */
.ck-hr {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Order info */
.ck-order-info { padding: 16px; }

.ck-order-info-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}

.ck-order-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-family: 'Courier New', monospace;
  letter-spacing: .03em;
}

.ck-order-email {
  font-size: 13px;
  color: var(--text-2);
  word-break: break-all;
}

/* Recap */
.ck-recap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.ck-recap-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.ck-recap-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.4;
}

.ck-recap-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--pix);
}

/* ══════════════════════════════════════════════════════════
   MODAL — FALHA NO CARTÃO
══════════════════════════════════════════════════════════ */
.ck-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
  animation: fadeIn .2s ease;
}

@media (min-width: 480px) {
  .ck-modal-bg { align-items: center; }
}

.ck-modal {
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 20px 32px;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: slideUp .25s ease;
}

@media (min-width: 480px) {
  .ck-modal { border-radius: var(--radius-lg); }
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.ck-modal-icon {
  display: flex;
  justify-content: center;
}

.ck-modal-icon svg {
  width: 48px;
  height: 48px;
}

.ck-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

.ck-modal-body {
  font-size: 13.5px;
  color: var(--text-2);
  text-align: center;
  line-height: 1.55;
}

.ck-modal-pix-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--pix-lt);
  border: 1.5px solid rgba(50,188,173,.3);
  border-radius: var(--radius-md);
  padding: 14px;
}

.ck-modal-pix-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.ck-modal-pix-sub {
  font-size: 12px;
  color: var(--pix);
  font-weight: 600;
}

.ck-modal-back {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 12.5px;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  padding: 4px;
}

.ck-modal-back:hover { color: var(--text-2); }

/* ══════════════════════════════════════════════════════════
   OVERLAY / SPINNER
══════════════════════════════════════════════════════════ */
.ck-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.ck-overlay-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}

.ck-overlay-card p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

.ck-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (min-width: 500px) {
  .ck-main { padding: 20px 16px 32px; }
  .ck-card  { padding: 20px; }
  .ck-form-section { padding: 22px 20px; }
  .ck-product-img { width: 96px; height: 96px; }
  .ck-price-main { font-size: 20px; }
  .ck-sticky-footer { padding: 14px 20px; }
  .sticky-cta { max-width: 260px; }
}

@media (min-width: 600px) {
  .ck-header { height: 60px; padding: 0 24px; }
  .ck-steps { padding: 16px 32px 12px; }
  .ck-step-line { max-width: 80px; }
}
