/* Header dropdown host */
.chat-header-dropdown {
    min-width: 420px;
    max-width: 600px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.chat-header-dropdown-inner {
    padding: 0;
}

.chat-container-header .chat-widget {
    margin: 0; /* remove your inline margins inside dropdown */
    max-width: none;
}

/* Overlay host */
.chat-overlay-root {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
}

.chat-overlay-fab {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    border: 0;
    cursor: pointer;
}

.chat-overlay-panel {
    position: absolute;
    right: 0;
    bottom: 60px;
    width: 420px;
    max-width: 80vw;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.chat-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.chat-container-overlay .chat-widget {
    margin: 0;
    max-width: none;
}

/* Header chat rendered inside Kendo Window */
.chat-container-header-window .chat-widget {
    margin: 0;
    max-width: none;
}

.global-chat-header-window {
    padding: 0;
}

.global-chat-header-window.k-window {
    position: fixed !important;
}



/* ------------ global chat styles ------------ */
.global-chat-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid #FFF;
    color: inherit;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    height: 65px;
    margin-right: 5px;
}

.global-chat-header-window .k-window-content {
    padding: 0;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}

.global-chat-header-btn i {
    font-size: 2.5em;
}

/* Hover */
.global-chat-header-btn:hover {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Active */
.global-chat-header-btn:active {
    background-color: rgba(0, 0, 0, 0.08);
}

/* Focus (keyboard accessibility) */
.global-chat-header-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.4);
}


/* Make chat fill the Kendo Window (header host only) */
.chat-container-header-window .chat-widget {
    margin: 0; /* removes the 20px margin */
    max-width: none; /* removes the 600px cap */
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.chat-container-header-window .chat-messages {
    height: 355px;
}

/* hide text on small headers */
@media (max-width: 900px) {
    .global-chat-header-btn-text {
        display: none;
    }
}

/*-------------- end of global chat styles ----------- */