/**
 * Floating Contact Button Styles
 * Refactored Root Version
 */

.whatsapp-btn {
    position: fixed;
    bottom: var(--wa-bottom);
    width: var(--wa-size);
    height: var(--wa-size);
    background-color: #25D366; /* Default WhatsApp Green */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Internal Chat Page Mode - Brand/Custom Color */
.whatsapp-btn.is-chat-page {
    background-color: var(--wa-custom-color) !important;
}

/* Hover Effects */
.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Icon Sizing & Compatibility */
.whatsapp-btn svg {
    display: block;
    width: 60%;
    height: 60%;
    max-width: 60%;
    max-height: 60%;
}

/* Ensure line icons and fill icons work together */
.whatsapp-btn svg[fill="currentColor"] { fill: currentColor; stroke: none; }
.whatsapp-btn svg[stroke="currentColor"] { stroke: currentColor; fill: none; }

/* Fallback for generic paths */
.whatsapp-btn svg path {
    stroke-width: inherit;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .whatsapp-btn {
        width: 45px;
        height: 45px;
    }
}
