.ck-body { background: #f6f6f4; }
.ck-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.ck-top-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 10px 0;
}
.ck-top .logo img { height: 26px; }

.ck-steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
  list-style: none;
}
.ck-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #bbb;
}
.ck-steps li b { font-weight: 800; }
.ck-steps li span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.ck-steps li.on { color: var(--ink); }
.ck-steps li.on span {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.ck-steps li.done { color: var(--green-dark); }
.ck-steps li.done span {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.ck-steps li + li::before {
  content: "";
  width: 36px;
  height: 1px;
  background: #ddd;
  margin: 0 12px;
  flex-shrink: 0;
}
.ck-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  white-space: nowrap;
}
.ck-secure svg { width: 16px; height: 16px; }

.ck-main { padding: 28px 0 64px; }
.ck-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.ck-form, .ck-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.ck-form h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.ck-form h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 28px 0 10px;
}
.ck-lead { color: var(--muted); margin-bottom: 18px; }

.ck-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ck-grid .full { grid-column: 1 / -1; }
.ck-grid .wide { grid-column: 1 / -1; }
.ck-form label:not(.opt):not(.terms) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
}
.ck-form input,
.ck-form select {
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  background: #fff;
  width: 100%;
}
.ck-form .opt input,
.ck-form .terms input {
  width: 18px;
  height: 18px;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: none;
}
.ck-form input:focus,
.ck-form select:focus {
  outline: 2px solid #111;
  outline-offset: 0;
  border-color: #111;
}
.ck-form input.err,
.ck-form select.err { border-color: var(--danger); }
.hint { font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
.hint.ok { color: var(--green-dark); }
.hint.bad { color: var(--danger); }

.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: grid;
  grid-template-columns: 22px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--ink);
  width: 100%;
  box-sizing: border-box;
}
.opt:has(input:checked) {
  border-color: var(--ink);
  background: #fafafa;
  box-shadow: inset 0 0 0 1px var(--ink);
}
.opt-copy { min-width: 0; }
.opt strong { display: block; font-size: 14px; font-weight: 800; }
.opt em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.opt input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: #111;
}
.opt .price {
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  text-align: right;
  color: var(--ink);
}
.pay-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}
.opt-off {
  opacity: 0.62;
  pointer-events: none;
  background: #f4f4f4;
  cursor: not-allowed;
}
.maint {
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.addr-rest { margin-top: 14px; }
#shipBlock { margin-top: 8px; }

.pay-extra {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 13px;
  color: #444;
}
.pix-box { border-left: 3px solid var(--green); }

.ck-pane { display: none; }
.ck-pane.on { display: block; }

.ck-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ck-actions .cta { width: auto; min-width: 220px; padding: 0 28px; }
.ghost {
  height: 48px;
  padding: 0 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}
.ghost:disabled { opacity: 0.4; cursor: default; }

.review {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.review article {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 14px 16px;
}
.review h3 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.review p { font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.terms {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 13px;
  color: #333;
}
.terms input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }

.ck-done { text-align: center; padding: 24px 8px 8px; }
.done-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-done h1 { margin-bottom: 8px; }
.order-id { font-size: 15px; margin-bottom: 10px; }
.ck-done .cta {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 0 28px;
}

.ck-summary { position: sticky; top: 96px; padding: 0; overflow: hidden; }
.ck-summary details { padding: 22px 24px; }
.ck-summary summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}
.ck-summary summary::-webkit-details-marker { display: none; }
.ck-summary summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg);
  transition: transform .2s;
  margin-left: 6px;
  flex-shrink: 0;
}
.ck-summary details[open] summary::after { transform: rotate(-135deg); }
#sumHeadTotal { margin-left: auto; font-size: 16px; }
.sum-body { padding-top: 16px; }
.sum-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.sum-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--bg-soft);
  border-radius: 8px;
}
.sum-item strong { font-size: 13px; display: block; }
.sum-item small { color: var(--muted); }
.sum-rows { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.sum-rows > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  gap: 12px;
}
.sum-rows .total {
  font-size: 18px;
  font-weight: 800;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
#pixRow span:last-child { color: var(--green-dark); font-weight: 700; }
.sum-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

.ck-foot {
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  font-size: 11px;
  color: #888;
  text-align: center;
}

@media (min-width: 901px) {
  .ck-summary summary { pointer-events: none; }
  .ck-summary summary::after { display: none; }
}

@media (max-width: 900px) {
  .ck-top-inner {
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: 0;
    padding: 12px 0 14px;
  }
  .ck-top .logo { order: 1; }
  .ck-secure {
    order: 2;
    margin-left: auto;
    font-size: 10px;
  }
  .ck-steps {
    order: 3;
    flex-basis: 100%;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
  }
  .ck-steps li {
    flex: 1;
    flex-direction: column;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 0.02em;
    text-align: center;
  }
  .ck-steps li b { max-width: 100%; line-height: 1.2; }
  .ck-steps li + li::before { display: none; }

  .ck-main { padding: 12px 0 24px; }
  .ck-layout { grid-template-columns: 1fr; gap: 12px; }
  .ck-form {
    padding: 20px 16px 0;
    border-radius: 12px;
  }
  .ck-form h1 { font-size: 20px; }
  .ck-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ck-grid .full,
  .ck-grid .wide { grid-column: 1 / -1; }

  .ck-summary {
    position: static;
    order: -1;
    border-radius: 12px;
  }
  .ck-summary details { padding: 0; }
  .ck-summary summary {
    padding: 14px 16px;
    min-height: 52px;
  }
  .ck-summary details[open] summary {
    border-bottom: 1px solid var(--line);
  }
  .sum-body { padding: 12px 16px 16px; }

  .opt { padding: 12px; }

  .ck-actions {
    position: sticky;
    bottom: 0;
    z-index: 12;
    flex-direction: column-reverse;
    gap: 8px;
    margin: 20px -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px rgba(0,0,0,.06);
    border-radius: 0 0 12px 12px;
  }
  .ck-actions .cta,
  .ghost { width: 100%; min-width: 0; height: 48px; }
  .ck-done .cta { width: 100%; }

  .ck-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
  .ck-grid { grid-template-columns: 1fr; }
  .sum-item { grid-template-columns: 48px 1fr auto; }
  .sum-item img { width: 48px; height: 48px; }
}

.pix-page, .thanks-card { max-width: 560px; margin: 0 auto; }
.pix-card, .thanks-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 22px 24px;
  text-align: center;
}
.pix-brand { width: 56px; height: 56px; margin: 0 auto 12px; object-fit: contain; }
.pix-card h1, .thanks-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.pix-qr {
  width: 240px;
  height: 240px;
  margin: 18px auto;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.pix-qr img { width: 100%; height: 100%; object-fit: contain; }
.pix-status {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 16px;
}
.copy-label {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.copy-row { text-align: left; }
.copy-row textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.4;
  resize: none;
  word-break: break-all;
  margin-bottom: 10px;
  font-family: inherit;
}
.copy-row .cta { width: 100%; }
.pix-steps {
  text-align: left;
  margin: 22px 0 8px;
  padding-left: 18px;
  color: #444;
  font-size: 14px;
}
.pix-steps li { margin-bottom: 8px; }
.pix-paid { width: 100%; margin-top: 16px; }
.thanks-lead { color: #444; font-size: 15px; line-height: 1.6; margin: 8px 0 18px; }
.thanks-list { text-align: left; color: #444; font-size: 14px; line-height: 1.7; margin: 0 0 24px 18px; }
.thanks-card .cta { width: auto; display: inline-flex; align-items: center; justify-content: center; padding: 0 28px; margin: 0 auto; }

@media (max-width: 900px) {
  .pix-card, .thanks-card { padding: 22px 16px; }
  .pix-qr { width: min(240px, 70vw); height: min(240px, 70vw); }
  .thanks-card .cta { width: 100%; }
}
