/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */

.cst-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
}

.cst-whatsapp__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.cst-whatsapp__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.cst-whatsapp__btn:focus-visible {
    outline: 3px solid var(--cst-color-focus, #3B82C4);
    outline-offset: 3px;
}

.cst-whatsapp__icon {
    flex-shrink: 0;
}

/* Tooltip */
.cst-whatsapp__tooltip {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 12px;
    background: #fff;
    color: #333;
    padding: 8px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cst-whatsapp__tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #fff;
}

.cst-whatsapp__btn:hover .cst-whatsapp__tooltip {
    opacity: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cst-whatsapp__btn:hover {
        transform: none;
    }
    .cst-whatsapp__tooltip {
        transition: none;
    }
}

/* Don't overlap with chatbot (bottom-left) */
@media (max-width: 480px) {
    .cst-whatsapp {
        bottom: 16px;
        right: 16px;
    }
    .cst-whatsapp__btn {
        width: 48px;
        height: 48px;
    }
    .cst-whatsapp__tooltip {
        display: none;
    }
}

/* Print: hide */
@media print {
    .cst-whatsapp {
        display: none !important;
    }
}
