/* Video Chat Library Styles - Self-contained, no global styles */

/* Initial Iframe Container Styles */
.initial-iframe-container {
    position: fixed;
    display: block;
    right: 10px;
    bottom: 10px;
    width: 365px;
    height: 100px;
    z-index: 1000;
    border-radius: 8px;

}

#initial-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 25px;
}

/* Chat Icon Styles - Keep for backward compatibility */
.chat-icon {
    position: fixed;
    display: flex;
    right: 10px;
    bottom: 10px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.avatar-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.avatar-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.avatar-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background-color: #00ff00;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 2;
}

.chat-bubble {
    position: absolute;
    right: 90px;
    bottom: 10px;
    background: white;
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #333;
    z-index: 999;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.bubble-tail {
    position: absolute;
    right: -8px;
    bottom: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* WebChat Container Styles */
.webchat-container {
    position: fixed;
    bottom: 60px;
    right: 10px;
    width: 450px;
    height: 544px;
    display: none;
    z-index: 1000;
    overflow: hidden;
    background-color: #fff;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Iframe Styles */
#chat-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 25px;
}

/* Mobile Responsive Styles - Only for actual mobile phones */
@media (max-width: 480px) {
    .initial-iframe-container {
        width: 365px;
        height: 100px;
        right: 10px;
        bottom: 10px;
    }
    
    .chat-icon {
        width: 70px;
        height: 70px;
        right: 10px;
        bottom: 10px;
    }
    
    .avatar-circle {
        width: 60px;
        height: 60px;
    }
    
    .chat-bubble {
        right: 75px;
        bottom: 8px;
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .webchat-container {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
    }
    
    #chat-iframe {
        border-radius: 0;
    }
}

/* iPad specific styles - ensure consistent behavior across browsers */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {
    .webchat-container {
        position: fixed;
        bottom: 60px;
        right: 10px;
        width: 450px;
        height: 544px;
        border-radius: 25px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    #chat-iframe {
        border-radius: 25px;
    }
}

/* Body Scroll Prevention - Only when chat is open */
body.chat-open {
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    overflow: hidden !important;
}

