/* WhatsApp Floating Button */
.df-whatsapp-button {
    position: fixed;
    bottom: 30px;
    z-index: 9;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.df-whatsapp-button.bottom-left {
    left: 30px;
}

.df-whatsapp-button.bottom-right {
    right: 30px;
}

.df-whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.df-whatsapp-button svg {
    position: relative;
    z-index: 2;
}

.df-whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* WhatsApp Popup */
.df-whatsapp-popup {
    position: fixed;
    z-index: 9999999;
    pointer-events: none;
}

.df-whatsapp-popup.df-position-left {
    bottom: 100px;
    left: 30px;
}

.df-whatsapp-popup.df-position-right {
    bottom: 100px;
    right: 30px;
}

.df-whatsapp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: none;
    animation: fadeIn 0.3s ease;
    pointer-events: auto;
}

.df-whatsapp-popup-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 380px;
    width: 380px;
    max-height: 600px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    pointer-events: auto;
}

.df-whatsapp-popup-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.df-whatsapp-popup.df-position-right .df-whatsapp-popup-content::after {
    left: auto;
    right: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.df-whatsapp-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.df-whatsapp-header h3 {
    color: #ffffff;
    margin: 0;
    font-weight: 600;
}

.df-whatsapp-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.2s ease;
}

.df-whatsapp-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Body */
.df-whatsapp-body {
    padding: 24px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

/* Office Item */
.df-whatsapp-office {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.df-whatsapp-office:last-child {
    margin-bottom: 0;
}

.df-whatsapp-office:hover {
    border-color: #25D366;
    background: #f0fdf4;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.df-whatsapp-office-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.df-whatsapp-office-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #f3f4f6;
}

.df-whatsapp-office-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.df-whatsapp-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.df-whatsapp-office-info {
    flex: 1;
}

.df-whatsapp-office-info h4 {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: #111827;
}

.df-whatsapp-office-info p {
    margin: 0;
    color: #6b7280;
}

/* Tablet Responsive */
@media (max-width: 768px) {
    .df-whatsapp-popup-content {
        max-width: 360px;
        width: 360px;
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .df-whatsapp-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
    }
    
    .df-whatsapp-button.bottom-left {
        left: 20px;
    }
    
    .df-whatsapp-button.bottom-right {
        right: 20px;
    }
    
    .df-whatsapp-popup.df-position-left {
        bottom: 86px;
        left: 20px;
    }
    
    .df-whatsapp-popup.df-position-right {
        bottom: 86px;
        right: 20px;
    }
    
    .df-whatsapp-popup-content {
        max-width: calc(100vw - 40px);
        width: calc(100vw - 40px);
        max-height: calc(100vh - 120px);
        border-radius: 12px;
    }
    
    .df-whatsapp-popup-content::after {
        display: none;
    }
    
    .df-whatsapp-header {
        padding: 16px 20px;
    }
    
    .df-whatsapp-body {
        padding: 16px;
    }
    
    .df-whatsapp-office {
        padding: 12px;
    }
    
    .df-whatsapp-office-avatar {
        width: 50px;
        height: 50px;
    }
    
    .df-whatsapp-icon {
        width: 20px;
        height: 20px;
    }
}

/* Scrollbar styling */
.df-whatsapp-body::-webkit-scrollbar {
    width: 6px;
}

.df-whatsapp-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.df-whatsapp-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.df-whatsapp-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
