/* AirWave Checkout — tokens alinhados à marca */
:root {
  --aw-navy: #01286f;
  --aw-navy-deep: #082e73;
  --aw-cyan: #037db1;
  --aw-cyan-bright: #00b3ff;
  --aw-yellow: #fdcb00;
  --aw-green: #01bf63;
  --aw-red: #d30909;
  --aw-text: #1e2a3a;
  --aw-muted: #6b7785;
  --aw-line: #e4e9ef;
  --aw-bg: #f3f7fb;
  --aw-white: #ffffff;
  --aw-radius: 12px;
  --aw-shadow: 0 12px 40px rgba(1, 40, 111, 0.08);
  --font: "Poppins", system-ui, sans-serif;
  --display: "Anton", "Poppins", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--aw-text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(3, 125, 177, 0.18), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(253, 203, 0, 0.16), transparent 55%),
    linear-gradient(180deg, #eaf3fa 0%, var(--aw-bg) 40%, #eef2f6 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(90deg, var(--aw-navy) 0%, var(--aw-navy-deep) 55%, #045a8a 100%);
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  color: #fff;
}

.ck-brand img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.ck-secure {
  color: #fff !important;
}

.ck-secure {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--aw-navy);
}

.ck-main {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 24px) 48px;
}

.ck-layout {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .ck-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    align-items: start;
  }

  .ck-summary {
    position: sticky;
    top: 88px;
  }
}

.ck-primary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ck-section,
.ck-summary,
.ck-pix-card,
.ck-success-card {
  background: var(--aw-white);
  border-radius: var(--aw-radius);
  box-shadow: var(--aw-shadow);
  border: 1px solid rgba(1, 40, 111, 0.05);
  padding: clamp(18px, 3vw, 28px);
}

.ck-section h2,
.ck-pix-card h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  letter-spacing: 0.02em;
  font-weight: 400;
  color: var(--aw-navy);
  text-transform: uppercase;
}

.ck-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.ck-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--aw-navy);
}

.ck-field--full {
  grid-column: 1 / -1;
}

.ck-field--grow {
  grid-column: span 1;
}

.ck-field--sm {
  max-width: 100%;
}

.ck-field small {
  font-weight: 400;
  color: var(--aw-muted);
}

.ck-field input,
.ck-field select,
.ck-field textarea,
.ck-qty select {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--aw-line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 400;
  color: var(--aw-text);
  background: #fbfdff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ck-field textarea {
  min-height: 88px;
  resize: vertical;
  font-size: 0.8125rem;
  word-break: break-all;
}

.ck-field input:focus,
.ck-field select:focus,
.ck-field textarea:focus,
.ck-qty select:focus {
  outline: none;
  border-color: var(--aw-cyan);
  box-shadow: 0 0 0 3px rgba(3, 125, 177, 0.18);
}

.ck-field input[aria-invalid="true"],
.ck-field select[aria-invalid="true"] {
  border-color: var(--aw-red);
}

.ck-field-error {
  min-height: 1.1em;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 500;
  color: var(--aw-red);
}

.ck-pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.ck-pay-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1.5px solid var(--aw-line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ck-pay-option:has(input:checked) {
  border-color: var(--aw-cyan);
  background: rgba(3, 125, 177, 0.06);
}

.ck-pay-option input {
  margin-top: 3px;
  accent-color: var(--aw-navy);
}

.ck-pay-option strong {
  display: block;
  color: var(--aw-navy);
  font-size: 0.9375rem;
}

.ck-pay-option small {
  color: var(--aw-muted);
  font-size: 0.75rem;
}

.ck-shipping-hint {
  margin: 0 0 12px;
  color: var(--ck-muted, #6b7785);
  font-size: 0.9rem;
}

.ck-shipping.is-locked {
  opacity: 0.95;
}

.ck-shipping {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.ck-shipping legend {
  padding: 0;
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--aw-navy);
  font-size: 0.95rem;
}

.ck-shipping .ck-pay-methods {
  grid-template-columns: 1fr;
}

.ck-shipping .ck-pay-option {
  align-items: center;
}

.ck-shipping .ck-pay-option span {
  flex: 1;
  min-width: 0;
}

.ck-ship-price {
  font-style: normal;
  font-weight: 700;
  color: var(--aw-navy);
  white-space: nowrap;
  font-size: 0.95rem;
}

#ck-shipping {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

#ck-shipping-label {
  font-weight: 600;
  color: var(--aw-ink, #0f172a);
}

#ck-shipping-eta {
  display: block;
  color: var(--aw-muted);
  font-size: 0.75rem;
}

#ck-shipping-price {
  color: var(--aw-navy);
}

.ck-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ck-card-row input {
  flex: 1;
}

.ck-card-brand {
  min-width: 52px;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--aw-cyan);
  text-transform: uppercase;
}

.ck-hint {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--aw-muted);
  line-height: 1.4;
}

.ck-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  min-height: 52px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.ck-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.ck-btn--primary {
  background: linear-gradient(135deg, var(--aw-navy) 0%, var(--aw-cyan) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(1, 40, 111, 0.22);
}

.ck-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.ck-btn--ghost {
  background: transparent;
  color: var(--aw-navy);
  border: 1.5px solid var(--aw-line);
}

.ck-btn--block {
  width: 100%;
}

.ck-summary-toggle {
  display: none;
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 0 12px;
  margin: 0 0 4px;
  font: inherit;
  font-weight: 600;
  color: var(--aw-navy);
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.ck-summary-product {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.ck-summary-product img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #eef5fa;
}

.ck-summary-product h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--aw-navy);
}

.ck-summary-product p {
  margin: 0;
  font-size: 0.875rem;
}

.ck-muted {
  color: var(--aw-muted);
}

.ck-variant-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ck-chip {
  appearance: none;
  border: 1.5px solid var(--aw-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--aw-navy);
  cursor: pointer;
}

.ck-chip.is-active {
  border-color: var(--aw-navy);
  background: var(--aw-navy);
  color: #fff;
}

.ck-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--aw-navy);
}

.ck-qty select,
.ck-qty-select {
  width: 88px;
  min-height: 44px;
}

.ck-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--aw-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.ck-qty-btn {
  appearance: none;
  border: 0;
  background: #f5f8fb;
  color: var(--aw-navy);
  width: 48px;
  min-height: 48px;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ck-qty-btn:hover:not(:disabled) {
  background: rgba(3, 125, 177, 0.12);
  color: var(--aw-cyan);
}

.ck-qty-btn:active:not(:disabled) {
  background: rgba(3, 125, 177, 0.2);
}

.ck-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ck-qty-value {
  min-width: 44px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--aw-navy);
  font-variant-numeric: tabular-nums;
}

.ck-totals {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--aw-line);
}

.ck-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9375rem;
}

.ck-totals dt {
  margin: 0;
  color: var(--aw-muted);
  font-weight: 400;
}

.ck-totals dd {
  margin: 0;
  font-weight: 600;
  color: var(--aw-navy);
}

.ck-totals-total {
  border-top: 1px solid var(--aw-line);
  margin-top: 4px;
  padding-top: 12px !important;
  font-size: 1.125rem !important;
}

.ck-totals-total dd {
  color: var(--aw-cyan);
  font-size: 1.25rem;
}

.ck-discount-row dt {
  color: var(--aw-green) !important;
}

.ck-discount-row dd {
  color: var(--aw-green) !important;
  font-weight: 700;
}

.ck-promo {
  display: grid;
  gap: 2px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(1, 191, 99, 0.12), rgba(3, 125, 177, 0.1));
  border: 1px solid rgba(1, 191, 99, 0.28);
  color: var(--aw-navy);
  font-size: 0.8125rem;
}

.ck-promo strong {
  color: #0a7a45;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.ck-promo--bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(191, 64, 1, 0.12), rgba(3, 125, 177, 0.08));
  border-color: rgba(191, 80, 1, 0.35);
  padding: 12px;
}

.ck-promo-bulk-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.ck-promo--bulk strong {
  color: #b34700;
  font-size: 0.9rem;
  line-height: 1.25;
}

.ck-promo--bulk.is-active {
  background: linear-gradient(135deg, rgba(1, 191, 99, 0.18), rgba(1, 140, 70, 0.1));
  border-color: rgba(1, 160, 80, 0.45);
}

.ck-promo--bulk.is-active strong {
  color: #0a7a45;
}

.ck-promo span,
.ck-promo-bulk-copy span {
  font-size: 0.75rem;
  line-height: 1.35;
  opacity: 0.92;
}

.ck-btn--add {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--aw-navy) 0%, var(--aw-cyan) 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(1, 40, 111, 0.28);
  border: 1.5px solid rgba(1, 40, 111, 0.2);
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.ck-btn--add:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ck-btn--add:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.ck-btn--add:active:not(:disabled) {
  transform: translateY(0);
}

.ck-btn-add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 700;
}

.ck-promo--bulk.is-active .ck-btn--add {
  background: linear-gradient(135deg, var(--aw-navy) 0%, var(--aw-cyan) 100%);
  box-shadow: 0 8px 20px rgba(1, 40, 111, 0.28);
}

.ck-promo--bulk.is-active .ck-btn--add:disabled {
  opacity: 0.55;
  background: linear-gradient(135deg, var(--aw-navy) 0%, var(--aw-cyan) 100%);
}

@media (max-width: 899px) {
  .ck-promo--bulk {
    align-items: stretch;
    gap: 10px;
  }

  .ck-btn--add {
    min-height: 52px;
    padding-inline: 16px;
    font-size: 0.9375rem;
  }
}

@media (max-width: 420px) {
  .ck-promo--bulk {
    flex-direction: column;
  }

  .ck-btn--add {
    width: 100%;
  }
}

.ck-cep-status {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--aw-cyan);
}

.ck-cep-status.is-error {
  color: var(--aw-red);
}

.ck-installment-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--aw-muted);
  line-height: 1.35;
}

.ck-installment-hint.has-interest {
  color: var(--aw-navy);
}

.ck-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--aw-muted);
}

.ck-trust li::before {
  content: "✓ ";
  color: var(--aw-green);
  font-weight: 700;
}

.ck-alert {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
}

.ck-alert--error {
  background: #fdeeee;
  color: #8f1212;
  border: 1px solid #f5c2c2;
}

.ck-alert--ok {
  background: #e8faf1;
  color: #0b6b3a;
  border: 1px solid #b6e6cb;
}

.ck-state {
  padding: 48px 16px;
}

.ck-state--center {
  display: grid;
  place-items: center;
  gap: 16px;
  text-align: center;
}

.ck-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(1, 40, 111, 0.15);
  border-top-color: var(--aw-cyan);
  border-radius: 50%;
  animation: ck-spin 0.7s linear infinite;
}

.ck-spinner--sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

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

.ck-pix {
  max-width: 480px;
  margin: 0 auto;
}

.ck-qr-wrap {
  display: grid;
  place-items: center;
  padding: 16px;
  margin: 8px 0 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed rgba(3, 125, 177, 0.35);
}

.ck-qr-img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: #fff;
}

.ck-pix-amount {
  text-align: center;
  font-size: 1.05rem;
}

.ck-pix-timer {
  text-align: center;
  color: var(--aw-muted);
  font-size: 0.875rem;
}

.ck-waiting {
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--aw-line);
}

.ck-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 24, 52, 0.55);
  display: none;
  place-items: center;
  z-index: 100;
  padding: 24px;
}

.ck-overlay:not([hidden]) {
  display: grid;
}

[hidden] {
  display: none !important;
}

.ck-overlay-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 32px;
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  max-width: 320px;
  box-shadow: var(--aw-shadow);
  color: var(--aw-navy);
  font-weight: 500;
}

.ck-footer {
  text-align: center;
  padding: 24px 16px 40px;
  color: var(--aw-muted);
  font-size: 0.75rem;
}

.ck-success {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.ck-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aw-green), #34d399);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  animation: ck-pop 0.45s ease;
}

@keyframes ck-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.ck-success-card h1 {
  margin: 0 0 8px;
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--aw-navy);
  text-transform: uppercase;
}

.ck-success-card > .ck-muted,
.ck-order-id {
  text-align: center;
}

.ck-order-id {
  margin: 16px 0 24px;
  font-size: 0.9375rem;
}

.ck-success-summary {
  margin-bottom: 20px;
  padding-top: 8px;
}

.ck-success .ck-btn + .ck-btn {
  margin-top: 10px;
}

@media (max-width: 899px) {
  .ck-layout {
    display: flex;
    flex-direction: column;
  }

  .ck-summary {
    order: -1;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .ck-summary-toggle {
    display: flex;
  }

  .ck-summary.is-collapsed .ck-summary-body {
    display: none;
  }

  .ck-grid {
    grid-template-columns: 1fr;
  }

  .ck-pay-methods {
    grid-template-columns: 1fr;
  }

  .ck-field--grow,
  .ck-field--sm {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .ck-header {
    padding-inline: 12px;
  }

  .ck-brand img {
    height: 30px;
  }
}

/* —— Motion —— */
@keyframes ck-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ck-scale-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes ck-pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(3, 125, 177, 0.25); }
  50% { box-shadow: 0 0 0 10px rgba(3, 125, 177, 0); }
}
@keyframes ck-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.ck-form .ck-section {
  animation: ck-fade-up 0.45s ease both;
}
.ck-form .ck-section:nth-of-type(1) { animation-delay: 0.05s; }
.ck-form .ck-section:nth-of-type(2) { animation-delay: 0.12s; }
.ck-form .ck-section:nth-of-type(3) { animation-delay: 0.18s; }
.ck-form .ck-section:nth-of-type(4) { animation-delay: 0.24s; }

.ck-summary {
  animation: ck-fade-up 0.5s ease 0.1s both;
}

.ck-pay-option,
.ck-shipping .ck-pay-option {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.ck-pay-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(1, 40, 111, 0.08);
}
.ck-pay-option:has(input:checked) {
  animation: ck-pulse-soft 1.6s ease 1;
}

.ck-btn--primary {
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
}
.ck-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 24px rgba(1, 40, 111, 0.22);
}
.ck-btn--primary:active:not(:disabled) {
  transform: translateY(0);
}

.ck-pix-card {
  animation: ck-scale-in 0.4s ease both;
}
.ck-qr-wrap {
  animation: ck-scale-in 0.45s ease 0.12s both;
}
.ck-qr-img {
  transition: transform 0.25s ease;
}
.ck-qr-wrap:hover .ck-qr-img {
  transform: scale(1.03);
}

.ck-overlay-card {
  animation: ck-scale-in 0.28s ease both;
}

.ck-field input:focus,
.ck-field select:focus,
.ck-field textarea:focus {
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 3px rgba(3, 125, 177, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .ck-form .ck-section,
  .ck-summary,
  .ck-pix-card,
  .ck-qr-wrap,
  .ck-overlay-card,
  .ck-pay-option:has(input:checked) {
    animation: none !important;
  }
  .ck-pay-option,
  .ck-btn--primary {
    transition: none !important;
  }
}
