/**
 * WooCommerce AI Chat - Floating Widget Styles
 */

.wac-floating-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Floating button */
.wac-floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    z-index: 2;
}

.wac-floating-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}

.wac-floating-btn:active { transform: scale(0.96); }

/* Welcome bubble */
.wac-welcome-bubble {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    min-width: 180px;
    max-width: 260px;
    animation: wacBubbleIn 0.3s ease;
    white-space: nowrap;
}

.wac-welcome-bubble-content {
    font-size: 13px;
    line-height: 1.5;
    color: #444;
}

.wac-welcome-bubble-arrow {
    position: absolute;
    bottom: -6px;
    right: 22px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.08);
}

.wac-welcome-bubble.wac-hidden { display: none; }

@keyframes wacBubbleIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Popup */
.wac-floating-popup {
    position: absolute;
    bottom: 74px;
    right: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
    animation: wacPopupIn 0.28s ease;
    transform-origin: bottom right;
}

@keyframes wacPopupIn {
    from { opacity: 0; transform: scale(0.9) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.wac-floating-popup .wac-chat-container {
    border: none;
    border-radius: 0;
    box-shadow: none;
    height: 100%;
}

.wac-floating-popup .wac-chat-wrapper {
    height: 100%;
}

/* Mobile */
@media (max-width: 500px) {
    .wac-floating-widget {
        bottom: 0;
        right: 0;
        width: 100%;
    }

    .wac-floating-btn {
        position: absolute;
        bottom: 16px;
        right: 16px;
    }

    .wac-floating-popup {
        width: calc(100vw - 24px) !important;
        height: calc(100vh - 80px) !important;
        bottom: 70px !important;
        right: 12px !important;
    }

    .wac-welcome-bubble {
        right: 0;
    }
}
