/* WhatsApp Floating Widget Frontend Stylesheet */

.waw-widget-container {
    position: fixed;
    bottom: 24px;
    z-index: 999999;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: wawFadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s forwards;
}

/* Positions */
.waw-position-bottom_right {
    right: 24px;
    flex-direction: row-reverse;
}

.waw-position-bottom_left {
    left: 24px;
    flex-direction: row;
}

/* Text Bubble */
.waw-text-bubble {
    background: #ffffff;
    color: #1c1e21;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.waw-position-bottom_right .waw-text-bubble {
    margin-right: 12px;
    transform-origin: right center;
}

.waw-position-bottom_left .waw-text-bubble {
    margin-left: 12px;
    transform-origin: left center;
}

/* WhatsApp Icon Circle */
.waw-icon-circle {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

/* SVG Icon alignment */
.waw-icon-circle svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

/* Hover States */
.waw-widget-container:hover {
    transform: translateY(-2px);
}

.waw-widget-container:hover .waw-icon-circle {
    transform: scale(1.08) rotate(8deg);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
}

.waw-widget-container:hover .waw-text-bubble {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    color: #075E54;
}

/* Attention pulse effect every 5 seconds */
.waw-pulse-active .waw-icon-circle {
    animation: wawPulse 3s ease-in-out infinite;
}

/* Keyframes */
@keyframes wawFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wawPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .waw-widget-container {
        bottom: 16px;
    }
    .waw-position-bottom_right {
        right: 16px;
    }
    .waw-position-bottom_left {
        left: 16px;
    }
    .waw-text-bubble {
        display: none; /* Hide text bubble on small mobile screens to save screen estate */
    }
    .waw-icon-circle {
        width: 48px;
        height: 48px;
    }
    .waw-icon-circle svg {
        width: 26px;
        height: 26px;
    }
}
