kdiv {
    display: block;
    box-sizing: border-box;
}

kbutton, kspan {
    box-sizing: border-box;
}

.komek-chat-image {
    width: 100%;
    max-width: 200px;
}

.komek-chat-button {
    border: none;
    padding: 0;
    position: fixed;
    z-index: 1000;
    right: 25px;
    max-width: 280px;
    width: 100%;
    bottom: 25px;
    background: #3dc76f;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    min-height: 70px;
}

.komek-chat-button.disabled {
    background-color: grey;
}

.komek-chat-button.operator-btn {
    min-width: 280px;
    padding: 15px;
}

.komek-chat-button__wrapper {
    display: flex;
    align-items: center;
    column-gap: 20px;
    justify-content: space-between;
    width: 100%;
}

.komek-chat-button__content {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

.komek-chat-button__img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    display: block;
}

.komek-chat-button__name {
    font-weight: 700;
    color: #fff;
    font-size: 18px;
    line-height: normal;
    display: block;
}

.komek-chat-button__role {
    color: #fff;
    line-height: normal;
    display: block;
    font-size: 16px;
}

.komek-chat-content {
    display: flex !important;
    width: 70px;
    height: 150px;
    position: fixed;
    bottom: 0;
    right: 0;
    background: #fff;
    z-index: 1001;
    transform: translateY(100%);
    box-shadow: 0 1px 1px rgb(0 0 0/7%), 0 2px 2px rgb(0 0 0/7%), 0 4px 4px rgb(0 0 0/7%), 0 8px 8px rgb(0 0 0/7%), 0 16px 16px rgb(0 0 0/7%);
    transition: width .2s ease-in-out, height .2s ease-in-out, opacity .2s ease-in-out, transform .0s .2s;
    font-family: 'Arial';
    opacity: 0;
}

.komek-chat-content.show {
    transform: translateY(0);
    transition: width .2s ease-in, height .2s ease-in, opacity .2s ease-in;
    width: 350px;
    height: 100%;
    opacity: 1;
}

.komek-chat-header__img {
    width: 44px;
    min-width: 44px;
    height: 44px;
    background-size: cover;
    border-radius: 50%;
    margin-right: 15px;
}

.komek-chat-header {
    display: flex;
    align-items: flex-start;
    background: #3dc76f;
    padding: 15px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.komek-chat-header.offline-form {
    align-items: center;
}

.komek-chat-header__content {
    display: flex;
    flex-direction: column;
}

.komek-chat-header__title {
    font-size: 15px;
    line-height: 21px;
    color: #fff;
}

.komek-chat-header__description {
    font-size: 12px;
    margin-top: 4px;
    color: #fff;
    line-height: 16.8px;
}

.komek-chat-header__close {
    margin-left: auto;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    cursor: pointer;
}

.komek-chat-header__close .komek-close-icon {
    background-color: #fff;
    transition: background-color .3s;
}

.komek-chat-header__close:hover .komek-close-icon {
    background-color: #7ffaae;
}

.komek-chat-body {
    padding: 20px 15px;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.komek-chat-body.quick-messages {
    justify-content: space-between;
}

.komek-chat-body.quick-messages .komek-quick-messages {
    margin-bottom: 0;
}

.komek-chat-body::-webkit-scrollbar {
    width: 10px !important;
    height: 10px !important;
    background: #f9f9f9 !important;
}

.komek-chat-body::-webkit-scrollbar-thumb {
    background: rgb(232, 232, 232) !important;
}

.komek-chat-message__operator {
    background-color: #e8e8e8;
    margin-right: auto;
    display: block;
}

.komek-chat-message__operator, .komek-chat-message__client {
    max-width: 95%;
    position: relative;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.komek-chat-message__name {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.komek-chat-message__sender {
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    line-height: 18.2px;
}

.komek-chat-message__sender-image {
    display: block;
    position: absolute;
    z-index: 1;
    color: #fff;
    opacity: 1;
    background-color: rgba(0,0,0,.6);
    border-radius: 4px;
    padding: 1px 4px 1px 4px;
    margin: 0!important;
    font-size: 12px;
    top: auto;
    bottom: 10px;
}

.komek-chat-message__client-image .komek-chat-message__sender-image {
    left: auto;
    right: 10px;
}

.komek-chat-message__operator-image .komek-chat-message__sender-image {
    left: 10px;
    right: auto;
}

.komek-chat-message__operator .komek-chat__file-icon {
    color: rgba(0,0,0,.2);
}

.komek-chat-message__operator .komek-chat__file-icon i {
    background-color: rgb(34, 34, 34);
}

.komek-chat-message__time {
    overflow: hidden;
    opacity: .45;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.komek-chat-message__text {
    word-wrap: break-word;
    word-break: break-word;
    line-height: 19.6px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.komek-chat-message__text a {
    color: rgb(34, 34, 34);
}

.komek-chat-message__client {
    display: block;
    margin-left: auto;
}

.komek-chat-message__client-image {
    margin-left: auto;
    width: 95%;
    margin-bottom: 15px;
    position: relative;
    display: block;
    background: transparent !important;
}

.komek-chat-message__operator-image {
    margin-right: auto;
    max-width: 95%;
    margin-bottom: 15px;
    position: relative;
    display: block;
    background: transparent !important;
}

.komek-chat-footer {
    border-top: 1px solid #ddd;
    padding: 15px;
    background: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.komek-chat-textarea {
    display: block;
    font-family: sans-serif;
    color: #222;
    font-size: 16px;
    border: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 40px;
    min-height: 40px;
    max-height: 126px;
    text-align: left;
    background-color: initial;
    resize: none;
}

.komek-chat-textarea:focus {
    outline: none;
}

.komek-chat-footer__content {
    display: flex;
    flex-direction: row;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    align-items: center;
    justify-content: space-between;
    margin-left: -15px;
    padding-left: 15px;
    margin-right: -15px;
    padding-right: 15px;
}

.komek-chat-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.komek-chat-form__submit {
    background: #34ba65;
    border-radius: 50%;
    border: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 35px;
}

.komek-chat-form__submit:focus {
    outline: 0;
}

.komek-chat-footer__brand {
    width: 50px;
    height: 9px;
    background-size: cover;
}

.komek-chat-powered {
    display: flex;
    text-decoration: none;
    column-gap: 5px;
    align-items: center;
}

.komek-chat-powered span {
    font-size: 11px;
    color: #bbb;
}

.komek-chat-file__input {
    display: none;
}

.komek-chat-file__button {
    background: none;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.komek-chat-file__button .komek-clip-icon {
    background-color: #bbb;
    transition: background-color .3s;
}

.komek-chat-file__button:hover .komek-clip-icon {
    background-color: #000;
}

.komek-chat-message__form {
    margin-bottom: 15px;
    display: block;
}

.komek-chat-message__form-title {
    margin-bottom: 15px;
    text-align: center;
    color: #999;
    white-space: pre-line;
    font-size: 14px;
    line-height: 19.6px;
    display: block;
}

.komek-chat-message__form-content {
    display: block;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.1);
}

.komek-chat-message__form-content__item {
    margin-left: 15px;
    margin-right: 15px;
    border-bottom: 1px solid #eee;
    transition: border-bottom .3s;
    display: block;
}

.komek-chat-message__form-content__item:focus-within {
    border-bottom-color: #ccc;
}

.komek-chat-message__form-content__item:last-of-type {
    border-bottom: 0;
}

.komek-chat-message__form-content__input {
    width: 100%;
    display: block;
    font-family: sans-serif;
    font-size: 16px;
    color: #222;
    padding: 12px 0;
    width: 100%;
    border: 0;
    box-sizing: border-box;
    background-color: initial;
}

.komek-chat-message__form-content__input:-webkit-autofill,
.komek-chat-message__form-content__input:-webkit-autofill:hover,
.komek-chat-message__form-content__input:-webkit-autofill:focus,
.komek-chat-message__form-content__input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
}

.komek-chat-message__form-content__input:focus {
    outline: none;
}

.komek-chat-message__form-button {
    display: flex;
    gap: 10px;
    width: 100%;
    height: 18px;
    border: 0;
    font-family: sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity .15s linear;
    min-height: 44px;
    margin-bottom: 5px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.komek-chat-message__form-button i {
    background-color: #fff;
    margin-right: 10px;
}

.komek-chat-message__form-button[disabled]{
    background-color: rgba(0,0,0,.05)!important;
    color: #222!important;
}

.komek-chat__service-message {
    display: block;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.komek-chat__service-message:before {
    content: "";
    display: block;
    width: calc(100% + 30px);
    height: 1px;
    background-color: #3dc76f;
    top: 50%;
    left: -15px;
    position: absolute;
}

.komek-chat__service-message__text {
    border: 1px solid #3dc76f;
    border-radius: 15px;
    font-size: 12px;
    display: inline-block;
    padding: 5px 20px;
    background-color: #fff;
    position: relative;
    color: #777;
}

.komek-chat-unread {
    position: absolute;
    left: auto;
    right: -10px;
    top: -10px;
    bottom: auto;
    width: auto;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 11px;
    color: #fff;
    padding: 0 4px;
    transition: all .16s linear;
    text-align: center;
    line-height: 20px;
    white-space: nowrap;
    font-family: Roboto, sans-serif;
}

.komek-chat-notification {
    position: fixed;
    overflow: visible;
    right: 320px;
    bottom: 20px;
    width: 190px;
    padding: 10px 15px 10px 18px;
    opacity: 1;
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 2px 2px 6px rgb(0 0 0/8%);
    transform: translateX(0);
    text-align: start;
    font-family: Roboto, sans-serif;
}

.komek-chat-notification.disabled {
    cursor: unset;
}

.komek-chat-notification__corner {
    display: block;
    position: absolute;
    top: auto;
    left: auto;
    right: -8px;
    bottom: 11px;
    width: 9px;
    height: 26px;
    border: 0;
    z-index: 1;
    min-height: 26px!important;
    color: #495056;
}

.komek-chat-notification__close {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -4px;
    left: -11px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    box-sizing: border-box;
    background-color: #ccc;
    padding: 0 7px;
    color: #222;
}

.komek-chat__file-wrapper {
    display: flex;
    justify-content: space-between;
}

.komek-chat__file-icon {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 50%;
    margin-left: 15px;
    border-width: 1px;
    border-style: solid;
    padding: 8px;
    box-sizing: border-box;
    color: hsla(0,0%,100%,.4);
}

.komek-chat-message__text--img .komek-chat-image {
    display: block;
    max-width: 100%;
    height: 268px;
    background-size: cover;
    transition: opacity .15s linear;
    margin-left: auto;
    margin-right: auto;
    border-radius: 4px;
    background-position: center;
}

.komek-send-icon {
    width: 18px;
    height: 18px;
    display: block;
    margin-left: 2px;
}

.komek-clip-icon {
    -webkit-mask-image: url("../images/chat/clip.svg");
    mask-image: url("../images/chat/clip.svg");
    width: 18px;
    height: 18px;
    background-color: #000;
    display: block;
}

.komek-smile-icon {
    -webkit-mask-image: url("../images/chat/smile.svg");
    mask-image: url("../images/chat/smile.svg");
    width: 18px;
    height: 18px;
    background-color: #000;
    display: block;
}

.komek-close-icon {
    -webkit-mask-image: url("../images/chat/close.svg");
    mask-image: url("../images/chat/close.svg");
    width: 14px;
    height: 14px;
    background-color: #000;
    display: block;
}

.komek-form-send-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.komek-notification-close-icon {
    -webkit-mask-image: url("../images/chat/notification-close.svg");
    mask-image: url("../images/chat/notification-close.svg");
    width: 8px;
    height: 8px;
    background-color: #000;
    display: block;
}

.komek-corner-icon {
    display: flex;
}

.komek-file-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.komek-quick-messages {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    row-gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.komek-quick-messages__btn {
    font-size: 13px;
    border: 2px solid #10c972;
    border-radius: 20px;
    background: transparent;
    padding: 5px 10px;
    transition: color .3s, background .3s;
    color: #000;
}

.komek-quick-messages__btn:hover {
    background: #10c972;
    color: #fff;
}

.komek-quick-messages__btn:focus {
    outline: 0;
}

.komek-chat-button__text {
    color: #fff;
    font-size: 16px;
}

.komek-chat-message__avatar {
    width: 32px;
    height: 32px;
    background-size: cover;
    border-radius: 50%;
    display: block;
}

.komek-chat-message__wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}

.komek-chat-message__wrapper .komek-chat-message__operator,
.komek-chat-message__wrapper .komek-chat-message__operator-image {
    margin-bottom: 0;
    flex-grow: 1;
}

.komek-chat-icons__wrapper {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.komek-chat-smile__wrapper {
    position: relative;
}

.komek-chat-smile__button {
    display: flex;
    cursor: pointer;
}

.komek-chat-smile__button .komek-smile-icon {
    background-color: #bbb;
    transition: background-color .3s;
}

.komek-chat-smile__button:hover .komek-smile-icon {
    background-color: #000;
}

.komek-chat-smile__card {
    position: absolute;
    bottom: 30px;
    left: -10px;
    background-color: #fff;
    box-shadow: 0 7px 14px 0 rgba(0,0,0,.12);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    display: flex;
    gap: 10px;
    width: 200px;
    flex-wrap: wrap;
    z-index: 5;
}

.komek-chat-smile__card:before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    transform: rotate(-135deg);
    background: #fff;
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid transparent;
    border-right: 1px solid transparent;
    position: absolute;
    bottom: -5px;
    left: 13px;
}

.komek-chat-smile__icon {
    display: flex;
    cursor: pointer;
    font-size: 20px;
}

.komek-chat-smile__img {
    width: 27px;
    height: 27px;
    background-size: cover;
}

.komek-chat__smile-img {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-size: cover;
}

.komek-chat-language__wrapper {
    position: relative;
}

.komek-chat-language__btn {
    display: flex;
    width: 21px;
    height: 15px;
    background-size: cover;
    cursor: pointer;
}

.komek-chat-language__dropdown {
    position: absolute;
    bottom: 28px;
    left: -5px;
    background-color: #fff;
    box-shadow: 0 7px 14px 0 rgba(0,0,0,.12);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-wrap: wrap;
    z-index: 5;
}

.komek-chat-language__dropdown:before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    transform: rotate(-135deg);
    background: #fff;
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid transparent;
    border-right: 1px solid transparent;
    position: absolute;
    bottom: -5px;
    left: 10px;
}

.komek-chat-language__img {
    display: block;
    width: 18px;
    height: 13px;
    background-size: cover;
}

.komek-chat-language__text {
    font-size: 13px;
    white-space: nowrap;
}

.komek-chat-language__dropdown-item {
    display: flex;
    column-gap: 10px;
    align-items: center;
    cursor: pointer;
}

.komek-chat-tabs {
    position: fixed;
    top: var(--komek-header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    display: flex;
}

.komek-chat-tabs__item {
    position: relative;
    display: flex;
    align-items: center;
    column-gap: 5px;
    padding: 0 10px;
    font-size: 12px;
    flex-basis: 25%;
    font-weight: 600;
    cursor: pointer;
}

.komek-chat-tabs__item.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    height: 2px;
    width: 100%;
    background: #3dc76f;
}

.komek-chat-tabs__img {
    width: 18px;
    height: 18px;
    background-size: cover;
}

.komek-chat-tabcontent {
    display: none;
}

.komek-chat-tabcontent.show {
    display: flex;
    margin-top: calc(var(--komek-header-height) + var(--komek-tabs-height));
    width: 100%;
}

.komek-chat-tabcontent.show.default {
    margin-bottom: var(--komek-footer-height);
}

.komek-chat-button__default {
    display: flex;
    gap: 10px;
    align-items: center;
}

.komek-arrow-success {
    display: block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Crect x='2.61919' y='2.59967' width='9.14162' height='9.1412' fill='white'/%3E%3Cpath d='M13.69 11.7205C13.69 12.2375 13.4846 12.7334 13.119 13.099C12.7534 13.4646 12.2575 13.67 11.7404 13.67H2.63961C2.38358 13.67 2.13006 13.6196 1.89353 13.5216C1.65699 13.4236 1.44207 13.28 1.26103 13.099C0.895407 12.7334 0.690002 12.2375 0.690002 11.7205V2.6195C0.690002 2.10245 0.895407 1.60659 1.26103 1.24098C1.62665 0.875377 2.12254 0.669983 2.63961 0.669983H11.7404C12.2575 0.669983 12.7534 0.875377 13.119 1.24098C13.4846 1.60659 13.69 2.10245 13.69 2.6195V11.7205ZM5.56736 8.78066C5.20373 8.40059 4.84274 8.01798 4.48439 7.63283C4.38586 7.527 4.30663 7.45732 4.2467 7.4238C3.71558 7.12671 3.0909 7.67915 3.32584 8.22975C3.35976 8.30958 3.44001 8.41654 3.56657 8.55061C4.05168 9.06495 4.5371 9.5792 5.02283 10.0933C5.13151 10.2085 5.2212 10.2836 5.2919 10.3185C5.57102 10.4565 5.87635 10.3676 6.08722 10.143C7.67095 8.45777 9.25449 6.77244 10.8378 5.08701C10.9676 4.94867 11.0386 4.83258 11.056 4.65554C11.1151 4.04887 10.3603 3.70699 9.95138 4.14211C8.49888 5.68921 7.04546 7.23539 5.59113 8.78066C5.58321 8.78899 5.57529 8.78899 5.56736 8.78066Z' fill='%2300D26A'/%3E%3C/svg%3E");
    width: 14px;
    height: 14px;
    background-size: cover;
}

.komek-chat-message__form-text {
    display: flex;
    align-items: center;
    column-gap: 5px;
}

.komek-chat-header__form-title {
    display: flex;
    color: #fff;
    font-size: 20px;
}

.komek-chat-offline-form__wrapper {
    padding: 10px 15px;
    width: 100%;
}

.komek-chat-offline-form__user-wrapper {
    display: flex;
    align-items: center;
    column-gap: 10px;
    margin-bottom: 15px;
}

.komek-chat-offline-form__user-avatar {
    display: flex;
    width: 45px;
    height: 45px;
    background-size: cover;
    border-radius: 50%;
}

.komek-chat-offline-form__user-content {
    display: flex;
    flex-direction: column;
}

.komek-chat-offline-form__user-name {
    display: flex;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
}

.komek-chat-offline-form__user-role {
    font-size: 15px;
    font-weight: 500;
    color: #8F8F8F;
    line-height: normal;
}

.komek-chat-offline-form__text {
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    margin-bottom: 15px;
}

.komek-chat-offline-form__contact-wrapper {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #E8E8E8;
}

.komek-chat-offline-form__contant-input {
    padding: 5px;
    border: 0;
    border-bottom: 1px solid #E8E8E8;
    width: 100%;
}

.komek-chat-offline-form__contant-textarea {
    padding: 5px;
    border: 0;
    resize: none;
    width: 100%;
}

.komek-chat-offline-form__contant-textarea:focus {
    outline: none;
}

.komek-chat-offline-form__contant-input:focus {
    outline: none;
}

.komek-chat-offline-form__contant-button {
    border-radius: 0 0 4px 4px;
    padding: 10px;
    background: #3dc76f;
    color: #fff;
    margin: 15px -10px -10px -10px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.komek-chat-content[komek-lang=qz] .komek-chat-powered, .komek-chat-content[komek-lang=kz] .komek-chat-powered {
    flex-direction: row-reverse;
}

@media (max-width: 576px){
    .komek-chat-content.show {
        width: 100%;
    }
}
