/* ---------- Checkout dentro da sacola ---------- */
.drawer__head { gap: 10px; }
.drawer__head h2 { margin-right: auto; }
.drawer__back {
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem;
  background: var(--perola-3); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background .3s, transform .4s var(--ease);
}
.drawer__back:hover { background: var(--chiclete-2); transform: translateX(-3px); }
.drawer__back[hidden], .drawer__view[hidden], .drawer__sub[hidden] { display: none; }

.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.drawer__body .drawer__items { overflow: visible; }

.ship-promo {
  margin: 0 26px 8px; padding: 10px 14px; border-radius: 14px;
  background: var(--chiclete-2); color: var(--rosa-2); font-size: .85rem; font-weight: 700;
}
.ship-promo:empty { display: none; }

.co { padding: 4px 26px 12px; animation: itemIn .5s var(--ease); }
.co fieldset { border: 0; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co legend { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: 12px; padding: 0; }
.co__f { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 700; color: var(--ink-2); min-width: 0; }
.co__f--full { grid-column: 1 / -1; }
.co__f input {
  width: 100%; min-width: 0; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
  padding: 12px 14px; border: 0; border-radius: 14px;
  background: var(--perola-3); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .25s;
}
.co__f input::placeholder { color: rgba(59, 15, 38, .35); }
.co__f input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--rosa); }
.co__f input.is-invalid { box-shadow: inset 0 0 0 2px #C62828; }
.co__cep { align-self: end; padding-bottom: 12px; font-size: .82rem; color: var(--ink-2); line-height: 1.3; }
.co__cep.is-free { color: var(--rosa); font-weight: 700; }
.co__error { color: #C62828; font-weight: 700; font-size: .9rem; }
.co__error:empty { display: none; }
.co__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

.drawer__foot .drawer__sub { margin-bottom: 6px; }
.drawer__foot .drawer__sub strong { font-size: 1.2rem; }
.drawer__sub--sm { font-size: .9rem; color: var(--ink-2); }
.drawer__sub--sm strong { font-family: var(--f-body); font-size: .95rem !important; color: var(--ink); }
.drawer__sub--sm strong.is-free { color: var(--rosa); }
.drawer__sub--total { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.drawer__sub--total strong { font-size: 1.6rem !important; }
.drawer__foot .btn { margin-top: 10px; }
.drawer__alt { display: block; margin-top: 6px; text-align: center; font-size: .82rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.drawer__alt:hover { color: var(--rosa); }

.btn.is-loading { pointer-events: none; }
.btn.is-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spinBtn .7s linear infinite;
}
@keyframes spinBtn { to { transform: rotate(360deg); } }

.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--rosa); }

/* ---------- Páginas simples (pedido, políticas) ---------- */
.page { min-height: 100svh; padding: 120px var(--gutter) 80px; }
.page__card {
  width: min(720px, 100%); margin-inline: auto; padding: clamp(28px, 6vw, 56px);
  border-radius: var(--r-lg); background: var(--perola-3); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.page__card h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 16px; }
.page__card h2 { font-size: 1.6rem; margin: 36px 0 10px; }
.page__card p, .page__card li { color: var(--ink-2); margin-bottom: 10px; }
.page__card ul { list-style: disc; padding-left: 20px; }
.page__card .btn { margin-top: 18px; margin-right: 8px; }
.page__icon {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 24px;
  font-size: 2.4rem; color: #fff; background: var(--rosa); box-shadow: var(--shadow);
  animation: popIn .8s var(--ease-back);
}
.page__icon--wait { background: var(--chiclete); color: var(--ink); }
.page__icon--fail { background: var(--ink); }
@keyframes popIn { from { transform: scale(0) rotate(-30deg); } }
.page__ref { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--chiclete-2); color: var(--rosa-2); font-weight: 700; font-size: .9rem; }
.todo { background: #FFF3C4; color: #6B4E00; padding: 0 4px; border-radius: 4px; }
