.ai-chat-page {
    padding-bottom: 70px;
}
.ai-chat-page__title {
    margin-bottom: 30px;
}
.ai-chat-page__title h1{
    color: #43455A;
}
.ai-chat-alert {
    position: relative;
    border: 1px solid #CDCEE0;
    border-radius: 15px;
    color: #43455A;
    font-weight: 400;
    padding: 14px 48px 14px 18px;
    margin-bottom: 34px;
    background: #fff;
    font-size: 18px;
}
.ai-chat-page .ai-chat-alert{
    border: none;
    min-height: 68px;
    align-items: center;
    display: flex;
    padding: 14px 60px 14px 30px;
}
.ai-chat-alert--danger {
    border-color: #d16464;
    color: #b64040;
    background: #fff6f6;
}
.ai-chat-alert--success {
    border-color: #7cab3d;
    color: #5f8f2a;
    background: #f7f8e6;
}
.ai-chat-alert--compact {
    position: relative;
    font-size: clamp(13px, 2vw, 15px);
    line-height: 1.3;
    margin: 0 0 20px;
    padding: 12px 60px 12px 12px;
}
.ai-chat-alert-close,
.ai-chat-page-alert-close,
.ai-chat-history-close {
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}
.ai-chat-alert-close,
.ai-chat-page-alert-close,
.ai-chat-history-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #06B2ED;
}
.ai-chat-page-alert-close {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}
.ai-chat-history-close {
    position: static;
    flex: 0 0 auto;
}
.ai-chat-alert-close img,
.ai-chat-page-alert-close img,
.ai-chat-history-close img {
    display: block;
}
.ai-chat-alert-close img,
.ai-chat-page-alert-close img,
.ai-chat-history-close img {
    width: 11px;
    height: 11px;
}
.ai-chat-thread {
    margin: 0 auto 34px;
}
.ai-chat-message {
    font-size: 16px;
    line-height: 1.65;
    color: #382d28;
    overflow-wrap: anywhere;
}
.ai-chat-message p,
.ai-chat-widget__msg p {
    margin: 0 0 16px;
}
.ai-chat-message p:last-child,
.ai-chat-widget__msg p:last-child {
    margin-bottom: 0;
}
.ai-chat-message ul,
.ai-chat-widget__msg ul {
    margin: 0 0 16px 20px;
    padding: 0;
}
.ai-chat-message li,
.ai-chat-widget__msg li {
    margin-bottom: 8px;
}
.ai-chat-answer-title {
    margin: 0 0 16px;
    color: #382d28;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.35;
}
.ai-chat-widget__msg .ai-chat-answer-title {
    font-size: 14px;
    margin-bottom: 10px;
}
.ai-chat-message--user {
    max-width: 860px;
    margin: 0 0 28px auto;
    padding: 22px 26px;
    border-radius: 15px 15px 0 15px;
    background: #DCFEC1;
    border: 1px solid rgb(205, 206, 224);
}
.ai-chat-message--assistant {
    margin-bottom: 30px;
    padding: 28px 32px;
    border: 1px solid rgb(205, 206, 224);
    border-radius: 15px 15px 15px 0;
    background: #fff;
}
.ai-chat-empty {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #43455A;
    font-size: 18px;
}
.ai-chat-form {
    margin: 0 auto;
}
.ai-chat-field {
    position: relative;
    display: flex;
    min-height: 118px;
    border-radius: 15px;
    background: #DCFEC1;
    padding: 16px 18px 16px 22px;
}
.ai-chat-field.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 15px;
    background: rgba(255, 255, 255, .45);
    pointer-events: none;
}
.ai-chat-field::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    background: #DCFEC1 url("/img/ico-137.svg") center / 19px 19px no-repeat;
    pointer-events: none;
}
.ai-chat-field textarea {
    flex: 1;
    width: 100%;
    min-height: 86px;
    border: 0;
    resize: vertical;
    outline: none;
    background: transparent;
    color: #382d28;
    font-size: 17px;
    line-height: 1.45;
    padding: 0 28px 22px 0;
    box-sizing: border-box;
}
.ai-chat-field textarea::-webkit-resizer {
    background: transparent;
}
.ai-chat-submit {
    min-width: 180px;
    height: 50px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(0deg, #00A9F3 0%, #06CEEA 96%);
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.8), 0 5px 10px -1px rgba(102, 194, 235, 0.59), inset 0 0 4px rgba(0, 133, 181, 0.5) !important;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 18px;
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
}
.ai-chat-submit:hover {
    box-shadow: 0 4px 6px rgba(0, 133, 181, 0.2), 0 5px 10px -1px rgba(0, 133, 181, 0.4), inset 0 0 4px rgba(0, 133, 181, 0.5) !important;
}
.ai-chat-submit:disabled {
    background: #DFE4ED;
    box-shadow: none !important;
    color: #43455A;
    cursor: default;
    pointer-events: none;
}
.ai-chat-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
}
.ai-chat-loader {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin: 0 4px 7px 0;
    border: 3px solid rgba(1, 179, 240, .22);
    border-top-color: #01B3F0;
    border-radius: 50%;
    animation: ai-chat-loader-spin .75s linear infinite;
}
.ai-chat-field .ai-chat-loader {
    position: absolute;
    left: 16px;
    bottom: 15px;
    z-index: 2;
}
.ai-chat-loader[hidden] {
    display: none;
}
@keyframes ai-chat-loader-spin {
    to {
        transform: rotate(360deg);
    }
}
.ai-chat-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 64px;
    padding-top: 0;
    color: #382D28;
    font-size: 14px;
}
.ai-chat-page .ai-chat-meta{
    font-size: 16px;
}
.ai-chat-requests-meta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ai-chat-requests-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #009ED4;
    border-radius: 50%;
    background: #01B3F0;
    color: #fff;
    padding: 0;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    margin-left: 2px;
}
.ai-chat-requests-help span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6px;
    height: 12px;
    line-height: 1;
}
.ai-chat-requests-help img {
    display: block;
    width: 6px;
    height: 12px;
}
.ai-chat-requests-help em {
    position: absolute;
    top: calc(100% + 12px);
    right: -2px;
    z-index: 5;
    width: 280px;
    max-width: calc(100vw - 40px);
    padding: 14px 14px;
    border: 1px solid #DFE4ED;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 166, 218, .28);
    color: #382d28;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.ai-chat-requests-help em::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid #DFE4ED;
    border-top: 1px solid #DFE4ED;
    border-radius: 2px 0 0 0;
    transform: rotate(45deg);
}
.ai-chat-requests-help:hover em,
.ai-chat-requests-help:focus em {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ai-chat-limit-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 28px;
    margin-top: 48px;
}
.ai-chat-limit-actions[hidden] {
    display: none;
}
.ai-chat-limit-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 10px 15px;
    border-radius: 6px;
    background: #FFE2E2;
    color: #d06161;
    font-size: 18px;
    line-height: 1.35;
    text-align: center;
    font-weight: 700;
}
.ai-chat-limit-warning img {
    flex: 0 0 auto;
    display: block;
}
.ai-chat-subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    max-width: 100%;
    min-height: 50px;
    border-radius: 6px;
    background: linear-gradient(0deg, #00A9F3 0%, #06CEEA 96%);
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.8), 0 5px 10px -1px rgba(102, 194, 235, 0.59), inset 0 0 4px rgba(0, 133, 181, 0.5) !important;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease-in-out;
}
.ai-chat-subscribe-btn:hover{
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 133, 181, 0.2), 0 5px 10px -1px rgba(0, 133, 181, 0.4), inset 0 0 4px rgba(0, 133, 181, 0.5) !important;
}
.ai-chat-history-note {
    margin-top: 30px;
    color: #43455A;
    font-size: 18px;
    border: 0;
    border-radius: 10px;
    padding: 10px 15px;
    background: #DFE4ED;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    gap: 16px;
}
.ai-chat-history-left{
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-chat-widget {
    position: fixed;
    right: 54px;
    bottom: 54px;
    z-index: 99990;
    font-family: inherit;
}
.ai-chat-widget__bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #382d28;
    font-weight: 700;
}
.ai-chat-widget__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
}
.ai-chat-widget__mark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: linear-gradient(180deg, #07A7DF 0%, #00A6DA 100%);
    box-shadow: 0 10px 22px rgba(0, 166, 218, .28);
}
.ai-chat-widget__mark img {
    display: block;
    width: 70%;
    height: 70%;
    object-fit: contain;
}
.ai-chat-widget__label {
    position: relative;
    border-radius: 8px;
    padding: 7px 14px;
    background: #fff;
    font-size: clamp(12px, 2vw, 16px);
    right: 20px;
    border: 1px solid #DFE4ED;
    font-weight: 400;
}
.ai-chat-widget__label::after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 0 0 3px 0;
    transform: translateX(-50%) rotate(45deg);
    border-right: 1px solid #DFE4ED;
    border-bottom: 1px solid #DFE4ED;
}
.ai-chat-widget__panel {
    width: 430px;
    max-height: calc(100vh - 90px);
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 22px rgba(0, 166, 218, .28);
    padding: 26px 22px 30px 30px;
    border-right: 8px solid #fff;
    scrollbar-width: thin;
    scrollbar-color: #06B2ED transparent;
}
.ai-chat-widget__panel::-webkit-scrollbar,
.ai-chat-widget__messages::-webkit-scrollbar,
.ai-chat-widget__form textarea::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}
.ai-chat-widget__panel::-webkit-scrollbar-track,
.ai-chat-widget__messages::-webkit-scrollbar-track,
.ai-chat-widget__form textarea::-webkit-scrollbar-track {
    background: transparent;
}
.ai-chat-widget__panel::-webkit-scrollbar-track {
    margin: 12px 0;
}
.ai-chat-widget__panel::-webkit-scrollbar-thumb,
.ai-chat-widget__messages::-webkit-scrollbar-thumb,
.ai-chat-widget__form textarea::-webkit-scrollbar-thumb {
    background: #06B2ED;
    border-radius: 999px;
}
.ai-chat-widget__panel::-webkit-scrollbar-thumb:hover,
.ai-chat-widget__messages::-webkit-scrollbar-thumb:hover,
.ai-chat-widget__form textarea::-webkit-scrollbar-thumb:hover {
    background: #06B2ED;
}
.ai-chat-widget__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}
.ai-chat-widget__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ai-chat-widget__small-mark {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.ai-chat-widget__small-mark img {
    width: 100%;
    height: 100%;
}
.ai-chat-widget__title {
    color: #4B4C5B;
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    line-height: 1;
}
.ai-chat-widget__online {
    color: #06B2ED;
    font-size: clamp(14px, 2vw, 16px);
}
.ai-chat-widget__collapse {
    border: 0;
    background: transparent;
    color: #06B2ED;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.ai-chat-widget__messages {
    max-height: 330px;
    overflow: auto;
    margin-right: -4px;
    padding-right: 12px;
    scrollbar-width: thin;
    scrollbar-color: #06B2ED transparent;
}
.ai-chat-widget__msg {
    font-size: 14px;
    line-height: 1.4;
    color: #382d28;
    overflow-wrap: anywhere;
    font-weight: 500;
}
.ai-chat-widget__msg--user {
    margin: 0 0 12px 34px;
    padding: 14px 20px;
    border-radius: 15px 15px 0 15px;
    background: #DCFEC1;
    border: 1px solid #CDCEE0;
}
.ai-chat-widget__msg--assistant {
    margin: 0 0 14px;
    padding: 14px 20px;
    border: 1px solid #CDCEE0;
    border-radius: 15px 15px 15px 0;
    background: #fff;
}
.ai-chat-widget__inputbox {
    position: relative;
    border-radius: 10px;
    background: #DCFEC1;
    padding: 24px 28px;
}
.ai-chat-widget__inputbox.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 10px;
    background: rgba(255, 255, 255, .45);
    pointer-events: none;
}
.ai-chat-widget__inputbox .ai-chat-widget-loader {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    width: 22px;
    height: 22px;
    margin: 0;
    border-width: 2px;
}
.ai-chat-widget__inputbox .ai-chat-widget-loader[hidden] {
    display: none;
}

.ai-chat-widget__inputbox textarea {
    width: 100%;
    height: 118px;
    min-height: 118px;
    resize: none;
    border: 0;
    outline: none;
    background: transparent;
    color: #382d28;
    font-size: 14px;
    line-height: 1.45;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #06B2ED transparent;
}

.ai-chat-widget__inputbox textarea::-webkit-scrollbar {
    width: 4px;
}

.ai-chat-widget__inputbox textarea::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat-widget__inputbox textarea::-webkit-scrollbar-thumb {
    background: #06B2ED;
    border-radius: 10px;
}

.send-ai-message {
    display: block;
    margin: 18px 0 0 auto;
    width: 218px;
    max-width: 100%;
    height: 50px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(0deg, #00A9F3 0%, #06CEEA 96%);
    box-shadow: 0 8px 16px rgba(6, 178, 237, .22);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 18px;
    transition: box-shadow .2s ease, transform .2s ease;
}
.send-ai-message:hover {
    box-shadow: 0 4px 6px rgba(0, 133, 181, 0.2), 0 5px 10px -1px rgba(0, 133, 181, 0.4), inset 0 0 4px rgba(0, 133, 181, 0.5) !important;
}
.ai-chat-widget__form {
    margin-top: 12px;
    position: relative;
}

.ai-chat-widget__form button:disabled {
    opacity: .55;
    cursor: default;
}
.ai-chat-widget__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    color: #43455A;
    font-size: 13px;
}
.ai-chat-widget__meta .ai-chat-requests-meta {
    gap: 4px;
}
.ai-chat-widget__meta .ai-chat-requests-help em {
    right: -6px;
    width: 230px;
    padding: 12px;
    font-size: 13px;
}
.ai-chat-widget__meta .ai-chat-requests-help em::before {
    right: 14px;
}
.ai-chat-widget__more {
    margin: 20px 0 12px;
    text-align: center;
    font-size: 16px;
}
.ai-chat-widget__more a {
    color: #43455A;
    text-decoration: underline;
}
.ai-chat-widget__more a:hover{
    text-decoration: none;
}
.ai-chat-widget__intro {
    color: #43455A;
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 18px;
}
.ai-chat-widget__intro strong {
    display: block;
    margin-top: 18px;
    color: #43455A;
    font-size: 20px;
}
.ai-chat-widget__hide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: 0;
    color: #43455A;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    background: #DFE4ED;
}
.ai-chat-auth-modal[hidden],
.ai-chat-widget[hidden],
.ai-chat-widget__panel[hidden] {
    display: none;
}
.ai-chat-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
}
.ai-chat-auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(56, 45, 40, .58);
}
.ai-chat-auth-modal__dialog {
    position: relative;
    max-width: 430px;
    margin: 22vh auto 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(0, 166, 218, .28);
    padding: 42px 48px 40px;
    text-align: center;
}
.ai-chat-auth-modal__close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 35px;
    height: 35px;
    border: 0;
    background: #01B3F0;
    border-radius: 50%;
    opacity: 1;
    color: #fff;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}
.ai-chat-auth-modal__close img {
    display: block;
    width: 11px;
    height: 11px;
}
.ai-chat-auth-modal__icon {
    margin-bottom: 34px;
}
.ai-chat-auth-modal__title {
    max-width: 440px;
    margin: 0 auto 34px;
    color: #382d28;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.35;
    font-weight: 700;
}
.ai-chat-auth-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ai-chat-auth-modal__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    font-weight: 700;
    font-size: 20px;
}
.pd-notice {
    left: 18px;
    right: auto;
}
@media only screen and (max-width: 767px) {
    .ai-chat-limit-warning,
    .ai-chat-alert,
    .ai-chat-history-note {
        font-size: 16px;
        line-height: 1.3;
    }
    .ai-chat-limit-warning {
        justify-content: flex-start;
        text-align: left;
    }
    .ai-chat-message--user,
    .ai-chat-message--assistant {
        padding: 15px;
        line-height: 1.3;
    }
    .ai-chat-field {
        display: block;
    }
    .ai-chat-submit {
        width: 100%;
        min-width: 0;
    }
    .ai-chat-form-row {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }
    .ai-chat-meta {
        flex-wrap: wrap;
        gap: 10px 18px;
    }
    .ai-chat-widget {
        right: 18px;
        bottom: 22px;
    }
    .ai-chat-widget__panel {
        width: calc(100vw - 36px);
        padding: 20px;
    }
    .ai-chat-auth-modal__dialog {
        width: calc(100% - 36px);
        max-width: 430px;
        margin: 16vh auto 0;
        padding: 38px 22px 28px;
    }
    .ai-chat-field textarea{
        width: 100%;
    }
    .ai-chat-meta .ai-chat-meta-one{
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .ai-chat-requests-help em {
        right: -60px;
    }
    .ai-chat-requests-help em::before {
        right: 67px;
    }
    .ai-chat-field .ai-chat-loader {
        position: absolute;
        bottom: 17px;
        left: 16px;
    }

}
@media only screen and (max-width: 480px) {
    .ai-chat-widget__meta {
        flex-wrap: wrap;
    }
    .ai-chat-meta-one{
        width: 100%;
    }
    .ai-chat-widget__meta .ai-chat-requests-help em {
        right: -100px;
    }
    .ai-chat-widget__meta .ai-chat-requests-help em::before {
        right: 104px;
    }
}
