@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

#chatbotBtn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    margin-left: -28px;
    width: 56px;
    height: 56px;
    line-height: 55px;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.45);
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: normal;
    font-size: 10px;
    padding: 0;
    color: transparent;
    text-transform: uppercase;
    transition: all 0.5s;
    z-index: 99990;
    text-wrap: nowrap;
    display: none;
    border: 1px solid rgba(255,255,255,0.08);
}

#chatbotBtn:hover, #chatbotBtn.chatbotOpened {
    margin-left: -95px;
    width: 190px;
    color: white;
    padding-left: 7px;
    padding-right: 56px;
    text-align: center;
}

#chatbotTextOpened, #chatbotTextThinking, #chatbotBtn.chatbotOpened #chatbotTextWaiting {
    display: none;
}

#chatbotBtn.chatbotOpened #chatbotTextOpened {
    display: block;
}

#chatbotBtn.chatbotThinking #chatbotTextThinking {
    display: block;
}

#chatbotBtn.chatbotThinking #chatbotTextOpened,
#chatbotBtn.chatbotThinking #chatbotTextWaiting {
    display: none !important;
}

#chatbotIcon {
    position: absolute;
    right: 3px;
    top: 3px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatbotIcon svg {
    width: 32px;
    height: 32px;
    animation: aciveSpin 4s linear infinite;
}

@keyframes aciveSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#chatbotPanel, #chatbotContactsPanel {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: min(450px, 96vw);
    max-width: calc(100% - 10px);
    height: 190px;
    z-index: 99991;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(0,0,0,0.55);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 10px;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: normal;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

#chatbotContactsPanel {
    background-color: rgba(255,255,255,0.08);
    bottom: 190px;
}

#chatbotDisclaimer, #chatbotContactsDisclaimer {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 11px;
    line-height: 13px;
    color: #aaaaaa;
}

#chatbotDisclaimer a, #chatbotContactsDisclaimer a, #reachus-privacy a {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 11px;
    color: #aaaaaa;
    text-decoration: underline;
}

#chatbotQuestion, #chatbotContactsQuestion {
    background-color: rgba(0,0,0,0.35);
    border-radius: 5px;
    width: 100%;
    height: 110px;
    color: white;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    border: none;
    resize: none;
    padding: 10px;
    box-sizing: border-box;
}

#chatbotQuestion:focus, #chatbotContactsQuestion:focus {
    outline: none !important;
    box-shadow: 0 0 0 1px rgba(125, 249, 255, 0.4);
}

#chatbotQuestion:disabled, #chatbotContactsQuestion:disabled {
    opacity: 0.5;
}

#chatbotQuestionWrapper, #chatbotContactsQuestionWrapper {
    position: relative;
}

#chatbotMessages {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    max-width: calc(100% - 10px);
    bottom: 250px;
    display: none;
    z-index: 99992;
}

#chatbotSingleMessage {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: min(400px, 92vw);
    max-width: calc(100% - 10px);
    bottom: 300px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 20px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    display: none;
    color: white;
    max-height: calc(100vh - 340px);
    overflow-y: auto;
    visibility: hidden;
    z-index: 99992;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

#chatbotSingleMessage .chatMsg a {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    line-height: 14px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    background-color: #7DF9FF;
    padding: 6px 12px;
    margin: 8px 4px 0 0;
    border-radius: 4px;
    transition: all 0.2s;
}

#chatbotSingleMessage .chatMsg a:hover {
    color: #7DF9FF;
    background-color: #000;
    border: 1px solid #7DF9FF;
}

.chatMsg.error {
    background: rgba(255, 60, 60, 0.2);
    padding: 8px;
    border-radius: 6px;
}

#chatbotSend, #chatbotContactsSend {
    position: absolute;
    right: 10px;
    bottom: -20px;
    font-size: 9px;
    line-height: 20px;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    color: #ccc;
    cursor: pointer;
}

#chatbotSend span, #chatbotContactsSend span {
    background: #7DF9FF;
    color: #000;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    padding: 2px 6px;
    margin: 0 4px;
    border-radius: 2px;
}

html.acive-no-scroll, html.acive-no-scroll body {
    overflow: hidden !important;
}

@media screen and (orientation: landscape) {
    #chatbotContactsPanel { bottom: max(190px, 30vh); }
    #chatbotContactsMessage { bottom: max(360px, calc(30vh + 170px)); }
}