/* Окно чата поддержки. Компьютер: окно справа внизу. Телефон (до 767 px): на весь экран.
   Разметка и классы: templates/base.html, поведение: static/js/support-chat.js. Открывает окно JS: style.display = 'flex'. */
.support-chat {
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 1055;
    flex-direction: column;
    overflow: hidden;
    width: 440px;
    max-width: calc(100vw - 32px);
    height: min(680px, calc(100vh - 110px));
    border-radius: 24px;
    background: var(--surface-solid);
    border: 1px solid var(--line-strong) !important;
    box-shadow: 0 25px 50px -12px var(--shadow-a50);
}
.support-chat-head h6 { font-size: 1.05rem; }
.support-chat-head .small { font-size: .8rem; }
.support-chat-hbtn { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.support-chat-chips .btn { font-size: .85rem; padding: 6px 12px; }
.support-chat-input { font-size: 1rem; min-height: 44px; }
.support-chat-round { width: 44px; height: 44px; }
.support-chat-consent { font-size: .8rem; }
.support-chat-consent .form-check-input { width: 1.25rem; height: 1.25rem; flex: none; }
.support-chat #chatMessagesScroll { font-size: 1rem; }

@media (max-width: 767.98px) {
    /* Чат на весь экран: плашка установки не должна лежать поверх поля ввода, страница под ним не прокручивается */
    body.chat-open .install-bar { display: none; }
    body.chat-open { overflow: hidden; }
    .support-chat {
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        border: 0 !important;
    }
    .support-chat-head { padding-top: calc(12px + env(safe-area-inset-top)) !important; }
    .support-chat-head h6 { font-size: 1.1rem; }
    .support-chat-hbtn { min-width: 48px; min-height: 48px; }
    .support-chat-chips .btn { font-size: .95rem; padding: 8px 14px; }
    .support-chat-input { min-height: 48px; }
    .support-chat-round { width: 48px; height: 48px; }
    .support-chat-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important; }
    .support-chat-consent { font-size: .85rem; }
}
