/* Floating WhatsApp click-to-chat button */

.whatsapp-chat {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.whatsapp-chat__icon {
    position: relative;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    transition: transform .2s ease, box-shadow .2s ease;
    order: 2;
}

.whatsapp-chat__icon svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    display: block;
}

.whatsapp-chat:hover .whatsapp-chat__icon,
.whatsapp-chat:focus .whatsapp-chat__icon {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .32);
}

.whatsapp-chat:focus-visible .whatsapp-chat__icon {
    outline: 3px solid #0b5c2e;
    outline-offset: 3px;
}

.whatsapp-chat__label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    background: #ffffff;
    color: #1f2d28;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    border-radius: 22px 0 0 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    order: 1;
    transition: max-width .25s ease, padding .25s ease;
}

.whatsapp-chat:hover .whatsapp-chat__label,
.whatsapp-chat:focus .whatsapp-chat__label {
    max-width: 200px;
    padding: 14px 16px 14px 20px;
}

.whatsapp-chat::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 6px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: whatsapp-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes whatsapp-pulse {
    0%   { transform: scale(1);    opacity: .7; }
    70%  { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}

@media (max-width: 575px) {
    .whatsapp-chat {
        right: 14px;
        bottom: 14px;
    }
    .whatsapp-chat__icon {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
    }
    .whatsapp-chat__icon svg {
        width: 28px;
        height: 28px;
    }
    .whatsapp-chat:hover .whatsapp-chat__label,
    .whatsapp-chat:focus .whatsapp-chat__label {
        max-width: 0;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-chat::after {
        animation: none;
        display: none;
    }
    .whatsapp-chat__icon,
    .whatsapp-chat__label {
        transition: none;
    }
}
