/* Launcher + fallback for the HaloPSA live chat (js/halo-chat.js).
 * The chat window itself is rendered by Halo inside its own iframe
 * (#halo-chat-frame) and styles itself; only the pre-load launcher and the
 * outage fallback live here. Both are self-contained in light AND dark
 * themes (site toggles :root[data-theme]). */

.chat-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--primary-600, #11786e);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    z-index: 999;
}

.chat-launcher:hover:not(:disabled) {
    background: var(--primary-500, #0a867d);
}

.chat-launcher:disabled {
    opacity: 0.7;
    cursor: wait;
}

:root[data-theme="dark"] .chat-launcher {
    background: var(--primary-400, #2ba38b);
    color: #06231f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] .chat-launcher:hover:not(:disabled) {
    background: var(--primary-300, #5fbba8);
}

.chat-fallback {
    position: fixed;
    bottom: 80px;
    right: 20px;
    max-width: 320px;
    padding: 14px 40px 14px 16px;
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    font-size: 0.95rem;
    z-index: 1000;
}

.chat-fallback a {
    color: var(--primary-600, #11786e);
    font-weight: 600;
}

:root[data-theme="dark"] .chat-fallback {
    background: #1f2a28;
    color: #e8e8e8;
    border-color: #3a4a47;
}

:root[data-theme="dark"] .chat-fallback a {
    color: var(--primary-300, #5fbba8);
}

.chat-fallback-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

.chat-fallback-close:hover {
    opacity: 1;
}
