.iva-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    overflow: visible;
    cursor: pointer;
    animation: iva-slide-in 0.4s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.iva-container:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
}

.iva-container.iva-shape-circle {
    border-radius: 50%;
}

.iva-container.iva-shape-rectangle {
    border-radius: 12px;
}

.iva-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.iva-close {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(200, 16, 46, 0.85);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.iva-close:hover {
    background: rgba(180, 10, 35, 1);
    transform: scale(1.15);
}

.iva-unmute {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: background 0.2s ease;
    z-index: 2;
    padding: 0;
}

.iva-unmute:hover {
    background: rgba(0, 0, 0, 0.85);
}

.iva-unmute.iva-muted svg {
    opacity: 0.5;
}

.iva-container.iva-hiding {
    animation: iva-slide-out 0.3s ease-in forwards;
}

@keyframes iva-slide-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iva-slide-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .iva-container {
        bottom: 12px;
        right: 12px;
    }
    .iva-container.iva-shape-circle {
        width: 100px !important;
        height: 100px !important;
    }
    .iva-container.iva-shape-rectangle {
        width: 200px !important;
        height: 140px !important;
    }
}
