/* Stomil WhatsApp Widget */
.sww-widget {
    --sww-color: #25D366;
    --sww-color-dark: #128C7E;
    position: fixed;
    bottom: 20px;
    z-index: 99998;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sww-right { right: 20px; }
.sww-left { left: 20px; }

/* Bubble */
.sww-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--sww-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background 0.2s;
    animation: sww-pulse 2s infinite;
}

.sww-bubble:hover {
    transform: scale(1.08);
}

.sww-bubble.open {
    animation: none;
    background: #888;
}

.sww-bubble .sww-icon-close {
    display: none;
}

.sww-bubble.open .sww-icon-open {
    display: none;
}

.sww-bubble.open .sww-icon-close {
    display: block;
}

@keyframes sww-pulse {
    0% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Popup */
.sww-popup {
    position: absolute;
    bottom: 75px;
    width: 300px;
    background: var(--sww-color);
    color: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s;
}

.sww-right .sww-popup { right: 0; }
.sww-left .sww-popup { left: 0; }

.sww-popup.visible {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.sww-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.sww-close:hover {
    color: #fff;
}

.sww-popup-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 14px;
    padding-right: 20px;
}

.sww-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #333;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.sww-cta:hover {
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
}

.sww-cta-icon {
    display: inline-flex;
    align-items: center;
}

.sww-popup-footer {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.sww-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #7CFC00;
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 0 6px rgba(124, 252, 0, 0.8);
    vertical-align: middle;
}

.sww-popup-footer a {
    color: #fff;
    text-decoration: underline;
}

.sww-popup-footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* Mobile */
@media (max-width: 480px) {
    .sww-widget { bottom: 15px; }
    .sww-right { right: 15px; }
    .sww-left { left: 15px; }
    .sww-popup { width: calc(100vw - 30px); max-width: 320px; }
    .sww-bubble { width: 55px; height: 55px; }
}
