/* WhatsApp Floating Button Styles - Official Branding */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: none;
    outline: none;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: #25D366; /* Official WhatsApp green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none !important;
    outline: none !important;
    text-decoration: none;
    position: relative;
}

.whatsapp-button::before,
.whatsapp-button::after {
    display: none !important;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: #20BA5A; /* Slightly darker green on hover */
    border: none !important;
    outline: none !important;
}

.whatsapp-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none !important;
    outline: none !important;
}

.whatsapp-icon {
    width: 36px;
    height: 36px;
    filter: brightness(0) invert(1); /* Makes icon pure white */
    border: none !important;
    outline: none !important;
}

.whatsapp-icon path {
    border: none !important;
    outline: none !important;
}

/* WhatsApp label */
.whatsapp-label {
    background: #25D366; /* Official WhatsApp green */
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-label {
    opacity: 1;
    transform: translateY(0);
}

/* Hide any arrow or additional elements */
.whatsapp-float::before,
.whatsapp-float::after,
.whatsapp-button svg::before,
.whatsapp-button svg::after {
    display: none !important;
    content: none !important;
}

/* Remove any default link styling */
a.whatsapp-button {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

a.whatsapp-button:visited,
a.whatsapp-button:link,
a.whatsapp-button:hover,
a.whatsapp-button:active {
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #1e293b;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button {
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-icon {
        width: 32px;
        height: 32px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    .whatsapp-label {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .whatsapp-tooltip {
        background: #1e293b;
        color: white;
    }
    
    .whatsapp-tooltip::after {
        border-left-color: #1e293b;
    }
}

/* Accessibility */
.whatsapp-button:focus,
.whatsapp-button:focus-visible,
.whatsapp-button:focus-within {
    outline: none !important;
    border: none !important;
}

.whatsapp-button:focus:not(:focus-visible) {
    outline: none !important;
    border: none !important;
}

/* Remove all possible borders and outlines */
* .whatsapp-button,
* .whatsapp-icon,
* .whatsapp-float {
    border: none !important;
    outline: none !important;
}

/* Ensure WhatsApp button stays on top and has proper spacing */
.whatsapp-float {
    z-index: 9999 !important;
}

/* Ensure scroll-to-top button doesn't overlap */
.scroll-to-top {
    right: 110px !important;
    z-index: 998 !important;
    border: none !important;
    outline: none !important;
}

/* Remove any SVG borders */
svg.whatsapp-icon,
svg.whatsapp-icon * {
    border: none !important;
    outline: none !important;
    stroke: none;
}

/* Override any global link styles - Keep official WhatsApp green */
a[class*="whatsapp"] {
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

a[class*="whatsapp"]:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    outline: none !important;
}
