#chatFloatingWindow {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: min(22rem, calc(100vw - 2rem));
    height: min(36rem, calc(100vh - 7rem));
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 35, 64, 0.22);
    z-index: 20999;
    display: none;
    min-width: 20rem;
    min-height: 18rem;
}

#chatFloatingWindow.chat-open {
    display: flex;
    flex-direction: column;
}

#chatFloatingHeader {
    background: linear-gradient(135deg, #0d5dab, #0a3f73);
    color: #fff;
    padding: 0.75rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: grab;
    user-select: none;
}

#chatFloatingHeader:active {
    cursor: grabbing;
}

#chatFloatingTitle {
    font-size: 0.95rem;
    font-weight: 600;
    flex: 1 1 auto;
}

#chatFloatingClose {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

#chatFloatingBody {
    flex: 1 1 auto;
    min-height: 0;
    background: #f3f6fa;
}

#chatFloatingFrame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

#chatFloatingPlaceholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #55708d;
    font-size: 0.95rem;
    padding: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    #chatFloatingWindow {
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        bottom: 0.75rem;
        height: min(34rem, calc(100vh - 6.5rem));
    }
}
