/* ============================================
   WHATSAPP PREMIUM WIDGET — Comercio Vending
   ============================================ */

:root {
    --wa-green: #25D366;
    --wa-dark: #128C7E;
    --wa-light: #DCF8C6;
    --gold: #c5a059;
}

.wa-premium-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'Outfit', sans-serif;
}

/* Tooltip / Card */
.wa-premium-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 280px;
    margin-bottom: 15px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(197,160,89,0.2);
}

.wa-premium-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.wa-card-header {
    background: var(--wa-dark);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-avatar-container {
    position: relative;
    width: 45px;
    height: 45px;
}

.wa-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.wa-online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border: 2px solid var(--wa-dark);
    border-radius: 50%;
}

.wa-header-text b {
    display: block;
    font-size: 1rem;
}

.wa-header-text span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.wa-card-body {
    padding: 15px;
    background: #f0f2f5;
    position: relative;
}

.wa-bubble {
    background: white;
    padding: 10px 14px;
    border-radius: 0 12px 12px 12px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wa-bubble:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 10px;
    border-width: 0 10px 10px 0;
    border-style: solid;
    border-color: transparent white transparent transparent;
}

/* Base Button */
.wa-main-btn {
    width: 65px;
    height: 65px;
    background: var(--wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.wa-main-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.wa-main-btn svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Badge Notif */
.wa-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff3b30;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: wa-pulse 2s infinite;
}

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

/* Close Button in Card */
.wa-close-card {
    position: absolute;
    top: 5px;
    right: 10px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.wa-close-card:hover { opacity: 1; }

@media (max-width: 768px) {
    .wa-premium-container {
        bottom: 20px;
        left: 20px;
        right: auto;
    }
}
