/* Mingcha Voice Agent - Floating Widget Styles */

.mingcha-va-widget {
    position: fixed;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mingcha-va-bottom-right {
    bottom: 24px;
    right: 24px;
}

.mingcha-va-bottom-left {
    bottom: 24px;
    left: 24px;
}

/* Toggle button */
.mingcha-va-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
}

.mingcha-va-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

.mingcha-va-toggle:active {
    transform: scale(0.98);
}

.mingcha-va-icon {
    flex-shrink: 0;
}

.mingcha-va-hidden {
    display: none !important;
}

/* Popup container */
.mingcha-va-popup {
    position: absolute;
    bottom: 72px;
    width: 400px;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.mingcha-va-bottom-right .mingcha-va-popup {
    right: 0;
}

.mingcha-va-bottom-left .mingcha-va-popup {
    left: 0;
}

.mingcha-va-popup iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive: make popup full-screen on mobile */
@media (max-width: 480px) {
    .mingcha-va-popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .mingcha-va-label {
        display: none;
    }

    .mingcha-va-toggle {
        padding: 14px;
        border-radius: 50%;
    }
}
