/* WhatsApp Widget Styles */

/* WhatsApp Button */
.wa-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 70px;
    height: 70px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
}

.wa-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.wa-button i {
    color: #fff;
    font-size: 38px;
    transition: transform 0.3s ease;
}

/* Pulse Animation on Hover */
.wa-button:hover i {
    animation: wa-pulse 0.6s ease-in-out;
}

@keyframes wa-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Ripple Effect */
.wa-button::before,
.wa-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    animation: wa-ripple 2s infinite;
}

.wa-button::after {
    animation-delay: 1s;
}

@keyframes wa-ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Tooltip */
.wa-tooltip {
    position: fixed;
    bottom: 40px;
    left: 100px;
    background: #fff;
    color: #333;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    pointer-events: none;
}

.wa-tooltip::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
}

.wa-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(5px);
}

/* Modal */
.wa-modal {
    position: fixed;
    bottom: 110px;
    left: 20px;
    width: 360px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
}

.wa-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Modal Header */
.wa-modal-header {
    background: #f5f5f5;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.wa-modal-header .powered-by {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.wa-modal-header .powered-by img {
    height: 16px;
}

.wa-modal-header .header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.wa-modal-header .header-title i {
    color: #20BA5A;
    font-size: 18px;
}

.wa-modal-header .close-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
    border-radius: 50%;
}

.wa-modal-header .close-btn:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

/* Modal Body */
.wa-modal-body {
    padding: 24px;
    background: #fff;
}

/* Message Bubble */
.bubble {
    background: #f0f0f0;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
    position: relative;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    font-weight: 400;
}

.bubble::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 12px 0 0;
    border-color: #f0f0f0 transparent transparent transparent;
    transform: translateY(100%);
}

/* WhatsApp Link Button */
.wa-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.wa-link:hover {
    background: #20BA5A;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.wa-link i {
    font-size: 26px;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .wa-button {
        width: 64px;
        height: 64px;
        bottom: 15px;
        left: 15px;
    }

    .wa-button i {
        font-size: 34px;
    }

    .wa-tooltip {
        left: 88px;
        bottom: 35px;
        font-size: 14px;
        padding: 10px 14px;
    }

    .wa-modal {
        width: calc(100% - 30px);
        max-width: 360px;
        bottom: 92px;
        left: 15px;
    }

    .wa-modal-body {
        padding: 20px;
    }

    .bubble {
        font-size: 14px;
        padding: 14px 16px;
    }

    .wa-link {
        padding: 14px 20px;
        font-size: 16px;
    }

    .wa-modal-header .header-title {
        font-size: 13px;
    }

    .wa-modal-header .header-title i {
        font-size: 16px;
    }
}

