/* Desktop: fixed contact link. Mobile: fifth item in the existing bottom nav. */
.whatsapp-launcher--floating {
    position: fixed;
    z-index: 1150;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    box-sizing: border-box;
    border: 1px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #25d366;
    box-shadow: 0 3px 12px #0003;
    text-decoration: none;
}

.whatsapp-launcher--floating svg {
    width: 32px;
    height: 32px;
}

.whatsapp-launcher--floating > span {
    display: none;
}

.whatsapp-launcher--floating:hover {
    background: #1ebc59;
    color: #fff;
}

.whatsapp-launcher:focus-visible {
    outline: 3px solid #16853e;
    outline-offset: 3px;
}

.mobile-bottom-nav.whatsapp-nav-active {
    grid-template-columns: repeat(var(--whatsapp-nav-columns, 5), minmax(0, 1fr));
}

.mobile-bottom-nav.whatsapp-nav-active .nav-btn {
    min-height: 52px;
    justify-content: center;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
}

.mobile-bottom-nav.whatsapp-nav-active .nav-btn > span:last-child {
    white-space: nowrap;
}

.mobile-bottom-nav .whatsapp-launcher {
    color: #fff;
}

.mobile-bottom-nav .whatsapp-launcher svg {
    width: 26px;
    height: 26px;
    color: #25d366;
}

@media (max-width: 400px) {
    html[lang='kk'] .mobile-bottom-nav.whatsapp-nav-active {
        /* Keep the long favorites label readable without reducing font size. */
        grid-template-columns: minmax(44px, .8fr) minmax(44px, .8fr) minmax(69px, 1.3fr) minmax(44px, .95fr) minmax(50px, 1fr);
    }
}

.whatsapp-launcher.whatsapp-launcher--hidden {
    visibility: hidden;
    pointer-events: none;
}
