/* ============================================
   WHATSAPP WIDGET - From index.html
============================================ */
.vuvita-wa-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

/* Widget fade in animation */
@keyframes vuvita-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main WhatsApp Button */
.vuvita-wa-button {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c9a227 0%, #f4d03f 50%, #c9a227 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(201, 162, 39, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.vuvita-wa-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(201, 162, 39, 0.5);
}

.vuvita-wa-button svg {
    width: 32px;
    height: 32px;
    fill: #0a1628;
    transition: all 0.2s ease;
}

.vuvita-wa-button.active svg.wa-icon {
    display: none;
}

.vuvita-wa-button svg.close-icon {
    display: none;
}

.vuvita-wa-button.active svg.close-icon {
    display: block;
}

/* Pulse Animation */
.vuvita-wa-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #c9a227;
    animation: vuvita-waPulse 2s infinite;
    z-index: -1;
}

@keyframes vuvita-waPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

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

/* Chat Box */
.vuvita-wa-chatbox {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Fix overflow */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.vuvita-wa-chatbox.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.vuvita-wa-header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.vuvita-wa-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L0 20h40L20 0z' fill='white' fill-opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.vuvita-wa-header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.vuvita-wa-header-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.vuvita-wa-header-content {
    flex: 1;
}

.vuvita-wa-header-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    margin: 0 0 3px 0;
}

.vuvita-wa-header-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0;
}

.vuvita-wa-header-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.vuvita-wa-header-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.vuvita-wa-header-close svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* Messages */
.vuvita-wa-messages {
    padding: 20px;
    background: #ECE5DD;
}

.vuvita-wa-message {
    background: #fff;
    padding: 15px;
    border-radius: 0 15px 15px 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.vuvita-wa-message-text {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.vuvita-wa-message-text .emoji {
    font-size: 18px;
    margin-right: 5px;
}

.vuvita-wa-response-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #128C7E;
    font-size: 12px;
    font-weight: 500;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.vuvita-wa-response-time svg {
    width: 16px;
    height: 16px;
    fill: #128C7E;
}

/* Options */
.vuvita-wa-options {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8f8f8;
}

.vuvita-wa-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.vuvita-wa-option:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #128C7E;
}

.vuvita-wa-option-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #c9a227, #f4d03f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vuvita-wa-option-icon svg {
    width: 22px;
    height: 22px;
    fill: #0a1628;
}

.vuvita-wa-option-content {
    flex: 1;
}

.vuvita-wa-option-title {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    margin-bottom: 2px;
}

.vuvita-wa-option-subtitle {
    color: #777;
    font-size: 12px;
}

.vuvita-wa-option-status {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #25D366;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
}

.vuvita-wa-option-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #25D366;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.vuvita-wa-option-arrow {
    opacity: 0.3;
    transition: all 0.3s ease;
}

.vuvita-wa-option:hover .vuvita-wa-option-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.vuvita-wa-option-arrow svg {
    width: 20px;
    height: 20px;
    fill: #128C7E;
}

/* Footer */
.vuvita-wa-footer {
    padding: 15px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.vuvita-wa-footer-text {
    color: #999;
    font-size: 11px;
    margin: 0;
}

.vuvita-wa-footer-text a {
    color: #c9a227;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 480px) {
    .vuvita-wa-widget {
        bottom: 20px;
        right: 20px;
    }

    .vuvita-wa-button {
        width: 55px;
        height: 55px;
    }

    .vuvita-wa-button svg {
        width: 28px;
        height: 28px;
    }

    .vuvita-wa-chatbox {
        width: calc(100vw - 40px);
        right: 0;
    }
}