.checkout { max-width: 650px; padding-block: 36px 64px; }
.checkout h1 { font-size: clamp(2.4rem, 8vw, 4.65rem); line-height: .96; letter-spacing: -.055em; }
.checkout h2, .checkout legend { font-size: clamp(1.34rem, 4vw, 1.8rem); font-weight: 750; line-height: 1.15; letter-spacing: -.04em; }
.checkout p { margin-top: 8px; }
.checkout-card { padding: clamp(14px, 4vw, 23px); min-width: 0; margin: 16px 0 0; border: 1px solid var(--linha); border-radius: 10px; background: var(--claro); }
.checkout legend { padding-inline: 5px; }
.flag { display: inline-block; margin: 0 0 12px; padding: 5px 8px; color: var(--escuro); background: var(--rosa); border-radius: 4px; font-size: .86rem; font-weight: 670; }
.checkout-price { font-size: 1.45rem; color: var(--vinho); font-weight: 780; }
.checkout-extras { display: grid; gap: 7px; }
.extra { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 10px; align-items: start; padding: 10px 8px; background: var(--papel); border: 1px solid var(--linha); border-radius: 6px; cursor: pointer; }
.extra:has(input:checked) { border-color: var(--vinho); background: #fae9f0; }
.extra:has(input:disabled) { opacity: .63; cursor: default; }
.extra > span { min-width: 0; }
.extra small { display: block; margin-top: 3px; color: var(--suave); }
.extra b { color: var(--vinho); white-space: nowrap; }
.extra input, .optin input { accent-color: var(--vinho); width: 18px; height: 18px; margin: 2px 0 0; }
.dados > label:not(.optin) { display: block; margin-bottom: 5px; font-weight: 700; }
.dados > select, .dados > input { width: 100%; padding: 9px; min-height: 44px; margin-bottom: 11px; color: var(--tinta); border: 1px solid #aa8797; border-radius: 5px; background: white; }
.optin { display: grid; grid-template-columns: auto 1fr; gap: 8px; color: var(--suave); }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 1.2rem; margin-block: 18px 4px; }
.checkout-total strong { color: var(--vinho); font-size: 1.65rem; }
.checkout .btn { margin-top: 10px; }
.checkout .btn:disabled { opacity: .62; cursor: wait; }
.checkout .devolucao { color: var(--suave); font-size: .88rem; }
.checkout .oferta { background: var(--rosa); border-color: #daaec2; }
#aviso:not(:empty) { max-width: 45ch; margin-top: 13px; color: var(--escuro); }
.link-button { display: block; color: var(--vinho); background: none; padding: 8px 0; margin-top: 6px; border: 0; text-align: left; text-decoration: underline; text-underline-offset: .2em; }
.previas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:12px 0}
.previas canvas{width:100%;height:100%;min-height:84px;object-fit:contain;background:#4b2737;border-radius:8px;padding:4px}
.previas canvas:nth-child(2){background:#f9eddf}
.legal section{margin-top:28px}.legal h2{font-size:1.55rem}
.carteiras{margin:12px 0}.carteiras h2{font-size:1rem;margin-bottom:8px}#wallet-local{display:flex;gap:8px}#wallet-local button{flex:1;background:#24191f;color:white;border:0;border-radius:7px;min-height:44px}
#pedido>.checkout-card:first-child{margin-top:8px}.combo-mini{display:flex;gap:5px;margin:6px 0}.combo-mini i{font-style:normal;padding:4px 5px;border:1px solid var(--linha);background:#fffaf5;border-radius:4px;font-size:.8rem}
#extras details summary{cursor:pointer;padding:9px 0}#extras details label{margin-bottom:5px}
.pagar-fixo{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--claro);padding:10px 12px max(10px,env(safe-area-inset-bottom));border:1px solid var(--linha);border-radius:8px;margin-top:8px;z-index:3}
.pagar-fixo .btn{margin:0}.pagar-fixo strong{display:block;color:var(--vinho)}#sec-meio label{padding-block:8px}#sec-meio h2{margin-bottom:10px}

.checkout-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 8px 0 2px;
}
.checkout-trust p { margin: 0; }
.pagamento-seguro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--escuro);
  font-size: .88rem;
  font-weight: 720;
}
.pagamento-seguro > span {
  position: relative;
  width: 10px;
  height: 8px;
  margin-top: 3px;
  border: 1.4px solid currentColor;
  border-radius: 2px;
}
.pagamento-seguro > span::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 6px;
  height: 5px;
  border: 1.4px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  transform: translateX(-50%);
}

.combo-mini i{flex:1;min-width:0;text-align:center;padding:5px 1px;font-size:.67rem}
.combo-mini i::before{content:'';display:block;width:25px;height:20px;margin:0 auto 3px;border-radius:3px}
.combo-mini .paleta::before{background:linear-gradient(115deg,#ab645d 0 25%,#edbb98 25% 50%,#c9b986 50% 75%,#865c71 75%)}
.combo-mini .fundo::before{background:radial-gradient(ellipse at 30% 95%,#a78d72 40%,transparent 42%),linear-gradient(130deg,#ead8bf,#c3a9a0)}
.combo-mini .roteiro::before{background:repeating-linear-gradient(0deg,#e7d6bf 0 3px,#aa897b 3px 4px);border:3px solid #e7d6bf}
.combo-mini .calendario::before{background:repeating-linear-gradient(90deg,transparent 0 6px,#b9a093 6px 7px),repeating-linear-gradient(0deg,#f6eadf 0 5px,#baa297 5px 6px);border-top:5px solid #9a5c68}

/* A mesma linguagem da vitrine, com movimentos ligados às etapas do pedido. */
.checkout-editorial { --papel: #fbf3ed; --claro: #fffaf6; --vinho: #9c214e; background: var(--papel); }
.checkout-editorial .shell { width: min(100% - 64px, 1110px); }
.checkout-editorial .top { min-height: 65px; }
.checkout-editorial .marca { font-size: 1.8rem; }
.checkout-editorial .top-link { padding: 8px 13px; border: 1px solid #b68b9a; border-radius: 999px; text-decoration: none; }
.checkout-editorial .checkout { max-width: 1030px; padding-block: 35px 52px; }
.checkout-editorial h1 { font: 400 clamp(3rem, 7vw, 6.1rem)/.95 var(--display); letter-spacing: -.055em; margin-bottom: 20px; }
.checkout-editorial h1 em { font-family: var(--display); color: var(--vinho); }
.checkout-editorial #aviso:empty { display: none; }
.checkout-editorial #aviso:not(:empty) { margin: 0 0 14px; }
.checkout-editorial #pedido { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); align-items: start; gap: 24px; }
.checkout-etapas { min-width: 0; }
.checkout-etapas > :first-child { margin-top: 0; }
.checkout-editorial .checkout-card { border-radius: 17px; }
.checkout-editorial .checkout-resumo {
  display: grid; grid-template-columns: minmax(0, 1fr);
  position: sticky; top: 20px; isolation: isolate;
  min-height: 290px; overflow: hidden; align-content: space-between;
  background: #481a31; color: #fff6f1; border-color: #622640;
  padding: clamp(20px, 3.2vw, 34px);
  animation: resumo-entra 640ms var(--ease-out) both;
}
.checkout-editorial #pedido > .checkout-resumo:first-child { margin-top: 0; }
.checkout-resumo::before {
  content: ''; position: absolute; z-index: -2; inset: 0;
  background: linear-gradient(90deg, #391327f5 4%, #4b1532a0 58%, #6b2045a0), url('/assets/fotos/agenda-editorial.webp') center 53% / cover;
}
.checkout-resumo-copy { min-width: 0; }
.checkout-editorial .checkout-resumo h2 { font: 400 clamp(2.2rem, 4.7vw, 4.35rem)/.96 var(--display); letter-spacing: -.05em; }
.checkout-resumo #detalhe-plano { color: #f8d8e6; max-width: 27ch; }

#rotulo-preco-plano { display: block; margin-top: 14px; color: #f8d8e6; font-size: .79rem; font-weight: 720; }
.checkout-resumo #preco-plano { color: #ffd2e6; font: 400 clamp(1.95rem, 4.6vw, 3.6rem)/1 var(--display); margin-top: 2px; }
.checkout-pack { display: flex; width: min(72%, 250px); justify-self: end; align-items: center; margin: -4px 0 -12px; }
.checkout-pack img {
  flex: 0 0 56%; width: 56%; height: auto; margin: 0 -6%;
  padding: 5%; border-radius: 12px; background: #51213aff; border: 1px solid #e6b9cc80;
  box-shadow: 0 16px 27px #20091764;
  transform: rotate(-12deg); animation: pack-entra 750ms var(--ease-out) both;
}
.checkout-pack img + img { transform: translateY(3px) rotate(12deg); animation-delay: 80ms; }
.checkout-editorial .flag { margin: 0 0 8px; border-radius: 999px; font-size: .73rem; }
.checkout-editorial .dados > :is(input, select) { border-radius: 10px; padding-inline: 12px; font-size: 1rem; scroll-margin-bottom: 112px; }
.checkout-editorial .dados > :is(input, select):focus { border-color: var(--vinho); }
.checkout-editorial .optin { font-size: .92rem; }
.checkout-editorial .btn { border-radius: 999px; }
.checkout-editorial .extra { border-radius: 11px; transition: background-color 200ms ease, border-color 200ms ease; scroll-margin-bottom: 120px; }
.checkout-editorial .extra:has(input:checked) { background: #f7e3eb; }
.checkout-editorial .extra:has(input:checked) b { animation: total-entra 420ms var(--ease-out) both; }
.checkout-extra-avulso { margin-top: 3px; border-top: 1px solid var(--linha); }
.extras-opcoes { display: grid; gap: 6px; padding: 3px 4px 6px; }
.checkout-editorial #meios-locais { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checkout-editorial #meios-locais label {
  display: flex; align-items: center; gap: 7px; padding: 8px 10px; min-height: 45px; font-weight: 720;
  border: 1px solid var(--linha); border-radius: 9px; transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.checkout-editorial #meios-locais label:has(input:checked) { border-color: var(--vinho); color: var(--escuro); background: #f7e3eb; }
.checkout-editorial #meios-locais input { accent-color: var(--vinho); margin: 0; }
.checkout-editorial .pagar-fixo {
  isolation: isolate; background: #fcf2f3; border-color: #d3aab9; border-radius: 16px 16px 0 0;
  padding-inline: 15px; box-shadow: 0 -8px 22px #50162e0b;
}
.pagar-total { font-size: .82rem; color: var(--suave); }
.checkout-editorial #total { font-size: 1.35rem; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
.checkout-editorial #pagar[aria-busy=true]::after {
  content: ''; width: 13px; aspect-ratio: 1; border: 2px solid #fff6; border-right-color: #fff;
  border-radius: 50%; animation: girar-story 650ms linear infinite;
}
.checkout-editorial .checkout-cena { scroll-margin-block-start: 16px; animation: checkout-cena-entra 500ms var(--ease-out) both; }
.checkout-editorial .checkout-cena h2 { font: 400 clamp(1.85rem, 4.5vw, 3rem)/1 var(--display); letter-spacing: -.04em; }
.checkout-editorial .checkout-cena h2:focus { outline: none; }
.checkout-editorial .checkout-cena h2:focus-visible { outline: 2px solid var(--vinho); outline-offset: 5px; }
.checkout-editorial #espera { background: linear-gradient(140deg, #fff8f4, #f8e2eb); }
.checkout-sinal {
  position: relative; width: 47px; height: 47px; margin-bottom: 14px;
  border: 1px solid #b66689; border-radius: 50%; display: grid; place-items: center;
}
.checkout-sinal::before {
  content: ''; position: absolute; inset: 4px; border: 2px solid transparent;
  border-top-color: var(--vinho); border-radius: 50%; animation: girar-story 1.65s linear infinite;
}
.checkout-sinal::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--vinho); }
#espera:has(#reabrir:not([hidden])) .checkout-sinal::before { animation-play-state: paused; }
.checkout-editorial #relogio { font-size: .88rem; font-variant-numeric: tabular-nums; color: var(--suave); }
.checkout-editorial #confirmado {
  border-color: #e6bed0; background: radial-gradient(ellipse at 82% 7%, #f8d8e9, #fff8f4 70%);
}
.checkout-selo {
  width: 49px; height: 49px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: var(--vinho); margin-bottom: 14px; animation: selo-entra 640ms var(--ease-out) both;
}
.checkout-selo span {
  width: 16px; height: 9px; margin-top: -3px; border: solid currentColor; border-width: 0 0 2px 2px;
  transform: rotate(-45deg); animation: visto-entra .4s var(--ease-out) .11s both;
}
.checkout-editorial #biblioteca { margin-top: 15px; }
.checkout-editorial .oferta { margin-top: 14px; }
.checkout-editorial .checkout-etapas .link-button { min-height: 44px; }
.checkout-editorial .footer { border-top: 1px solid var(--linha); padding-block: 16px; }
@keyframes resumo-entra { from { opacity: .36; clip-path: inset(0 0 13% 0 round 18px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 18px); } }
@keyframes pack-entra { from { opacity: 0; translate: 18px 17px; } to { opacity: 1; translate: 0; } }
@keyframes checkout-cena-entra { from { opacity: .42; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes total-entra { from { opacity: .4; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
@keyframes girar-story { to { rotate: 360deg; } }
@keyframes selo-entra { from { scale: .58; opacity: .35; } to { scale: 1; opacity: 1; } }
@keyframes visto-entra { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

@media (max-width: 720px) {
  .checkout-editorial .shell { width: min(100% - 32px, 620px); }
  .checkout-editorial .checkout { padding-block-start: 21px; }
  .checkout-editorial h1 { margin-bottom: 14px; }
  .checkout-editorial .checkout-resumo { position: relative; top: 0; min-height: 0; padding: 15px 16px; }
  .checkout-editorial #pedido { grid-template-columns: 1fr; gap: 15px; }
  .checkout-resumo-copy { width: 66%; }
  .checkout-pack { position: absolute; inset: 0 0 0 auto; align-self: stretch; width: 34%; margin: 0; }
  .checkout-pack img { border-radius: 6px; margin-inline: -5%; }
  #rotulo-preco-plano { margin-top: 8px; }
  .checkout-editorial .checkout-resumo h2 { overflow-wrap: anywhere; }
  .checkout-editorial .pagar-fixo { margin-inline: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-editorial :is(.checkout-resumo,.checkout-pack img,.checkout-cena,.checkout-sinal::before,.checkout-selo,.checkout-selo span,#pagar::after,.extra b) { animation: none !important; }
}
