/* Lightweight overlay to pick a WhatsApp channel */
.g4-whatsapp-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 14, 23, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 998;
}

.g4-whatsapp-menu {
    position: fixed;
    top: 140px;
    right: 50%;
    transform: translateX(50%) translateY(-12px);
    width: min(360px, calc(100% - 56px));
    padding: 24px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 20px 40px rgba(11, 18, 36, 0.18),
        0 2px 8px rgba(11, 18, 36, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
}

.g4-whatsapp-backdrop.is-visible,
.g4-whatsapp-menu.is-visible {
    opacity: 1;
    visibility: visible;
}

.g4-whatsapp-menu.is-visible {
    transform: translateX(50%) translateY(0);
}

.g4-whatsapp-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.g4-whatsapp-menu__title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
}

.g4-whatsapp-menu__subtitle {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #64748b;
}

.g4-whatsapp-menu__close {
    appearance: none;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.g4-whatsapp-menu__close:hover,
.g4-whatsapp-menu__close:focus-visible {
    color: #111827;
    outline: none;
}

.g4-whatsapp-menu__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.g4-whatsapp-menu__option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f8fafc;
    text-decoration: none;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    color: #0f172a;
    border: 1px solid transparent;
}

.g4-whatsapp-menu__option:hover,
.g4-whatsapp-menu__option:focus-visible {
    background: #eef2ff;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.18);
    border-color: rgba(99, 102, 241, 0.45);
    transform: translateY(-2px);
    outline: none;
}

.g4-whatsapp-menu__option-label {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
}

.g4-whatsapp-menu__option-phone {
    margin-top: 6px;
    font-size: 13px;
    color: #475569;
}

@media (max-width: 767px) {
    .g4-whatsapp-menu {
        right: 16px;
        left: 16px;
        top: 100px;
        width: auto;
        transform: none;
        padding: 20px;
        border-radius: 18px;
    }

    .g4-whatsapp-menu.is-visible {
        transform: translateY(0);
    }
}
