/**
 * WhatsApp Button
 */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: var(--z-dropdown);
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-full);
    background-color: #25D366;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-button .material-symbols-outlined {
    font-size: 32px;
    color: white;
}

.whatsapp-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.whatsapp-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-popup-header {
    background-color: #25D366;
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.whatsapp-logo {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.whatsapp-popup-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.whatsapp-popup-header p {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.9;
}

.whatsapp-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-full);
    transition: background-color var(--transition-normal);
}

.whatsapp-popup-close:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.whatsapp-popup-body {
    padding: 1.5rem;
}

.whatsapp-popup-body p {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.whatsapp-popup-button {
    display: block;
    width: 100%;
    background-color: #25D366;
    color: white;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.whatsapp-popup-button:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
