

body.pageRoom {
    /* Шрифты вебинарной комнаты */
    --font-family: "Montserrat", sans-serif;

    /* Новоый цвет страницы */
    --pageBackgroundColor: #fff;

    /* Фоновое изображение страницы */
    --pageBackgroundImage: url(https://fs22.getcourse.ru/fileservice/file/download/a/586882/sc/285/h/d99a705dfc6b99ec189d97f690f7fa57.png) no-repeat top right fixed;

    /* Фон страницы в мобильной версии */
    --pageMobileBackgroundColor: rgba(234,237,236,0.39);
    
    /* Цвет элемента в заголовке */
    --pageTitleElementBackgroundColor: #16B0A3;

    /* Цвет заголовка страницы */
    --pageTitleTextColor: #104256;

    /* Фон чата вебинарной комнаты */
    --chatBackgroundColor: #fff;

    /* Цвет границы чата вебинарной комнаты */
    --chatBorderColor: #E2E2E2;

    /* Заголовок чата вебинарной комнаты */
    --chatTitleText: "Чат вебинара";
    
    /* Цвет фона заголовка чата вебинарной комнаты */
    --chatTitleBackgroundColor: #16B0A3;

    /* Цвет заголовка чата вебинарной комнаты */
    --chatTitleTextColor: #fff;

    /* Цвет скроллбара чата */
    --chatScrollBarBackgroundColor: #f1f1f1;

    /* Цвет части скроллбара чата, когда есть прокрутка */
    --chatScrollBarActiveBackgroundColor: #16B0A3;

    /* Цвет части скроллбара чата, когда есть прокрутка при наведении на него */
    --chatScrollBarActiveHoverBackgroundColor: #104256;

    /* Цвет имени пользователя в чате */
    --chatUserNameColor: #104256;

    /* Цвет элемента рядом с именеим пользователя в чате */
    --chatUserElement: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='8' viewBox='0 0 7 8' fill='none'%3E%3Cpath d='M7 4L6.75414e-08 8L4.17233e-07 -3.0598e-07L7 4Z' fill='%23104256'/%3E%3C/svg%3E");

    /* Цвет сообщения пользователя в чате */
    --chatUserMessage: #414141;

    /* Цвет имени модератора в чате */
    --chatUserAdminNameColor: #F4223E;

    /* Цвет элемента рядом с именеим модератора в чате */
    --chatUserAdminElement: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='8' viewBox='0 0 7 8' fill='none'%3E%3Cpath d='M7 4L6.75414e-08 8L4.17233e-07 -3.0598e-07L7 4Z' fill='%23F4223E'/%3E%3C/svg%3E");

    /* Цвет фона формы отправки сообщения в чате */
    --chatCommentFormBackgroundColor: linear-gradient(270deg, #105650 0%, #104256 100%);

    /* Цвет поля ввода формы отправки сообщения в чате */
    --chatCommentFormInputBackgroundColor: #FBFBFB;

    /* Цвет текста в поле ввода формы отправки сообщения в чате */
    --chatCommentFormInputTextColor: #000;

    /* Цвет фона кнопки формы отправки сообщения в чате */
    --chatCommentFormButtonBackgroundColor: #fff;

    /* Цвет текста кнопки формы отправки сообщения в чате */
    --chatCommentFormButtonTextColor: #104256;

    /* Цвет фона кнопки формы отправки сообщения в чате при наведении */
    --chatCommentFormButtonHoverBackgroundColor: #16B0A3;

    /* Цвет текста кнопки формы отправки сообщения в чате при наведении */
    --chatCommentFormButtonHoverTextColor: #fff;

    /* Цвет текста количества пользоавтелей в чате */
    --chatUserCountTextColor: #16B0A3;

    /* Цвет фона количества пользоавтелей в чате */
    --chatUserCountBackgroundColor: #ffffff;
    
    /* Цвет фона кнопки "отключить чат" */
    --chatButtonWebinarToggleBackgroundColor: #F4223E;

    /* Цвет текста кнопки "отключить чат" */
    --chatButtonWebinarToggleTextColor: #fff;

    /* Цвет текста кнопки "модерация комментариев в новом окне"  */
    --chatModerationLinkTextColor: #fff;
    
    /* Цвет фона чата в мобильной версии */
    --chatMobileBackgroundColor: #fff;

    /* Цвет границы чата в мобильной версии */
    --chatMobileBorderColor: #E2E2E2;
}

body.adminState .three-panel {
    height: 30px;
}

body.pageRoom:not(.adminState) {
    background: var(--pageBackgroundImage) !important;
    background-color: var(--pageBackgroundColor) !important;
    background-size: cover !important;
}

body.pageRoom .webinar-started-block {
    padding-left: 40px !important;
    width: calc(100% - 500px);
}

body.pageRoom .webinar-started-block .container  {
    padding: 0;
}

body.pageRoom .webinar-started-block .part-header {
    position: relative;
    margin-bottom: 20px !important;
}

body.pageRoom .webinar-started-block .part-header::before {
    content: "";
    
    position: absolute;
    top: -3px;
    left: -12px;
    width: 28px;
    height: 50px;
    
    background: var(--pageTitleElementBackgroundColor);
    border-radius: 0 40px 40px 0;
    
    transform: translatex(-100%);
}

body.pageRoom .webinar-started-block .f-header.f-header-36 {
    font-family: var(--font-family);
    font-size: clamp(20px, 5vw, 36px);
    font-weight: 700;
    line-height: 120%;
    color: var(--pageTitleTextColor);
}

body.pageRoom .webinar-started-block .video-block-main {
    width: 100% !important;
}

body.pageRoom .webinar-started-block  .container {
    border-radius: 10px;
}


/* Чат вебинарной комнаты */

body.pageRoom:not(.adminState) .chat-widget {
    top: 40px;
    right: 40px;
    height: calc(100% - 80px);
    
    padding: 8px 20px 16px;
    
    background: var(--chatBackgroundColor) !important;
    background-size: 100% !important;
    border-radius: 10px;
    border: 1px solid var(--chatBorderColor);
    
    overflow: hidden;
}

body.pageRoom:not(.adminState) .chat-widget::before {
    position: relative;
    content: var(--chatTitleText);
    
    margin: 0 -12px;
    padding: 10px;
    
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 700;
    line-height: 120%;
    color: var(--chatTitleTextColor);
    
    background: var(--chatTitleBackgroundColor);
    border-radius: 7px;
        
    z-index: 10;
}

body.pageRoom:not(.adminState) .chat-widget .webinar-count-users {
    position: absolute;
    top: 2px;
    right: 14px;
    
    margin-top: 12px;
    padding: 6px 12px;
    
    font-family: var(--font-family);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    color: var(--chatUserCountTextColor);
    
    background: var(--chatUserCountBackgroundColor);
    border-radius: 3px;
    
    z-index: 15;
}

body.adminState .chat-widget .webinar-count-users {
    margin-top: 14px;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 600;
    line-height: 120%;
    color: var(--chatUserCountTextColor);
}

body.pageRoom .comments-tree {
    padding-top: 20px;
    height: calc(100% - 150px) !important;
}

body.pageRoom .comments-tree .comments-container::-webkit-scrollbar {
    width: 10px;
}

body.pageRoom .comments-tree .comments-container::-webkit-scrollbar-track {
    background: var(--chatScrollBarBackgroundColor);
    border-radius: 10px;
}

body.pageRoom .comments-tree .comments-container::-webkit-scrollbar-thumb {
    background: var(--chatScrollBarActiveBackgroundColor);
    border-radius: 10px;
}

body.pageRoom .comments-tree .comments-container::-webkit-scrollbar-thumb:hover {
    background: var(--chatScrollBarActiveHoverBackgroundColor);
}

body.pageRoom .comment {
    overflow: visible;
}

body.pageRoom .gc-comment .title span[style="font-size: 12px; font-weight: normal;"] {
    margin-right: 10px;
}

body.pageRoom .gc-comment .title span {
    position: relative;

    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    line-height: 120%;
    color: var(--chatUserNameColor);
}

body.pageRoom:not(.adminState) .gc-comment .title span {
    padding-left: 5px;
}

body.pageRoom:not(.adminState) .gc-comment .title span::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    transform: translatex(-100%);
    
    width: 8px;
    height: 7px;
    
    background: var(--chatUserElement) no-repeat center;
}

body.pageRoom:not(.adminState) .gc-comment .title span::after {
    content: ":";
}

body.pageRoom .gc-comment .text .main .text-content {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 120%;
    color: var(--chatUserMessage);
}

body.pageRoom .gc-comment .title span[style="color: red;"] {
    color: var(--chatUserAdminNameColor) !important;
}

body.pageRoom .gc-comment .title span[style="color: red;"]::before {
    background: var(--chatUserAdminElement) no-repeat center;
}


body.pageRoom .gc-comment-form {
    bottom: 20px !important;
    padding: 16px !important;
    
    width: calc(100% - 40px) !important;
    
    background: var(--chatCommentFormBackgroundColor);
    border-radius: 5px;
}

body.adminState .gc-comment-form {
    bottom: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
}

body.pageRoom .gc-comment-form .new-comment-input {
    padding: 4px 10px !important;
    height: 32px;
    
    font-family: var(--font-family);
    font-size: 14px;
    font-style: normal;
    font-weight: 350;
    line-height: 120%;
    color: var(--chatCommentFormInputTextColor);
    
    background: var(--chatCommentFormInputBackgroundColor);
    border: none;
    border-radius: 3px;
}


body.pageRoom .gc-comment-form .webinar-btn-send,
body.pageRoom .gc-comment-form .webinar-chat-toggle {
    margin-top: 8px;
    padding: 8px 12px !important;
    height: inherit !important;
    min-width: inherit !important;
    
    color: var(--chatCommentFormButtonTextColor);
    font-weight: 600;
    
    background: var(--chatCommentFormButtonBackgroundColor);
    border: none;
    border-radius: 3px;
    
    transition: all .3s;
}

body.pageRoom .gc-comment-form .webinar-chat-toggle {
    color: var(--chatButtonWebinarToggleTextColor);
    background: var(--chatButtonWebinarToggleBackgroundColor);
}

body.pageRoom .gc-comment-form .webinar-btn-send:hover {
    color: var(--chatCommentFormButtonHoverTextColor);
    background: var(--chatCommentFormButtonHoverBackgroundColor);
}

body.pageRoom .gc-comment-form .webinar-btn-send .fa {
    display: none;
}

body.pageRoom .moderation-link {
    display: block;
    margin-top: 10px;
    color: var(--chatModerationLinkTextColor);
}

@media (max-width:992px) {
    
    body.pageRoom:not(.adminState) {
        background: var(--pageMobileBackgroundColor) !important;
    }
    
    body.pageRoom .webinar-started-block {
        padding-left: 20px !important;
        width: calc(100% - 20px) !important;
    }
    
    body.pageRoom video {
        margin: 16px 0;
        border-radius: 10px;
    }
    
    body.pageRoom .lt-chat {
        padding: 12px 10px 16px;

        border-radius: 0 0 10px 10px;
        border: 1px solid var(--chatMobileBorderColor);
        background: var(--chatMobileBackgroundColor) !important;

        overflow: hidden;
    }

    body.pageRoom .lt-chat::before {
        content: var(--chatTitleText);

        display: block;
        padding: 10px;
        width: 100%;

        font-family: var(--font-family);
        font-size: 12px;
        font-weight: 700;
        line-height: 120%;
        color: var(--chatTitleTextColor);

        background: var(--chatTitleBackgroundColor);
        border-radius: 7px;

        z-index: 10;    
    }
    
    body.pageRoom .comments-tree {
        padding: 10px 15px 20px;
    }
    
    body.pageRoom .lt-chat .gc-comment .text .main .text-content {
        padding-left: 5px;
    }
    
    body.pageRoom .gc-comment-form {
        bottom: 10px !important;
        min-height: 100px !important;
        width: calc(100% - 65px) !important;
    }
    
    body.pageRoom .webinar-content-block.mobile[data-mobile-view="1"] .comments-main-container {
        padding-bottom: 120px;
    }
    
    body.pageRoom #webinar-content-block.mobile .comments-main-container {
        border: none;
    }
    
    body.pageRoom #webinar-content-block.mobile .gc-comment-form {
        height: 110px !important;
    }
    
    body.pageRoom .gc-comment-form .webinar-count-users {
        margin-top: 14px;
        font-family: var(--font-family);
        font-size: 12px;
        font-weight: 600;
        line-height: 120%;
        color: var(--chatUserCountTextColor);
    }

}

@media (max-width:520px) {
    body.pageRoom .webinar-content-block.mobile[data-mobile-view="1"] .comments-main-container {
        padding-bottom: 0px;
    }
}
