/* RocxPay Checkout — clean white */

:root {
  --ck-bg: #f7f8fa;
  --ck-surface: #ffffff;
  --ck-text: #0a0a0a;
  --ck-muted: #667085;
  --ck-border: #e6e8ec;
  --ck-border-strong: #d0d5dd;
  --ck-accent: #111111;
  --ck-accent-hover: #000000;
  --ck-focus: #111111;
  --ck-danger: #b42318;
  --ck-danger-bg: #fef3f2;
  --ck-ok: #027a48;
  --ck-ok-bg: #ecfdf3;
  --ck-pix: #32bcad;
  --ck-radius: 12px;
  --ck-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
}

* { box-sizing: border-box; }

body.checkout-page {
  margin: 0;
  min-height: 100vh;
  background: var(--ck-bg);
  color: var(--ck-text);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.checkout-page.has-bg {
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.ck-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, var(--ck-bg-overlay, 0.45));
}

body.checkout-page.has-bg .ck-wrap,
body.checkout-page.has-bg .ck-success-wrap {
  position: relative;
  z-index: 1;
}

body.checkout-page.has-bg .ck-brand span,
body.checkout-page.has-bg .ck-secure {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

body.checkout-page.has-bg .ck-secure {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  backdrop-filter: blur(6px);
}

body.checkout-page.has-bg .ck-panel,
body.checkout-page.has-bg .ck-success {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}

.ck-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.ck-banner {
  width: 100%;
  margin: 0 0 20px;
  line-height: 0;
}

.ck-banner-inner {
  display: block;
  width: 100%;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid var(--ck-border);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.ck-banner img {
  display: block;
  width: 100%;
  height: 64px;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 640px) {
  .ck-banner { margin-bottom: 14px; }
  .ck-banner-inner,
  .ck-banner img {
    height: 48px;
    border-radius: 8px;
  }
}

.ck-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ck-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.ck-logo {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: none !important;
  box-shadow: none;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  flex-shrink: 0;
}

.ck-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.ck-brand span {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 15px;
}

.ck-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ck-muted);
}

.ck-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .ck-grid { grid-template-columns: 1fr; }
}

.ck-panel {
  background: var(--ck-surface);
  border: 1px solid var(--ck-border);
  border-radius: 16px;
  box-shadow: var(--ck-shadow);
}

.ck-summary {
  padding: 28px;
}

.ck-summary-title {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ck-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ck-product {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ck-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #f2f4f7;
  border: 1px solid var(--ck-border);
  flex-shrink: 0;
}

.ck-thumb-ph {
  display: grid;
  place-items: center;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 600;
}

.ck-product h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.ck-product p {
  margin: 6px 0 0;
  color: var(--ck-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ck-divider {
  height: 1px;
  background: var(--ck-border);
  margin: 22px 0;
}

.ck-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 10px;
}

.ck-row span:last-child { font-weight: 600; }
.ck-row.muted span { color: var(--ck-muted); font-weight: 500; }

.ck-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
}

.ck-total strong {
  font-size: 28px;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.ck-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.ck-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--ck-muted);
  border: 1px solid var(--ck-border);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fafafa;
}

.ck-form {
  padding: 28px;
}

.ck-form h2 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.ck-form .ck-sub {
  margin: 0 0 22px;
  color: var(--ck-muted);
  font-size: 13px;
}

.ck-section {
  margin-bottom: 22px;
}

.ck-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ck-muted);
  margin-bottom: 12px;
}

.ck-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ck-fields .full { grid-column: 1 / -1; }

@media (max-width: 560px) {
  .ck-fields { grid-template-columns: 1fr; }
  .ck-fields .full { grid-column: auto; }
}

.ck-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #344054;
  margin-bottom: 6px;
}

.ck-input,
.ck-select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--ck-border-strong);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ck-text);
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ck-input:focus,
.ck-select:focus {
  border-color: var(--ck-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ck-accent) 18%, transparent);
}

.ck-input::placeholder { color: #98a2b3; }

.ck-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ck-method {
  position: relative;
}

.ck-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ck-method label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 76px;
  padding: 14px;
  border: 1.5px solid var(--ck-border-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  background: #fff;
}

.ck-method input:checked + label {
  border-color: var(--ck-accent);
  background: #fafafa;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ck-accent) 14%, transparent);
}

.ck-method-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ck-method-desc {
  font-size: 12px;
  color: var(--ck-muted);
}

.ck-pay-panel { display: none; margin-top: 14px; }
.ck-pay-panel.active { display: block; }

/* —— Simulador de cartão —— */
.ck-card-sim {
  margin: 4px 0 2px;
  perspective: 900px;
}

.ck-card-sim-stage {
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 1.586 / 1;
}

.ck-card-sim-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.ck-card-sim.is-flipped .ck-card-sim-inner {
  transform: rotateY(180deg);
}

.ck-card-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 18px 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: #fff;
  overflow: hidden;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, .18),
    0 1px 0 rgba(255, 255, 255, .12) inset;
}

.ck-card-front {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,.14) 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(0,0,0,.35) 0%, transparent 50%),
    linear-gradient(145deg, #1a1f2c 0%, #0f131a 55%, #1c2433 100%);
  background-color: var(--ck-accent);
}

.ck-card-front::before {
  content: '';
  position: absolute;
  inset: -40% 40% auto -20%;
  height: 120%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.08), transparent);
  transform: rotate(18deg);
  pointer-events: none;
}

.ck-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #151a24 0%, #0c1018 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 22px;
}

.ck-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.ck-card-chip {
  width: 38px;
  height: 28px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, #e8d5a3 0%, #c9a84c 45%, #f0e0b0 70%, #b8923a 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
  position: relative;
}

.ck-card-chip::after {
  content: '';
  position: absolute;
  inset: 5px 4px;
  border: 1px solid rgba(120, 80, 20, .35);
  border-radius: 3px;
  background:
    linear-gradient(#0000 45%, rgba(120,80,20,.25) 45% 55%, #0000 55%),
    linear-gradient(90deg, #0000 45%, rgba(120,80,20,.25) 45% 55%, #0000 55%);
}

.ck-card-brand {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .92;
  transition: opacity .2s ease, transform .2s ease;
}

.ck-card-number {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, monospace;
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 600;
  letter-spacing: .14em;
  margin: 8px 0 22px;
  min-height: 1.4em;
  position: relative;
  z-index: 1;
  word-spacing: .12em;
  transition: color .15s ease;
}

.ck-card-number.is-active,
.ck-card-holder.is-active,
.ck-card-exp.is-active,
.ck-card-cvv.is-active {
  color: #fff;
  text-shadow: 0 0 18px rgba(255,255,255,.35);
}

.ck-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.ck-card-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 3px;
}

.ck-card-holder,
.ck-card-exp {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ck-card-holder { max-width: 12rem; }

.ck-card-stripe {
  height: 42px;
  margin: 0 -20px 18px;
  background: linear-gradient(180deg, #1a1a1a, #2a2a2a 40%, #111);
}

.ck-card-cvv-wrap {
  align-self: flex-end;
  margin-right: 8px;
  background: #f4f6f8;
  color: #0f172a;
  border-radius: 6px;
  padding: 8px 12px;
  min-width: 72px;
  text-align: right;
}

.ck-card-cvv-wrap .ck-card-label {
  color: #64748b;
  opacity: 1;
  text-align: left;
}

.ck-card-cvv {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2em;
}

.ck-card-sim.is-entering .ck-card-sim-stage {
  animation: ckCardIn .45s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes ckCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ck-card-sim-inner { transition: none; }
  .ck-card-sim.is-entering .ck-card-sim-stage { animation: none; }
}

.ck-card-row {
  display: grid;
  grid-template-columns: 1.4fr .8fr .7fr;
  gap: 10px;
}

@media (max-width: 560px) {
  .ck-card-row { grid-template-columns: 1fr; }
  .ck-card-sim-stage { max-width: 100%; }
}

.ck-brands {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  color: var(--ck-muted);
  font-size: 11px;
  font-weight: 600;
}

.ck-brands span {
  border: 1px solid var(--ck-border);
  border-radius: 6px;
  padding: 4px 7px;
  background: #fff;
}

.ck-error {
  background: var(--ck-danger-bg);
  color: var(--ck-danger);
  border: 1px solid #fecdca;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.ck-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--ck-accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}

.ck-submit:hover { background: var(--ck-accent-hover); }
.ck-submit:active { transform: scale(.99); }
.ck-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.ck-footnote {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--ck-muted);
  line-height: 1.5;
}

.ck-powered {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #98a2b3;
}

.ck-powered strong { color: #667085; font-weight: 700; }

/* Success */
.ck-success-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--ck-bg);
}

.ck-success {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--ck-border);
  border-radius: 16px;
  box-shadow: var(--ck-shadow);
  padding: 28px;
  text-align: center;
}

.ck-success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--ck-ok-bg);
  color: var(--ck-ok);
}

.ck-success h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.ck-success p {
  margin: 8px 0 0;
  color: var(--ck-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ck-pix-box {
  margin-top: 20px;
  padding: 16px;
  border: 1px dashed var(--ck-border-strong);
  border-radius: 12px;
  background: #fafafa;
}

.ck-pix-box img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.ck-copy {
  margin-top: 12px;
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--ck-border-strong);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.ck-code {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ck-muted);
  word-break: break-all;
}

/* Order bumps */
.ck-bumps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ck-bump {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ck-bump:hover { border-color: var(--ck-border-strong); }

.ck-bump:has(input:checked) {
  border-color: var(--ck-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ck-accent) 14%, transparent);
}

.ck-bump input {
  margin-top: 3px;
  accent-color: var(--ck-accent);
}

.ck-bump-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ck-bump-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ck-text);
}

.ck-bump-desc {
  font-size: 12px;
  color: var(--ck-muted);
  line-height: 1.4;
}

.ck-bump-price {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ck-text);
}

.ck-delivery-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.ck-delivery-item {
  padding: 14px;
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);
  background: #fff;
  text-align: left;
}

.ck-delivery-item h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.ck-delivery-item p {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--ck-muted);
}

