/* Botão flutuante do WhatsApp (direita) + aba "Rastrear pedido" com gaveta (esquerda). Contraste AA, alvos >= 44px, respeita prefers-reduced-motion. */
.fw-wa { position: fixed; right: 14px; bottom: var(--fw-base, 16px); z-index: 2147482000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: calc(100vw - 28px); }
.fw-wa.fw-alto { bottom: calc(var(--fw-base, 16px) + 76px); }          /* acima da barra fixa de compra da loja */
.fw-wa__btn { width: 56px; height: 56px; border-radius: 50%; background: #0e7a3d; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); border: 2px solid #fff; }
.fw-wa__btn:hover { background: #0b6232; }
.fw-wa__btn svg { width: 30px; height: 30px; fill: #fff; }
.fw-wa__btn:focus-visible, .fw-tab:focus-visible, .fw-d__x:focus-visible, .fw-go:focus-visible, .fw-dica a:focus-visible, .fw-dica__x:focus-visible, .fw-res a:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.fw-dica { position: relative; background: #fff; color: #1f2937; border: 1px solid #d1d5db; border-radius: 12px; padding: 12px 36px 12px 14px; font-size: 14px; line-height: 1.35; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); max-width: 260px; }
.fw-dica[hidden] { display: none; }
.fw-dica a { color: #0b6232; font-weight: 700; text-decoration: underline; }
.fw-dica__x { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; background: none; border: 0; font-size: 22px; line-height: 1; color: #4b5563; cursor: pointer; }

.fw-tab { position: fixed; left: 0; bottom: var(--fw-base, 16px); z-index: 2147482000; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 12px; background: #1f2937; color: #fff; border: 0; border-radius: 0 24px 24px 0; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); }
.fw-tab.fw-alto { bottom: calc(var(--fw-base, 16px) + 76px); }
.fw-tab:hover { background: #111827; }
.fw-tab.fw-mini { width: 48px; padding: 0; justify-content: center; border-radius: 0 24px 24px 0; }
.fw-tab.fw-mini span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.fw-tab svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.fw-ov { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 2147482500; }
.fw-ov[hidden], .fw-d[hidden] { display: none; }
.fw-d { position: fixed; left: 0; top: 0; bottom: 0; width: min(380px, 100vw); background: #fff; color: #1f2937; z-index: 2147482600; padding: 22px 18px; overflow-y: auto; box-shadow: 4px 0 24px rgba(0, 0, 0, .3); }
.fw-d h2 { margin: 0 0 6px; font-size: 20px; padding-right: 44px; }
.fw-d p { margin: 0 0 12px; font-size: 14px; color: #374151; }
.fw-d__x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; background: none; border: 0; font-size: 28px; line-height: 1; color: #374151; cursor: pointer; }
.fw-d label { display: block; margin: 12px 0 4px; font-size: 13px; font-weight: 600; }
.fw-d input { width: 100%; height: 48px; padding: 0 12px; border: 1px solid #9ca3af; border-radius: 8px; font: inherit; font-size: 16px; /* 16px: o iPhone não dá zoom ao tocar */ background: #fff; color: #1f2937; }
.fw-d input:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 1px; }
.fw-go { display: block; width: 100%; min-height: 48px; margin-top: 16px; background: #c2410c; color: #fff; border: 0; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.fw-go[aria-disabled="true"] { opacity: .65; cursor: progress; }
.fw-msg { min-height: 20px; margin: 10px 0 0; font-size: 14px; }
.fw-msg.err { color: #b42318; font-weight: 600; }
.fw-res { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.fw-res li { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; display: grid; gap: 4px; }
.fw-res small { color: #4b5563; font-size: 12px; }
.fw-res a { color: #c2410c; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.fw-pill { justify-self: start; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #e5e7eb; color: #1f2937; }
.fw-pill.ok { background: #dcfce7; color: #14532d; }
.fw-pill.warn { background: #fef3c7; color: #78350f; }
.fw-pill.bad { background: #fee2e2; color: #7f1d1d; }
@media (max-width: 420px) { .fw-tab span { font-size: 13px; } }
@media (prefers-reduced-motion: no-preference) { .fw-d { animation: fw-in .18s ease-out; } @keyframes fw-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } } }


/* Celular: aba "Rastrear pedido" só com o ícone (menos poluição); o texto segue para leitores de tela */
@media (max-width: 600px) {
  .fw-tab { width: 44px; padding: 0; justify-content: center; opacity: .92; }
  .fw-tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .fw-tab svg { width: 20px; height: 20px; }
}
