/* FlowZ · Painel: enviar planos e Pix pelo WhatsApp (prefixo vd-).
   Visual de celular fica em public/painel/mobile.css (seção vd-), sob (max-width: 860px). */

.vd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.vd-grid > .p-card { min-width: 0; }
.vd-sec { display: grid; gap: 14px; min-width: 0; }
.vd-compose { display: grid; gap: 16px; min-width: 0; }
.vd-modal-body { display: grid; gap: 14px; }
.vd-for { margin: 0; color: var(--text-2); font: 500 14px/1.4 var(--sans); }
.vd-for b { color: var(--text); font-weight: 600; }

/* hidden precisa ganhar do display das classes vd- */
.vd-grid [hidden], .vd-modal-body [hidden] { display: none !important; }

/* Pessoa escolhida (passo 1) */
.vd-pick { display: grid; gap: 12px; justify-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface-2); }
.vd-pick > .p-field { width: 100%; }
.vd-pick-name { font: 700 20px/1.15 var(--cond); color: var(--text); overflow-wrap: anywhere; }

/* Resultados da busca */
.vd-results { display: grid; gap: 6px; min-width: 0; }
.vd-res { display: grid; gap: 2px; width: 100%; min-height: 44px; padding: 10px 12px; text-align: left; font: inherit; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: var(--r-ctl); cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease); }
.vd-res:hover { background: var(--surface-2); border-color: var(--line-2); }
.vd-res b { font-weight: 600; overflow-wrap: anywhere; }
.vd-res small { color: var(--text-3); font-size: 12.5px; overflow-wrap: anywhere; }
.vd-res:focus-visible, .vd-chip:focus-visible, .vd-plan:focus-visible, .vd-wa:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.vd-hint { margin: 0; color: var(--text-3); font-size: 13px; }

/* Chip de opção (Incluir VoltZ Book): selecionado em branco com texto #111 */
.vd-chip { justify-self: start; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text-2); font: 600 13.5px/1 var(--sans); cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); }
.vd-chip[aria-pressed="true"] { background: #fff; color: #111; border-color: #fff; }

/* Cartões de plano (modo Pix) */
.vd-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; min-width: 0; }
.vd-plan { display: grid; gap: 4px; min-height: 44px; padding: 14px; text-align: left; font: inherit; color: var(--text); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.vd-plan:hover { border-color: var(--line-2); }
.vd-plan b { font: 700 18px/1.15 var(--cond); }
.vd-plan-price { font: 600 15px/1.2 var(--sans); }
.vd-plan small { color: var(--text-3); font-size: 12px; line-height: 1.35; }
.vd-plan[aria-pressed="true"] { background: #fff; color: #111; border-color: #fff; }
.vd-plan[aria-pressed="true"] small { color: #555; }

/* Prévia das mensagens */
.vd-preview { display: grid; gap: 12px; min-width: 0; }
.vd-msg { display: grid; gap: 8px; min-width: 0; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.vd-msg-label { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.vd-msg-text { margin: 0; max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 13.5px/1.55 var(--sans); color: var(--text); }
.vd-msg-code { font: 400 12px/1.5 var(--mono); }

/* Ações: botões do WhatsApp (verde de marca de terceiro) */
.vd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.vd-actions-pix { display: grid; gap: 10px; }
.vd-actions-pix > .vd-actions { display: flex; }
.vd-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-ctl); background: #25D366; border: 1px solid #25D366; color: #04210F; font: 600 14px/1.2 var(--sans); text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease); }
.vd-wa:hover { background: #1EBE5A; border-color: #1EBE5A; }
.vd-wa.is-soft { background: transparent; color: #25D366; }
.vd-wa.is-soft:hover { background: rgba(37, 211, 102, .08); }
.vd-wa.is-off { opacity: .4; pointer-events: none; }
.vd-wa .vd-done { font: 500 12px/1 var(--mono); color: inherit; opacity: .85; }
.vd-wa .vd-done[hidden] { display: none; }
.vd-warn { margin: 0; padding: 12px 14px; border-radius: var(--r-ctl); border: 1px solid rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .08); color: var(--warn); font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) {
  .vd-res, .vd-chip, .vd-plan, .vd-wa { transition: none; }
}
