.openkbs-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.openkbs-chat-toggle:hover {
    transform: scale(1.1);
}

.chat-icon {
    font-size: 24px;
}

.openkbs-chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 450px;
    height: 600px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: none;
}

#openkbs-chat-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 10px 10px;
}

.chat-error {
    padding: 20px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    margin: 10px;
    text-align: center;
}

.openkbs-chat-toggle {
    position: relative;
    padding: 0;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: #0073aa;
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.chat-session-close {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #ff7c7c;
    border-radius: 50%;
    border: 2px solid white;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.chat-session-close:hover {
    background: #ff6b6b;
    transform: scale(1.1);
}

.chat-session-close.visible {
    opacity: 1;
    visibility: visible;
}

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.chat-session-close.visible {
    animation: popIn 0.3s ease forwards;
}

@media screen and (max-width: 768px) {
    .openkbs-chat-container {
        width: 100%;
        height: calc(100vh - 200px);
        bottom: 100px;
        right: 0;
        left: 0;
        border-radius: 0;
    }
}