/* MOVORÇA R20: opções Básico/Completo/Premium + grupos de avisos (status / alert). */
.toasts { gap: 0; }
.toast-group { display: grid; gap: 8px; align-content: start; pointer-events: none; }
.toast-group > * { pointer-events: auto; align-self: start; } /* QA34: o grupo não estica nem bloqueia toques */
.toast-group:not(:empty) + .toast-group:not(:empty) { margin-top: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Editor (revisão) ---- */
.opt-editor { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; background: rgba(255,255,255,.03); }
.opt-editor.is-on { border-color: var(--gold); }
.opt-editor h2 { font-size: 1.05rem; margin: 0 0 2px; }
.opt-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.opt-switch { flex: none; width: 52px; height: 30px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.12); position: relative; cursor: pointer; padding: 0; }
.opt-switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: transform .18s; }
.opt-switch[aria-checked="true"] { background: var(--gold); border-color: var(--gold); }
.opt-switch[aria-checked="true"] span { transform: translateX(22px); background: #111; }
.opt-switch:focus-visible, .opt-tab:focus-visible, .opt-dots button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lock-tag { font-size: .72rem; border: 1px solid var(--gold); color: var(--gold); border-radius: 99px; padding: 1px 8px; vertical-align: middle; }
.opt-body { margin-top: 14px; }
.opt-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.25); }
.opt-tab { display: grid; gap: 2px; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-dim); font: inherit; cursor: pointer; text-align: center; }
.opt-tab small { font-size: .78rem; opacity: .85; }
.opt-tab[aria-selected="true"] { background: var(--gold); color: #111; font-weight: 600; }
.opt-tab .star { color: inherit; }
.opt-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 12px; }
.opt-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.opt-tools [aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.opt-locked { border-left: 3px solid var(--gold); padding-left: 10px; }

/* ---- Página do cliente ---- */
.quote-options { margin: 22px 0; }
.quote-options > h2 { margin: 0 0 4px; }
.opt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 16px; margin-top: 14px; align-items: stretch; }
.opt-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 18px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card-glass, rgba(255,255,255,.05)); }
.opt-card.is-rec { border: 2px solid var(--gold); box-shadow: 0 18px 44px rgba(0,0,0,.35), 0 0 0 4px rgba(212,175,55,.12); }
.opt-card.is-chosen { outline: 3px solid var(--gold); outline-offset: 2px; }
.rec-badge { position: absolute; top: -12px; left: 18px; background: var(--gold); color: #111; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.chosen-tag { font-size: .72rem; border: 1px solid var(--gold); color: var(--gold); border-radius: 99px; padding: 1px 8px; vertical-align: middle; }
.opt-card h3 { margin: 0; font-size: 1.2rem; }
.opt-note { margin: 0; color: var(--ink-dim); }
.opt-diff { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; }
.opt-diff li { display: flex; gap: 8px; align-items: baseline; }
.opt-diff .mark { width: 1.1em; flex: none; font-weight: 700; }
.opt-diff .is-yes .mark { color: var(--gold); }
.opt-diff .is-no { color: var(--ink-dim); opacity: .7; }
.opt-card-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.opt-card-total b { font-size: 1.35rem; }
.opt-choose { width: 100%; justify-content: center; min-height: 48px; }
.opt-dots, .choose-bar { display: none; }
.doc-opt-title { margin: 18px 0 6px; font-size: 1rem; }

@media (max-width: 760px) {
  .opt-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 14px 8% 6px; margin: 0 -16px; scrollbar-width: none; }
  .opt-cards::-webkit-scrollbar { display: none; }
  .opt-card { flex: 0 0 84%; scroll-snap-align: center; }
  .opt-dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
  .opt-dots button { width: 24px; height: 24px; border: 0; background: transparent; padding: 0; position: relative; cursor: pointer; }
  .opt-dots button::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--ink-dim); opacity: .5; }
  .opt-dots button[aria-current="true"]::after { background: var(--gold); opacity: 1; inset: 7px; }
  .choose-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg-2, #15151a); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0,0,0,.35); }
  .choose-bar .bar-info { display: grid; min-width: 0; }
  .choose-bar small { color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .choose-bar b { font-size: 1.15rem; }
  .choose-bar .btn { min-height: 48px; white-space: nowrap; }
  body.has-choose-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .opt-head { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .opt-switch span { transition: none; } }
/* R22: trilho de abas rola na horizontal (scroll-snap); a página nunca ganha rolagem lateral. */
.opt-editor, .opt-body { min-width: 0; max-width: 100%; }
.opt-tabs { display: flex; position: relative; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 4px; overscroll-behavior-x: contain; max-width: 100%; min-width: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.opt-tabs::-webkit-scrollbar { display: none; }
.opt-tab { flex: 1 0 auto; min-width: max-content; scroll-snap-align: start; white-space: nowrap; }
/* R22: bloco Condições (Perfil e revisão). */
.terms-block { border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 14px; padding: 12px 14px 4px; margin: 0; min-width: 0; display: grid; gap: 10px; }
.terms-block legend { padding: 0 6px; font-weight: 700; }
.terms-block[disabled] { opacity: .75; }
.terms-pay { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.terms-check { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
.terms-check input { width: 20px; height: 20px; }
.doc-cond .terms-line strong { font-weight: 700; }
