/* Checkout "Site Completo" — RD Agência.
 * Convertido da fonte de design "Checkout - RD Agencia.dc.html" (24/08/2026).
 * Carrega DEPOIS do lp.css (que traz o consentimento). CSP strict: nada inline.
 * Fase 1: página visual, botão Finalizar desabilitado (integração = fase 2).
 */

body.co-checkout { background: #FAF7F2; color: #27323D; }

/* ─── estrutura (veio do helmet do design) ─── */
#co-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
#co-summary { order: -1; }
#co-toggle { display: flex; }
#co-summary-body[data-open="false"] { display: none; }
#co-mobilebar { display: flex; }
#co-page { padding-bottom: calc(96px + var(--rd-consent-h, 0px)); }
@media (min-width: 900px) {
  #co-grid { grid-template-columns: 1.5fr 1fr; gap: 32px; }
  #co-summary { order: 0; position: sticky; top: 24px; }
  #co-toggle { display: none; }
  #co-summary-body { display: block !important; }
  #co-mobilebar { display: none; }
  #co-page { padding-bottom: calc(40px + var(--rd-consent-h, 0px)); }
}
@keyframes coReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.co-trust { grid-template-columns: 1fr; display: grid; gap: 10px 20px; }
@media (min-width: 560px) { .co-trust { grid-template-columns: 1fr 1fr; } }
#co-legal { text-align: center; }
#co-legal nav { justify-content: center; }
@media (min-width: 900px) { #co-legal { text-align: left; } #co-legal nav { justify-content: flex-start; } }

/* ─── cabeçalho ─── */
.co-header { text-align: center; padding: 40px 24px 8px; }
.co-header__logo { height: 48px; width: auto; display: block; margin: 0 auto; }
.co-header__title { font-family: Sora, sans-serif; font-weight: 600; color: var(--teal); font-size: clamp(24px, 5vw, 34px); line-height: 1.15; letter-spacing: -0.015em; margin: 20px 0 8px; }
.co-header__sub { color: var(--graphite); font-size: 16px; max-width: 52ch; margin: 0 auto; }
.co-header__sub strong { color: var(--teal); font-weight: 600; }
.co-header__seal { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--graphite-soft); font-size: 13px; font-weight: 500; }

/* ─── layout ─── */
.co-wrap { max-width: 1080px; margin: 0 auto; padding: 24px; }
.co-col { display: flex; flex-direction: column; gap: 24px; }
.co-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: clamp(20px, 4vw, 28px); }
.co-card__title { font-family: Sora, sans-serif; font-weight: 600; color: var(--teal); font-size: 19px; margin: 0 0 4px; }
.co-card__hint { color: var(--graphite-soft); font-size: 14px; margin: 0 0 20px; }

/* ─── formulário ─── */
.co-form { display: flex; flex-direction: column; gap: 16px; }
.co-field { display: flex; flex-direction: column; gap: 6px; }
.co-field label { font-size: 14px; font-weight: 500; color: var(--teal); }
.co-field input { font-family: Inter, sans-serif; font-size: 16px; padding: 13px 14px; min-height: 48px; border: 1px solid rgba(16,75,74,.22); border-radius: 10px; background: #fff; color: #27323D; outline: none; width: 100%; }
.co-field input:focus { border-color: var(--teal); }

/* ─── forma de pagamento ─── */
.co-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-method { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; cursor: pointer; padding: 14px 16px; min-height: 48px; border-radius: 10px; border: 1px solid rgba(16,75,74,.22); background: #fff; }
.co-method[aria-pressed="true"] { border: 2px solid var(--teal); background: rgba(125,211,192,.12); padding: 13px 15px; }
.co-method__name { font-family: Sora, sans-serif; font-weight: 600; font-size: 16px; color: var(--teal); }
.co-method__sub { font-size: 12.5px; color: var(--graphite-soft); }

/* ─── barra de confiança ─── */
.co-trust__item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--graphite); }
.co-trust__item svg { flex: 0 0 auto; }

/* ─── resumo do pedido ─── */
#co-toggle { width: 100%; align-items: center; justify-content: space-between; background: transparent; border: none; padding: 0 0 2px; cursor: pointer; font-family: Sora, sans-serif; font-weight: 600; color: var(--teal); font-size: 17px; }
.co-toggle__icon { font-size: 14px; }
.co-prod { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.co-prod__name { font-family: Sora, sans-serif; font-weight: 600; color: var(--teal); font-size: 17px; }
.co-prod__sub { color: var(--graphite-soft); font-size: 13px; }
.co-prod__price { text-align: right; font-family: Sora, sans-serif; font-weight: 600; color: var(--teal); font-size: 17px; white-space: nowrap; }
.co-prod__pricesub { font-size: 12px; color: var(--graphite-soft); white-space: nowrap; text-align: right; }
.co-feats { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.co-feats li { display: flex; gap: 9px; font-size: 14px; color: var(--graphite-soft); }
.co-feats li::before { content: "•"; color: var(--coral); font-weight: 700; line-height: 1.45; }

/* ─── order bump ─── */
.co-bump { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; margin-top: 20px; border: 2px solid #FF7A64; background: rgba(125,211,192,.12); border-radius: 12px; padding: 16px; width: 100%; text-align: left; font-family: inherit; }
.co-bump__box { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 7px; border: 2px solid #FF7A64; background: #fff; display: flex; align-items: center; justify-content: center; margin-top: 2px; color: #fff; }
.co-bump[aria-pressed="true"] .co-bump__box { background: var(--teal); border-color: var(--teal); }
.co-bump__name { font-family: Sora, sans-serif; font-weight: 600; color: var(--teal-dark); font-size: 15px; }
.co-bump__txt { margin: 6px 0 0; color: var(--graphite); font-size: 13.5px; }
.co-bump__txt strong { font-weight: 600; }
.co-bump__skip { margin: 8px 0 0; color: var(--graphite-soft); font-size: 12.5px; font-style: italic; }
.co-bump__note { margin: 8px 2px 0; color: var(--graphite-soft); font-size: 12.5px; }

/* ─── totais ─── */
.co-lines { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.co-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--graphite); }
.co-line--bump { animation: coReveal .25s ease both; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.co-total__label { font-family: Sora, sans-serif; font-weight: 600; color: var(--teal); font-size: 18px; }
.co-total__val { font-family: Sora, sans-serif; font-weight: 700; color: var(--teal); font-size: clamp(26px, 6vw, 32px); letter-spacing: -0.01em; transition: color .25s; }
.co-total__sub { text-align: right; font-size: 12.5px; color: var(--graphite-soft); margin-top: 2px; }

/* ─── consentimentos da compra ─── */
.co-checks { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.co-check { display: flex; gap: 12px; align-items: flex-start; min-height: 24px; padding: 2px 0; cursor: pointer; background: none; border: none; text-align: left; font-family: inherit; }
.co-check__box { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 5px; border: 2px solid rgba(16,75,74,.22); background: #fff; display: flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s; color: #fff; }
.co-check[aria-checked="true"] .co-check__box { background: var(--teal); border-color: var(--teal); }
.co-check__txt { font-size: 14px; color: var(--graphite); line-height: 1.5; }
.co-check__txt a { color: var(--teal); text-decoration: underline; }

/* ─── CTA (desabilitado na fase 1) ─── */
.co-cta { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 10px; padding: 16px 22px; min-height: 52px; font-weight: 600; font-size: 16px; margin-top: 20px; transition: background .2s, opacity .2s; font-family: Inter, sans-serif; background: #FF7A64; color: #27323D; }
.co-cta[disabled] { opacity: .45; cursor: not-allowed; }
.co-guarantee { display: flex; gap: 9px; margin-top: 14px; color: var(--graphite); font-size: 13px; line-height: 1.5; }
.co-guarantee svg { flex: 0 0 auto; margin-top: 1px; }

/* ─── rodapé legal ─── */
#co-legal { max-width: 1080px; margin: 32px auto 0; padding: 32px 24px; border-top: 1px solid var(--border); }
#co-legal address { font-style: normal; color: var(--graphite-soft); font-size: 13px; line-height: 1.7; }
#co-legal address strong { font-weight: 600; color: var(--graphite); }
#co-legal nav { margin-top: 12px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
#co-legal nav a { color: var(--graphite-soft); }

/* ─── barra mobile ─── */
#co-mobilebar { position: fixed; bottom: var(--rd-consent-h, 0px); left: 0; right: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--border-strong); padding: 12px 16px; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -4px 16px rgba(16,75,74,.08); }
#co-mobilebar .co-mb__label { font-size: 12px; color: var(--graphite-soft); line-height: 1.2; }
#co-mobilebar .co-mb__val { font-family: Sora, sans-serif; font-weight: 700; color: var(--teal); font-size: 22px; line-height: 1.1; transition: color .25s; }
#co-mobilebar .co-cta { width: auto; margin-top: 0; padding: 14px 22px; min-height: 48px; font-size: 15px; white-space: nowrap; }

@media print {
  #co-mobilebar, .consent-bar, .consent-overlay { display: none !important; }
}
