/* APIOS WhatsApp. Herda a fonte do site; posição e cor vêm das configurações (--apw-cor, lado, distância). */
.apw { position: fixed; z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; line-height: 1.4; }
.apw[hidden] { display: none !important; }
.apw * { box-sizing: border-box; }
.apw .apw-bt { display: inline-flex; align-items: center; gap: 10px; height: 54px; margin: 0; padding: 0 20px 0 14px; border: 0; border-radius: 99px !important; background: var(--apw-cor); color: #fff; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .01em; text-transform: none; cursor: pointer;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .12), 0 8px 20px -6px color-mix(in srgb, var(--apw-cor) 55%, transparent), 0 18px 36px -14px rgba(16, 24, 40, .3);
	transform: translateY(14px) scale(.96); opacity: 0; transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s, box-shadow .25s, filter .2s; }
.apw.apw-pronto .apw-bt { transform: none; opacity: 1; }
.apw .apw-bt:hover { filter: brightness(1.05); transform: translateY(-2px); }
.apw .apw-bt:active { transform: translateY(0) scale(.97); }
.apw .apw-bt:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px color-mix(in srgb, var(--apw-cor) 60%, transparent); }
.apw .apw-bt svg { width: 28px; height: 28px; fill: currentColor; flex: 0 0 auto; }
/* pulso discreto, só uma vez por página, para chamar atenção sem incomodar */
.apw .apw-bt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 color-mix(in srgb, var(--apw-cor) 45%, transparent); animation: apw-pulso 2.2s ease-out 1.2s 2; pointer-events: none; }
.apw .apw-bt { position: relative; }
@keyframes apw-pulso { to { box-shadow: 0 0 0 16px transparent; } }
/* fora do horário: ponto cinza no botão */
.apw.apw-fechado .apw-bt::after { content: ""; position: absolute; top: 6px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: #a7aeb6; box-shadow: 0 0 0 2px var(--apw-cor); }
/* painel de setores */
.apw-painel { position: absolute; bottom: 66px; width: min(340px, calc(100vw - 32px)); background: #fff; color: #1c2630; border-radius: 16px; overflow: hidden; text-align: left;
	box-shadow: 0 0 0 1px rgba(16, 24, 40, .08), 0 12px 32px -8px rgba(16, 24, 40, .25), 0 28px 60px -20px rgba(16, 24, 40, .3); transform-origin: bottom right; animation: apw-abre .28s cubic-bezier(.22, 1, .36, 1); }
.apw-painel[hidden] { display: none; }
@keyframes apw-abre { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.apw-cab { position: relative; padding: 16px 44px 14px 18px; background: var(--apw-cor); color: #fff; }
.apw-cab b { display: block; font-size: 16px; font-weight: 700; }
.apw-cab span { display: block; margin-top: 2px; font-size: 13px; opacity: .92; }
.apw .apw-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 8px !important; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: none; min-height: 0; }
.apw .apw-x:hover { background: rgba(255, 255, 255, .16); }
.apw-painel ul { list-style: none; margin: 0; padding: 6px; }
.apw-painel li { margin: 0; }
.apw-painel a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; }
.apw-painel a:hover, .apw-painel a:focus-visible { background: #f3f5f7; outline: none; }
.apw-av { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--apw-cor) 14%, #fff); color: var(--apw-cor); font-weight: 800; }
.apw-av i { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #a7aeb6; box-shadow: 0 0 0 2px #fff; }
.apw-av i.on { background: #22c55e; }
.apw-tx2 { flex: 1 1 auto; min-width: 0; } .apw-tx2 b { display: block; font-size: 14.5px; } .apw-tx2 small { display: block; font-size: 12.5px; color: #5b6570; }
.apw-painel a svg { width: 18px; height: 18px; fill: none; stroke: #a7aeb6; stroke-width: 2; flex: 0 0 auto; }
/* celular: só o ícone, redondo */
@media (max-width: 640px) {
	.apw.apw-cel-icone .apw-bt { width: 56px; height: 56px; padding: 0; justify-content: center; }
	.apw.apw-cel-icone .apw-tx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media print { .apw { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .apw .apw-bt, .apw-painel { transition: none; animation: none; transform: none; opacity: 1; } .apw .apw-bt::before { animation: none; } }
