﻿.chat24-container {
    width: 48px;
    direction: ltr;
}

.chat24-container .startBtn.startBtn--inside {
    border-radius: 8px;
}

.chat24-container .startBtn__imgWrapper img,
.chat24-container .startBtn__imgWrapper svg {
    display: none;
}

.chat24-container .startBtn .startBtn__imgWrapper {
    border: 1px solid #eb792d;
    border-radius: 50%;
    background-color: #eb792d;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(../image/chat2desk_main_icon_new.svg);
    background-size: 70%;
}

.offline-form-input-field {
    background-color: #fff !important;
    border: 1px solid #dcd7d4 !important;
}

.offline-form-submit {
    background-color: #eb792d !important;
}

.offline-form-submit--light:not(.offline-form-submit--disabled):hover::after {
    display: none !important;
}

.offline-form-submit:hover {
    background-color: #ef7d00 !important;
}

.offline-form-input-error {
    margin: -10px 0 16px;
}

.offline-form-desktop-title--online {
    margin-bottom: 20px;
}

.chat-header {
    background-color: #eb792d !important;
}

.input-btn {
    color: #dcd7d4 !important;
}

.chat-header__avatar-img {
    content: url(../image/logo-small.svg);
    background: #fff;
    object-fit: none;
    object-position: center;
}

.chat24-container .widget {
    width: 72px;
    height: 72px;
    padding: 0 !important;
}

.chat24-container .startBtn--inside.startBtn .startBtn__button {
    width: 72px;
    height: 72px;
}

.chat24-container .messenger {
    width: 48px;
    height: 48px;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: transparent;
}

.chat24-container .messenger svg {
    display: none;
}

.chat24-container .messengers button:nth-of-type(1):not(.messenger--custom) {
    order: 0;
    margin-top: 12px;
    background-image: url(../image/chat2desk_messenger_icon.svg);
}

.chat24-container .messengers .messenger {
    background-size: 100%;
    -webkit-transition: all .1s ease-in-out;
    transition: all .1s ease-in-out;
}

.chat24-container .messengers a:not(.messenger--custom) {
    order: 1;
    background-image: url(../image/chat2desk_telegram_icon.svg);
}

.chat24-container .messengers .messenger--custom {
    order: 2;
}

.chat24-container .messengers .messenger--faq {
    background-image: url(../image/faq.svg);
}

.chat24-container .messengers .messenger:last-child {
    margin-bottom: 12px;
}

.chat24-container .messengers .messenger--vertical {
    margin: 8px auto;
}

.chat24-container .startBtn--inside.startBtn--open .startBtn__button:hover svg {
    -webkit-transform: scale(1);
    transform: scale(1);
}

/* Start rtl */
.chat24-container.chat24-container--rtl {
    right: auto !important;
    left: 95px !important;
    direction: rtl;
}

.chat24-container.chat24-container--rtl .offline-form-desktop-close {
    right: auto;
    left: 38px;
}

.chat24-container.chat24-container--rtl .offline-form-mobile-close {
    right: auto;
    left: 23px;
}

.chat24-container.chat24-container--rtl .chat-header__avatar {
    margin: -2px 0 -2px 11px;
}

.chat24-container.chat24-container--rtl .headerInfo__name {
    margin-right: 0;
    margin-left: 4px;
}

.chat24-container.chat24-container--rtl .online-chat .messages-container>div:first-child {
    margin-right: 0 !important;
    margin-left: -15px !important;
}

.chat24-container.chat24-container--rtl .online-chat .messages-container>div:last-child {
    right: auto !important;
    left: 2px !important;
}

.chat24-container.chat24-container--rtl .input-btn {
    transform: scaleX(-1);
}

.chat24-container.chat24-container--rtl .chat-header .close-btn,
.chat24-container.chat24-container--rtl .chat-header .mute-btn {
    right: auto;
    left: 21px;
}

.chat24-container.chat24-container--rtl .online-chat--vertical.online-chat--right.online-chat--bottom {
    right: auto !important;
    left: 0 !important;
}

.chat24-container.chat24-container--rtl .online-chat--right.online-chat--bottom {
    transform-origin: left bottom;
}

.chat24-container.chat24-container--rtl .offline-form-wrapper {
    direction: ltr;
}

/* End rtl */

/* Start widget open state */
.chat24-container .widget.widget--open {
    padding-bottom: 16px;
    border: 1px solid #e3e8ed;
    border-radius: 64px;
    height: auto;
}

.chat24-container .widget.widget--open .startBtn--inside {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 8px auto 12px;
}

.chat24-container .widget.widget--open .startBtn--inside.startBtn .startBtn__button {
    width: 32px;
    height: 32px;
}

.chat24-container .widget.widget--open .startBtn .startBtn__imgWrapper {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid transparent;
    background-size: contain;
    background-position: center center;
    background-color: transparent;
    background-image: url(../image/chat2desk_close_icon.svg);
    -webkit-transition: all .1s ease;
    transition: all .1s ease;
}

.chat24-container .widget .messengers {
    position: relative;
}

.chat24-container .widget .messengers::after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 48px;
    height: 1px;
    background: #e3e8ed;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.chat24-container .messengers .messenger:hover {
    background-size: 85%;
}

.chat24-container .widget.widget--open .startBtn--inside:hover {
    background: none !important;
}

.chat24-container .widget.widget--open .startBtn .startBtn__button:hover .startBtn__imgWrapper {
    background-color: #f6f7f8;
    border: 1px solid #e7ebef;
}

.chat24-container .widget.widget--open .startBtn .startBtn__button:active .startBtn__imgWrapper {
    background-color: #e7ebef;
    border: 1px solid #d4dbe2;
}

/* End widget open state */

@media (max-width: 1023px) {
    .widget--vertical.widget--right.widget--collapsed {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }

    .chat24-container .widget {
        bottom: 12px;
        height: auto;
        min-height: 264px;
    }

    .chat24-container .widget.widget--open {
        right: 12px;
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    .chat24-container .messengers {
        width: auto;
    }

    .chat24-container .widget .messengers::after {
        bottom: 68px;
    }

    .chat24-container .messengers button:nth-of-type(2) {
        order: 3;
        background-image: url(../image/chat2desk_close_icon.svg);
        margin-bottom: 12px;
    }

    .chat24-container.chat24-container--rtl .chat-header .close-btn,
    .chat24-container.chat24-container--rtl .chat-header .mute-btn {
        left: 0;
    }

    .chat24-container.chat24-container--rtl .online-chat .messages-container>div:first-child {
        margin-left: 0 !important;
    }

    .chat24-container.chat24-container--rtl .widget--vertical.widget--right,
    .chat24-container.chat24-container--rtl .startBtn--outside.startBtn--right {
        right: auto;
        left: 12px;
    }

    .chat24-container.chat24-container--rtl .widget--vertical.widget--right.widget--collapsed {
        -webkit-transform: translateX(calc(-100% - 12px));
        transform: translateX(calc(-100% - 12px));
    }
}
