/* Chat Bubble Styles */
#coo-chat-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px; /* Slightly larger */
    height: 65px;
    /* Gradient background */
    background: linear-gradient(45deg, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* Enhanced shadow */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 9998;
    transition: transform 0.2s ease-in-out;
    /* Pulse animation */
    animation: coo-pulse 2s infinite;
}

/* Notification dot */
#coo-chat-bubble::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background-color: #ff4d4d; /* Bright red */
    border-radius: 50%;
    border: 2px solid white;
}


#coo-chat-bubble:hover {
    transform: scale(1.1);
    animation-play-state: paused; /* Pause animation on hover */
}

#coo-chat-bubble svg {
    color: white;
    width: 32px;
    height: 32px;
}

/* Keyframes for the pulse animation */
@keyframes coo-pulse {
    0% {
        box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 0 0 rgba(29, 114, 204, 0.7);
    }
    70% {
        box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 0 15px rgba(29, 114, 204, 0);
    }
    100% {
        box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 0 0 rgba(29, 114, 204, 0);
    }
}

/* Chat Container Styles */
#coo-chat-container {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 370px;
    height: 70vh;
    max-height: 600px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform-origin: bottom right;
    transform: scale(0.5);
    opacity: 0;
}

#coo-chat-container:not(.coo-hidden) {
    transform: scale(1);
    opacity: 1;
}

#coo-chat-header {
    background-color: #0073aa;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: sans-serif;
    font-size: 16px;
}

#coo-chat-header #coo-close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

#coo-chat-iframe {
    flex-grow: 1;
    border: none;
    width: 100%;
    height: 100%;
}

.coo-hidden {
    display: none; /* Initially hide, JS will manage visibility */
}
