/* ── WhatsApp group slide-in ── */
.ev-wa {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9990;
    width: 340px;
    max-width: calc(100vw - 32px);
    padding: 22px 22px 16px;
    background: var(--ev-dark2, #16161F);
    border-top: 3px solid #25D366;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    color: #fff;
    font-family: var(--ev-font-ui, 'Inter', sans-serif);
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.ev-wa.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s ease, transform .3s ease;
}
.ev-wa-close {
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 4px 8px;
    background: none;
    border: 0;
    color: rgba(255,255,255,.45);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
.ev-wa-close:hover { color: #fff; }
.ev-wa-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding-right: 18px; }
.ev-wa-icon {
    flex: 0 0 40px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.ev-wa-title {
    font-family: var(--ev-font-ml, 'Noto Sans Malayalam', sans-serif);
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.45;
}
.ev-wa-text {
    margin: 0 0 16px;
    font-family: var(--ev-font-ml, 'Noto Sans Malayalam', sans-serif);
    font-size: .82rem;
    line-height: 1.6;
    color: rgba(255,255,255,.6);
}
.ev-wa-btn {
    display: block;
    padding: 11px 16px;
    background: #25D366;
    border-radius: 6px;
    color: #0F0F14 !important;
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease;
}
.ev-wa-btn:hover { background: #1fb955; }
.ev-wa-later {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 6px;
    background: none;
    border: 0;
    color: rgba(255,255,255,.4);
    font-size: .75rem;
    cursor: pointer;
}
.ev-wa-later:hover { color: rgba(255,255,255,.8); }

/* Phones: bottom sheet */
@media (max-width: 640px) {
    .ev-wa {
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-width: none;
        padding: 20px 18px calc(14px + env(safe-area-inset-bottom));
        border-radius: 14px 14px 0 0;
        transform: translateY(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ev-wa, .ev-wa.is-open { transition: none; }
}
