.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
}

.chat-box.show {
    transform: scale(1);
    opacity: 1;
}

.chat-header {
    background: #25d366;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.chat-header .close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.chat-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wa-icon-header {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-content {
    padding: 20px;
}

.agent-info {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agent-info:hover {
    background: #f8f9fa;
    border-color: #25d366;
}

.agent-avatar {
    background: #25d366;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

.agent-details h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.agent-details p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.online-status {
    color: #25d366;
    font-weight: 500;
}

.floating-btn {
    background: #25d366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    border: none;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn.active {
    background: #128c7e;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }

    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

.message-bubble {
    position: absolute;
    bottom: 70px;
    right: -10px;
    background: white;
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    color: #333;
    width: 200px;
    transform: scale(0);
    transform-origin: bottom right;
    transition: all 0.3s ease;
    opacity: 1;
}

.message-bubble.show {
    transform: scale(1);
    opacity: 1;
}

.message-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

@media (max-width: 480px) {
    .chat-box {
        width: 320px;
        right: -10px;
    }

    .whatsapp-widget {
        right: 15px;
        bottom: 15px;
    }
}


.contact-phone-container {
    position: fixed;
    left: 15px;
    bottom: 30px;
    display: inline-block;
}

.contact-phone-container .contact-button {
    background: #ff3333;
    border: none;
    border-radius: 50px;
    padding: 5px 25px 5px 5px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
    position: relative;
    z-index: 2;
    padding-left: 70px;
}

.contact-phone-container .contact-button:hover {
    background: #e60000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.4);
}

.contact-phone-container .phone-circle {
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: #ff3333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
    border: 3px solid #ff3333;
}

.contact-phone-container .phone-icon {
    width: 28px;
    height: 28px;
    fill: white;
}

/* تأثير الموجات حول الدائرة فقط */
.contact-phone-container .ripple {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 1;
}

.contact-phone-container .ripple::before,
.contact-phone-container .ripple::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 51, 51, 0.6);
    border-radius: 50%;
    animation: ripple_2 2s infinite;
}

.contact-phone-container .ripple::after {
    animation-delay: 0.5s;
}

@keyframes ripple_2 {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* موجات إضافية للتأثير المتقدم */
.contact-phone-container .wave {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 1;
}

.contact-phone-container .wave::before,
.contact-phone-container .wave::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: wave_2 3s infinite ease-out;
}

.contact-phone-container .wave::after {
    animation-delay: 1s;
}

@keyframes wave_2 {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* تأثير النبض للزر نفسه */
.contact-phone-container .contact-button::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(255, 51, 51, 0.3);
    border-radius: 50px;
    z-index: -1;
    animation: pulse_2 2s infinite;
}

@keyframes pulse_2 {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* تأثيرات إضافية عند التمرير */
.contact-phone-container .contact-button-container:hover .contact-phone-container .ripple::before,
.contact-phone-container .contact-button-container:hover .contact-phone-container .ripple::after {
    animation-duration: 1s;
}

.contact-phone-container .contact-button-container:hover .contact-phone-container .wave::before,
.contact-phone-container .contact-button-container:hover .contact-phone-container .wave::after {
    animation-duration: 1.5s;
}