/* N.O. Channel Canti site guide */

#n-o-chatbot-root {
    position:fixed !important;
    inset:0 auto auto 0;
    width:0 !important;
    height:0 !important;
    z-index:99999 !important;
    font-family:"Courier New", monospace;
    pointer-events:none;
}

#n-o-chatbot-root > * {
    pointer-events:auto;
}

#n-o-chatbot-root .chatbot-toggle-container {
    position:fixed;
    right:20px;
    bottom:20px;
    transition:opacity .15s, transform .15s;
}

#n-o-chatbot-root .chatbot-toggle-container.hide-toggle {
    opacity:0;
    transform:scale(.7);
    pointer-events:none;
}

#n-o-chatbot-root #chatbot-toggle {
    width:64px;
    height:64px;
    padding:0;
    overflow:hidden;
    border:3px solid #ff5a00;
    border-radius:50%;
    background:#020202;
    cursor:pointer;
    box-shadow:0 0 0 3px #020202, 0 0 18px #ff5a00;
}

#n-o-chatbot-root #chatbot-toggle-icon {
    display:block;
    width:100%;
    height:100%;
    border-radius:50%;
    object-fit:cover;
}

#n-o-chatbot-root #chat-window {
    display:none;
    position:fixed;
    right:20px;
    bottom:20px;
    width:min(390px, calc(100vw - 30px));
    height:min(620px, calc(100dvh - 30px));
    grid-template-rows:auto auto minmax(0, 1fr) auto;
    overflow:hidden;
    border:2px solid #ff5a00;
    border-radius:24px;
    background:#020202;
    color:#ddd;
    box-shadow:0 0 32px rgba(255,90,0,.55), inset 0 0 20px rgba(255,90,0,.08);
}

#n-o-chatbot-root #chat-window.show {
    display:grid;
}

#n-o-chatbot-root .chat-header {
    position:relative;
    display:grid;
    grid-template-columns:auto minmax(0, 1fr) auto auto;
    align-items:center;
    gap:10px;
    min-height:58px;
    padding:10px;
    border-bottom:1px solid #ff5a00;
    background:#080402;
}

#n-o-chatbot-root .chatbot-avatar {
    width:44px;
    height:44px;
    border:1px solid #ff5a00;
    border-radius:50%;
    object-fit:cover;
}

#n-o-chatbot-root .chat-header-title {
    margin:0;
    color:#ff5a00;
    font-size:13px;
    letter-spacing:1px;
}

#n-o-chatbot-root #chat-status {
    margin:3px 0 0;
    color:#00ff66;
    font-size:9px;
}

#n-o-chatbot-root #chat-tts-toggle,
#n-o-chatbot-root .chat-close-btn,
#n-o-chatbot-root .chat-quick-actions button,
#n-o-chatbot-root #send-message {
    border:1px solid #ff5a00;
    background:#020202;
    color:#ff5a00;
    font:inherit;
    cursor:pointer;
}

#n-o-chatbot-root #chat-tts-toggle {
    padding:6px;
    font-size:9px;
}

#n-o-chatbot-root .chat-close-btn {
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    padding:0;
    border-radius:50%;
    font-size:24px;
}

#n-o-chatbot-root .chat-quick-actions {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    justify-content:center;
    padding:9px;
    border-bottom:1px dashed #6f2a04;
}

#n-o-chatbot-root .chat-quick-actions button {
    padding:6px 8px;
    font-size:9px;
}

#n-o-chatbot-root #chat-messages {
    display:flex;
    flex-direction:column;
    gap:10px;
    min-height:0;
    padding:14px;
    overflow-y:auto;
    overscroll-behavior:contain;
}

#n-o-chatbot-root .chat-message-wrapper {
    display:grid;
    gap:6px;
    max-width:88%;
}

#n-o-chatbot-root .message-left {
    align-self:flex-start;
}

#n-o-chatbot-root .message-right {
    align-self:flex-end;
}

#n-o-chatbot-root .chat-message {
    padding:10px 12px;
    border-radius:16px;
    line-height:1.45;
    overflow-wrap:anywhere;
    white-space:pre-wrap;
}

#n-o-chatbot-root .bg-bot-bubble {
    border:1px solid #ff5a00;
    border-bottom-left-radius:3px;
    background:#0b0502;
    color:#ddd;
}

#n-o-chatbot-root .bg-user-bubble {
    border:1px solid #82401a;
    border-bottom-right-radius:3px;
    background:#ff5a00;
    color:#020202;
}

#n-o-chatbot-root .chat-response-links {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

#n-o-chatbot-root .chat-response-links a {
    padding:6px 8px;
    border:1px solid #ff5a00;
    color:#ff5a00;
    font-size:10px;
    text-decoration:none;
}

#n-o-chatbot-root .chat-footer {
    padding:10px;
    border-top:1px solid #ff5a00;
    background:#060301;
}

#n-o-chatbot-root .input-group {
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:8px;
}

#n-o-chatbot-root #chat-input {
    width:100%;
    box-sizing:border-box;
    min-height:56px;
    max-height:130px;
    padding:10px;
    resize:vertical;
    border:1px solid #ff5a00;
    background:#020202;
    color:#fff;
    font:inherit;
    text-align:left;
}

#n-o-chatbot-root #send-message {
    padding:8px 12px;
}

#n-o-chatbot-root button:hover,
#n-o-chatbot-root button:focus-visible,
#n-o-chatbot-root a:focus-visible {
    background:#ff5a00;
    color:#020202;
    outline:2px solid #fff;
    outline-offset:2px;
}

#n-o-chatbot-root button:disabled {
    opacity:.45;
    cursor:wait;
}

#n-o-chatbot-root .chat-meta-info {
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-top:6px;
    color:#777;
    font-size:8px;
}

@media (max-width:480px) {
    #n-o-chatbot-root #chat-window {
        right:6px;
        bottom:6px;
        width:calc(100vw - 12px);
        height:calc(100dvh - 12px);
        border-radius:18px;
    }

    #n-o-chatbot-root .chat-header {
        grid-template-columns:auto minmax(0, 1fr) auto;
    }

    #n-o-chatbot-root #chat-tts-toggle {
        grid-column:2;
        justify-self:start;
    }

    #n-o-chatbot-root .chat-close-btn {
        grid-column:3;
        grid-row:1 / 3;
    }
}
