:root {
  --navy: #1c2059;
  --teal: #24a999;
  --bg: #e6e9ec;
  --card: #ffffff;
  --muted: #667085;
  --line: #d9dee7;
  --danger: #d53a3a;
  --orange: #ff9e00;
}

* { box-sizing: border-box; }

.hidden { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 13px;
}

a { color: inherit; text-decoration: none; }

.ck-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.ck-header__inner,
.ck-wrap,
.ck-footer__inner,
.ck-steps-bar .ck-steps {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
}

.ck-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  gap: 12px;
}

.ck-logo {
  height: 26px;
  width: auto;
  display: block;
}

.ck-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
}

.ck-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.8fr);
  gap: 16px;
  padding: 16px 0 40px;
}

.ck-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.ck-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--teal);
}

.ck-kicker--section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--navy);
}

.ck-kicker--section span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
}

.ck-title {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.2;
}

.ck-title--sm {
  font-size: 15px;
  margin-bottom: 12px;
}

.ck-steps-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.ck-steps {
  display: flex;
  gap: 8px;
}

.ck-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.ck-step span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef1f4;
  color: var(--muted);
  font-size: 10px;
}

.ck-step.is-active,
.ck-step.is-done { color: var(--navy); }

.ck-step.is-active span,
.ck-step.is-done span {
  background: var(--teal);
  color: #fff;
}

.ck-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
}

.ck-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ck-field--full { grid-column: 1 / -1; }

.ck-field label {
  font-size: 12px;
  font-weight: 600;
}

.ck-field input,
.ck-field select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  color: var(--navy);
  background: #fff;
  outline: none;
}

.ck-field input:focus,
.ck-field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(36, 169, 153, .12);
}

.ck-field input.is-error { border-color: var(--danger); }

.ck-help--form {
  display: block;
  margin-top: 8px;
  text-align: center;
  color: #b42318;
}

.ck-paid {
  margin: 8px 0 0;
  padding: 16px 14px;
  border: 1px solid #b7eadf;
  background: #f3fbf9;
  border-radius: 10px;
  color: var(--navy);
}

.ck-paid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 16px;
}

.ck-paid p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.ck-pay.is-paid .ck-title {
  margin-bottom: 8px;
}

.ck-help {
  min-height: 0;
  font-size: 11px;
  color: var(--danger);
}

.ck-cep-status {
  font-size: 11px;
  color: var(--teal);
  font-weight: 600;
}

.ck-shipping {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.ck-shipping__title {
  margin: 4px 0 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

.ck-ship {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.ck-ship.is-active {
  border-color: var(--teal);
  background: #f7fdfb;
}

.ck-ship input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ck-ship .ck-method__radio:after {
  display: none;
}

.ck-ship.is-active .ck-method__radio:after {
  display: block;
}

.ck-ship b {
  margin-left: auto;
  font-size: 13px;
  color: var(--navy);
  white-space: nowrap;
}

.ck-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ck-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--teal);
  border-radius: 10px;
  background: linear-gradient(180deg, #f7fdfb 0%, #eefaf7 100%);
  cursor: pointer;
}

.ck-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ck-method__radio {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  position: relative;
}

.ck-method__radio:after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--teal);
}

.ck-method__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #cdece7;
  display: grid;
  place-items: center;
}

.ck-method__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.ck-method__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.ck-method__info strong {
  font-size: 13px;
  color: var(--navy);
}

.ck-method__info small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.ck-btn {
  width: 100%;
  height: 42px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.ck-btn:hover { filter: brightness(1.05); }
.ck-btn:disabled { opacity: .65; cursor: wait; }

.ck-back {
  display: inline-flex;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.ck-summary { height: fit-content; position: sticky; top: 12px; }

.ck-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.ck-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  background: #f4f6f8;
}

.ck-item h3 {
  margin: 0 0 2px;
  font-size: 12px;
}

.ck-item p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.ck-item b { font-size: 12px; }

.ck-totals {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.ck-totals div {
  display: flex;
  justify-content: space-between;
}

.ck-totals .ck-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
}

.ck-totals .ck-total b { color: var(--teal); }

.ck-trust {
  margin-top: 12px;
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.ck-pix { text-align: center; }

.ck-pix__code {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}

.ck-qr {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ck-qr img,
.ck-qr canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ck-amount {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
}

.ck-timer {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}

.ck-copy {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.ck-copy input {
  flex: 1;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  font-size: 11px;
  color: var(--navy);
}

.ck-copy button {
  height: 36px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ck-instructions {
  text-align: left;
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ck-footer {
  border-top: 1px solid var(--line);
  padding: 14px 0 20px;
  color: var(--muted);
  font-size: 11px;
}

.ck-pay-wrap {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  gap: 16px;
  padding: 16px 0 40px;
}

.ck-pay {
  text-align: center;
}

.ck-copy-label {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  margin: 4px 0 6px;
}

.ck-copy--stack {
  flex-direction: column;
}

.ck-copy--stack textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--navy);
  resize: none;
  word-break: break-all;
}

.ck-copy--stack button {
  width: 100%;
}

.ck-qr {
  width: 236px;
  height: 236px;
}

@media (max-width: 860px) {
  .ck-pay-wrap {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }
}

@media (max-width: 860px) {
  .ck-wrap {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }
  .ck-summary { position: static; }
  .ck-grid { grid-template-columns: 1fr; }
  .ck-steps {
    justify-content: space-between;
    gap: 0;
  }
  .ck-step {
    flex: 1;
    justify-content: center;
  }
}
