/* =========================================================================
   Checkout — 500 Receitas Anti-inflamatórias
   Paleta esmeralda + creme (alinhada à página de vendas).
   Títulos em serif (Lora), corpo em Inter. Público 40-65+.
   ========================================================================= */
:root {
  --green: #1f7355;
  --green-dark: #155c43;
  --green-deep: #0f4331;
  --green-bright: #35b06a;
  --green-soft: #e9f3ed;
  --gold: #c2872a;
  --gold-soft: #f7edd6;
  --ink: #23291f;
  --muted: #6f7568;
  --line: #e6e4d9;
  --cream: #f4f0e6;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 2px 6px rgba(20, 40, 30, 0.05), 0 12px 28px rgba(20, 40, 30, 0.08);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  font-size: 16.5px;
  line-height: 1.5;
  background: var(--cream);
  background-image: radial-gradient(1100px 420px at 50% -12%, #e4efe8, transparent 70%);
}

/* ---- Barra superior (urgência + exclusividade PT) ---- */
.offer-bar {
  background: linear-gradient(90deg, #c0392b, #a5281b);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
}
.offer-bar[hidden] { display: none; }

.urgency-bar {
  background: var(--green-deep);
  color: #f1ecdd;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.ub-timer strong {
  color: #ffe9a8;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-left: 2px;
}
.ub-flag {
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

/* ---- Layout ---- */
.page {
  max-width: 540px;
  margin: 0 auto;
  padding: 16px 14px 48px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
}

.section-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.section-sub { margin: -8px 0 16px; color: var(--muted); font-size: 14.5px; }

/* ============================ OFERTA (compacto) ============================ */
.offer-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.hero-thumb {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border-radius: 15px;
  background: linear-gradient(160deg, #e7f4ec, #d3ecdd);
  display: grid;
  place-items: center;
  font-size: 34px;
  box-shadow: inset 0 0 0 1px rgba(31, 115, 85, 0.14);
  overflow: hidden;
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.offer-headinfo { min-width: 0; }
.offer-headinfo h1 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  line-height: 1.2;
}
.social-proof {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.stars { color: #e5a832; letter-spacing: 1px; font-size: 14px; }

/* ---- Preço ---- */
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price-left { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 17px; font-weight: 600; }
.price-old:empty { display: none; }
.discount-badge {
  background: var(--gold);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.discount-badge:empty { display: none; }
.price-big { font-size: 42px; font-weight: 900; color: var(--green-dark); line-height: 1; }
.price-note {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
}

/* ---- Cupão aplicado ---- */
.coupon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1.5px dashed var(--green);
  background: var(--green-soft);
  border-radius: 12px;
  font-size: 14px;
}
.coupon-tag { flex: 1; }
.coupon-tag strong {
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--green-deep);
  background: #fff;
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px solid #bfe0cd;
}
.coupon-applied { color: var(--green-dark); font-weight: 800; }

/* ============================ FORMULÁRIO ============================ */
.field { display: block; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field > span { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 7px; }
.field input {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--line);
  border-radius: 13px;
  font-size: 16.5px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 115, 85, 0.14);
}
.field input.invalid { border-color: #cc3d3d; box-shadow: 0 0 0 4px rgba(204, 61, 61, 0.12); }
.hint { display: block; margin-top: 7px; font-size: 13px; color: var(--muted); }
.phone-group { display: flex; gap: 8px; }
.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: #f7f8f4;
  font-size: 15.5px;
  font-weight: 800;
  white-space: nowrap;
}
.phone-group input { flex: 1; }
.phone-cc {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  color: inherit;
  padding-right: 30px;
  background-color: #f7f8f4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

/* ============================ ORDERBUMPS ============================ */
.bump {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 11px;
  border: 2px dashed #d98c8c;
  border-radius: 14px;
  margin-bottom: 9px;
  cursor: pointer;
  background: #fffbe8;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.bump:last-child { margin-bottom: 0; }
.bump.selected {
  border-style: solid;
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(31, 115, 85, 0.12);
}

/* Topo: seta + checkbox + título */
.bump-top { display: flex; align-items: center; gap: 10px; }
.bump-arrow {
  font-size: 20px;
  animation: nudge 1s ease-in-out infinite;
  flex: 0 0 auto;
}
.bump.selected .bump-arrow { display: none; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.bump-check {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  accent-color: var(--green);
  cursor: pointer;
}
.bump-titlewrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bump-badge {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 2px 8px;
  border-radius: 6px;
}
.bump.selected .bump-badge { color: var(--green-dark); background: #d7ecdf; }
.bump-name { font-weight: 800; font-size: 14.5px; line-height: 1.22; }

/* Corpo: imagem + descrição/preço (miniatura compacta para cards mais baixos) */
.bump-body { display: flex; gap: 11px; align-items: flex-start; }
.bump-thumb {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 30px;
  overflow: hidden;
}
.bump-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bump-content { flex: 1; min-width: 0; }
.bump-desc { display: block; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.bump-price { display: block; margin-top: 5px; font-size: 14.5px; }
.bump-price .old { text-decoration: line-through; color: var(--muted); margin-right: 6px; }
.bump-price .new { color: var(--green-dark); font-weight: 900; }
.bump-price .today {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  margin-left: 4px;
}
.bump-off {
  display: inline-block;
  margin-left: 7px;
  font-size: 11px;
  font-weight: 900;
  color: #c0392b;
  background: #fdecec;
  padding: 1px 7px;
  border-radius: 6px;
  vertical-align: middle;
}
.bump-urgency {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 800;
  color: #c2410c;
}

/* Banner "último dia com desconto" (data dinâmica) */
.lastday {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecec;
  border: 1px solid #f3cdb6;
  color: #b3341a;
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.35;
  text-align: center;
}
.lastday[hidden] { display: none; }

/* ============================ DEPOIMENTOS (carrossel) ============================ */
.testi-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi {
  flex: 0 0 calc(50% - 6px); /* 2 fotos por vez */
  margin: 0; /* <figure> tem margem lateral por defeito — remover */
  border-radius: 14px;
  overflow: hidden;
  background: var(--green-soft);
  border: 1px solid var(--line);
}
.testi img { width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
.testi-cap { padding: 10px 12px; }
.testi-cap .q { font-family: var(--serif); font-style: italic; font-size: 14px; color: #2f3a30; }
.testi-cap .n { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 800; color: var(--green-dark); }
.testi-hint { text-align: center; margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

/* ============================ PAGAMENTO ============================ */
.mbway-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green-soft);
  border: 2px solid #bfe0cd;
  border-radius: 13px;
  padding: 13px 15px;
  margin-bottom: 15px;
}
.mbway-ico { font-size: 24px; }
.mbway-highlight strong { display: block; color: var(--green-deep); font-size: 15.5px; }
.mbway-highlight span { font-size: 13.5px; color: #40624f; }
#payment-element { min-height: 40px; transition: opacity 0.15s; }
#payment-element.dimmed { opacity: 0.5; }

/* Opção Multibanco própria — linha limpa, igual às da Stripe */
.pay-alt {
  width: 100%;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s;
}
.pay-alt:hover { border-color: #cfd3cf; }
.pay-alt.selected { border-color: var(--green); }
.pay-alt-radio {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  border: 1px solid #b9bdb7;
}
.pay-alt.selected .pay-alt-radio {
  border-color: var(--green);
  background: radial-gradient(circle, var(--green) 40%, #fff 44%);
}
.pay-alt-mb {
  flex: 0 0 auto;
  width: 26px;
  height: 20px;
  border-radius: 4px;
  background: #0a2a5e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
}
.pay-alt-label { font-size: 15px; font-weight: 500; }
.payment-message {
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: 13px;
  font-size: 14.5px;
  background: #fbeaea;
  color: #97231f;
  border: 1px solid #f0c4c1;
}
.payment-message.info { background: #eef4ff; color: #1e40af; border-color: #c7d7fb; }
.payment-message.success { background: var(--green-soft); color: var(--green-deep); border-color: #bfe0cd; }

/* ============================ RESUMO + ESCASSEZ + CTA ============================ */
.order-summary { margin-bottom: 2px; }
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.summary-line .label { color: #454b40; }
.summary-line .value { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary-line.discount .label,
.summary-line.discount .value { color: var(--green-dark); font-weight: 800; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0 4px;
  font-weight: 900;
  font-size: 16.5px;
}
.summary-total span:last-child { font-size: 25px; color: var(--green-dark); font-variant-numeric: tabular-nums; }

.scarcity { margin: 16px 0 4px; }
.scarcity-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 8px;
}
.scarcity-top strong { color: #b5451e; font-weight: 900; }
.scarcity-pct { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.scarcity-track { height: 11px; border-radius: 999px; background: #eadfcd; overflow: hidden; }
.scarcity-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #e0a52e, #b5451e);
  transition: width 0.6s ease;
}

/* ---- Botão ---- */
.pay-button {
  width: 100%;
  margin-top: 16px;
  background: linear-gradient(180deg, #26935f, var(--green-dark));
  color: #fff;
  border: none;
  border-radius: 15px;
  padding: 19px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 22px rgba(21, 92, 67, 0.32);
  transition: filter 0.15s, transform 0.05s;
  animation: pulse 2.6s ease-in-out infinite;
}
.pay-button:hover:not(:disabled) { filter: brightness(1.06); }
.pay-button:active:not(:disabled) { transform: scale(0.99); }
.pay-button:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; animation: none; }
#pay-check { font-size: 18px; }
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 22px rgba(21, 92, 67, 0.3); }
  50% { transform: scale(1.025); box-shadow: 0 14px 34px rgba(21, 92, 67, 0.5); }
}
.spinner {
  width: 18px; height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Garantia ---- */
.guarantee {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  background: #faf7ee;
  border: 1.5px dashed #ddd3ba;
  border-radius: 13px;
}
.guarantee-seal {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ffe08a, var(--gold));
  color: #5e4310;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 19px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px #ecd9a6;
}
.guarantee strong { display: block; font-size: 15px; }
.guarantee span { font-size: 13.5px; color: var(--muted); }

.trust { text-align: center; margin-top: 16px; color: var(--muted); font-size: 13px; font-weight: 600; }
.trust strong { color: #635bff; font-weight: 900; }
.digital-note { text-align: center; margin-top: 8px; color: var(--muted); font-size: 12.5px; font-weight: 700; }

/* ============ POPUP: última oferta MB WAY (ao escolher Multibanco) ============ */
.mbw-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 40, 28, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 18px;
  animation: mbw-fade 0.16s ease;
}
@keyframes mbw-fade { from { opacity: 0; } to { opacity: 1; } }
.mbw-modal {
  position: relative;
  background: var(--card);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(15, 69, 49, 0.32);
  animation: mbw-pop 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes mbw-pop { from { transform: scale(0.94); opacity: 0.6; } to { transform: scale(1); opacity: 1; } }
.mbw-close {
  position: absolute; top: 12px; right: 12px;
  border: none; background: var(--green-soft); color: var(--green-dark);
  width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 800;
}
.mbw-close:active { transform: scale(0.95); }
.mbw-emoji { font-size: 40px; line-height: 1; margin-bottom: 6px; }
.mbw-title { font-family: var(--serif); font-size: 21px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.mbw-sub { font-size: 14px; color: var(--muted); margin: 0 0 18px; line-height: 1.45; }

.mbw-compare {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 12px;
}
.mbw-opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 11px;
}
.mbw-opt.best { background: var(--green-soft); border: 1.5px solid #bfe0cd; }
.mbw-opt-name { font-weight: 800; font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.mbw-badge {
  background: var(--green); color: #fff; font-size: 11px; font-weight: 900;
  padding: 2px 8px; border-radius: 20px; letter-spacing: 0.02em;
}
.mbw-opt-price { font-weight: 900; font-size: 19px; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.mbw-opt-price.mbw-old { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.mbw-saving {
  background: var(--gold-soft); color: #8a5a10; font-weight: 800; font-size: 13.5px;
  padding: 9px; border-radius: 11px; margin-bottom: 16px;
}

.mbw-field { display: block; text-align: left; margin-bottom: 18px; }
.mbw-field > span {
  display: block; font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 9px;
}
/* Caixa unificada: prefixo (verde) + número, com anel de foco. */
.mbw-field .phone-group {
  display: flex; align-items: stretch; gap: 0;
  border: 2px solid var(--line); border-radius: 15px; overflow: hidden; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mbw-field .phone-group:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 115, 85, 0.13);
}
.mbw-field .phone-group.invalid {
  border-color: #c0492a;
  box-shadow: 0 0 0 4px rgba(192, 73, 42, 0.12);
}
.mbw-field .phone-prefix {
  display: flex; align-items: center; gap: 5px;
  border: none; border-right: 2px solid var(--line); border-radius: 0;
  background: var(--green-soft); color: var(--green-dark);
  font-size: 17px; font-weight: 800; padding: 0 15px;
}
.mbw-field .phone-group input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: inherit; color: var(--ink);
  font-size: 21px; font-weight: 700; letter-spacing: 1.5px;
  padding: 16px 15px;
}
.mbw-field .phone-group input::placeholder {
  color: #bcc1b6; font-weight: 500; letter-spacing: 0.5px;
}
.mbw-err { display: block; color: #c0492a; font-size: 12.5px; font-weight: 700; margin-top: 7px; }

.mbw-pay {
  width: 100%; border: none; cursor: pointer; font-family: inherit;
  background: linear-gradient(180deg, #26935f, var(--green-dark));
  color: #fff; font-weight: 900; font-size: 16.5px; padding: 16px; border-radius: 14px;
  box-shadow: 0 10px 24px rgba(21, 92, 67, 0.32);
}
.mbw-pay:active { transform: scale(0.99); }
.mbw-reinforce {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 14px; margin-top: 12px;
  font-size: 12.5px; font-weight: 700; color: var(--green-dark);
}
.mbw-reinforce span { white-space: nowrap; }
.mbw-keep {
  width: 100%; border: none; background: none; cursor: pointer; font-family: inherit;
  color: var(--muted); font-weight: 700; font-size: 13.5px; padding: 14px 8px 4px;
  text-decoration: underline; text-underline-offset: 2px;
}
.mbw-keep:hover { color: var(--ink); }
