/* ==========================================================================
   Botão flutuante do WhatsApp com seletor de atendente (home + loja).
   Carregado depois de site.css / loja.css.
   ========================================================================== */
.wa-widget { position: fixed; right: 24px; bottom: 24px; z-index: 1040; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-widget .whatsapp-float {
    position: relative; right: auto; bottom: auto; width: 60px; height: 60px; border: 0; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; background: #25d366; color: #fff; font-size: 2rem; padding: 0;
    box-shadow: 0 14px 30px -8px rgba(37,211,102,.6); transition: transform .2s ease;
}
.wa-widget .whatsapp-float::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #25d366; opacity: .5; animation: wa-pulse 2s ease-out infinite; pointer-events: none; }
.wa-widget.open .whatsapp-float::after { animation: none; opacity: 0; }
.wa-widget .whatsapp-float:hover { transform: scale(1.08); }
.wa-badge { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: #0f1115; color: #fff; font-family: Inter, system-ui, sans-serif; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
@keyframes wa-pulse { 0% { transform: scale(.85); opacity: .6; } 100% { transform: scale(1.25); opacity: 0; } }

.wa-menu { width: 310px; max-width: calc(100vw - 32px); background: #fff; color: #1f2430; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -16px rgba(0,0,0,.45), 0 0 0 1px rgba(16,24,40,.06); font-family: Inter, system-ui, sans-serif; animation: wa-in .18s ease; }
@keyframes wa-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.wa-menu-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: #25d366; color: #fff; }
.wa-menu-head > i { font-size: 1.7rem; }
.wa-menu-head strong { display: block; font-size: .98rem; font-weight: 800; line-height: 1.2; }
.wa-menu-head span { font-size: .78rem; opacity: .9; }
.wa-close { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; }
.wa-close:hover { background: rgba(255,255,255,.32); }
.wa-list { padding: .5rem; display: grid; gap: .25rem; }
.wa-item { display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border-radius: 12px; color: inherit; text-decoration: none; transition: background .15s ease; }
.wa-item:hover { background: #f1f8f3; }
.wa-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #891319; color: #fff; font-weight: 800; font-size: 1rem; }
.wa-item:nth-child(2) .wa-avatar { background: #0f1115; }
.wa-item:nth-child(3) .wa-avatar { background: #25d366; }
.wa-item:nth-child(4) .wa-avatar { background: #a8171f; }
.wa-info { flex: 1; min-width: 0; line-height: 1.25; }
.wa-info strong { display: block; font-size: .92rem; font-weight: 700; color: #0f1115; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-info small { display: block; font-size: .78rem; color: #6b7280; }
.wa-item > i { color: #25d366; font-size: 1.1rem; opacity: .8; transition: transform .15s ease; }
.wa-item:hover > i { transform: translateX(3px); opacity: 1; }
.wa-menu-foot { display: flex; align-items: center; gap: .4rem; padding: .6rem 1rem .8rem; font-size: .74rem; color: #6b7280; border-top: 1px solid #eef0f3; }
.wa-menu-foot i { color: #25d366; }

@media (max-width: 768px) {
    .wa-widget { right: 16px; bottom: 16px; }
    .wa-widget .whatsapp-float { width: 54px; height: 54px; font-size: 1.8rem; }
}
