/* Estilo comum: formulário, pagamento, entrega, painel */
:root {
  --wine: #5B1A2B;
  --wine-deep: #2E0E17;
  --rose: #D98A93;
  --rose-claro: #F6E3E3;
  --gold: #C9A15C;
  --ivory: #FBF3EC;
  --ink: #2B1B1E;
  --muted: #7A6266;
  --linha: #E8DAD2;
  --branco: #FFFDFB;
  --erro: #B3261E;
  --ok: #2E7D4F;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Work Sans', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--ivory); color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100svh; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--wine); }
img { max-width: 100%; }
[hidden] { display: none !important; }

.logo { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--wine); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--rose); font-style: italic; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 0; border-radius: 999px; padding: 0.95rem 1.5rem; font-size: 0.98rem; font-weight: 600;
  text-decoration: none; transition: transform 0.1s, background 0.2s, opacity 0.2s; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-pri { background: var(--wine); color: #fff; }
.btn-pri:hover { background: #6d2236; }
.btn-ouro { background: var(--gold); color: var(--wine-deep); }
.btn-sec { background: transparent; color: var(--wine); border: 1.5px solid var(--linha); }
.btn-sec:hover { border-color: var(--wine); }
.btn-txt { background: none; border: 0; color: var(--wine); font-weight: 500; padding: 0.4rem 0.2rem; font-size: 0.88rem; }
.btn-bloco { width: 100%; }

.campo { display: block; margin-bottom: 1.2rem; }
.campo > .rot { display: block; font-size: 0.86rem; font-weight: 500; margin-bottom: 0.45rem; }
.campo .ajuda { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }
.inp {
  width: 100%; background: var(--branco); border: 1.5px solid var(--linha); border-radius: 12px;
  padding: 0.85rem 0.95rem; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.inp:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(91,26,43,0.1); }
textarea.inp { resize: vertical; min-height: 7rem; line-height: 1.5; }
.inp-serif { font-family: var(--serif); font-size: 1.15rem; }
.contagem { font-size: 0.72rem; color: var(--muted); text-align: right; margin-top: 0.25rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 1.5px solid var(--linha); background: var(--branco); border-radius: 999px; padding: 0.6rem 1rem;
  font-size: 0.9rem; transition: all 0.15s; -webkit-tap-highlight-color: transparent;
}
.chip[aria-pressed="true"] { background: var(--wine); color: #fff; border-color: var(--wine); }

.cartao { background: var(--branco); border: 1px solid var(--linha); border-radius: 18px; padding: 1.3rem; }
.aviso { background: var(--rose-claro); color: var(--wine-deep); border-radius: 12px; padding: 0.8rem 1rem; font-size: 0.86rem; line-height: 1.45; }
.erro-msg { color: var(--erro); font-size: 0.86rem; margin-top: 0.6rem; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--wine-deep); color: #fff; padding: 0.75rem 1.1rem; border-radius: 12px; font-size: 0.88rem;
  z-index: 100; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); animation: toast 0.25s ease;
}
@keyframes toast { from { opacity: 0; transform: translate(-50%, 8px); } }

.girando { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: girar 0.8s linear infinite; }
.girando.escuro { border-color: rgba(91,26,43,0.2); border-top-color: var(--wine); }
@keyframes girar { to { transform: rotate(360deg); } }

.rodape-legal { text-align: center; font-size: 0.74rem; color: var(--muted); padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px)); line-height: 1.7; }
.rodape-legal a { color: var(--muted); }
