/* @import url("https://fonts.cdnfonts.com/css/manrope");
@import url("https://fonts.cdnfonts.com/css/geometria"); */

.ai_block {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 125%;
}

.ai_modal-open {
    padding-right: 17px;
    overflow: hidden;
}

.loader_wrapper {
    width: 100%;
    height: 100%;
    display: flex; 
    justify-content: center;
    /* background-color: rgba(0, 0, 0, 0.5); */
    align-items: center;
}

.ai_block {
    display: none !important;
    height: 100%;
}

.ai_block.ai_block-show {
    display: grid !important;
    position: relative;
}

.ai-form-input {
    width: 100%;
    display: flex;
    padding: 12px 16px 12px 18px;
    justify-content: space-between;
    align-items: center;
    border-radius: 1000px;
    border: 1px solid #b1b5c3;
    margin-top: 8px;
    box-shadow: none;
    transition: 0.5s all;
}

.AImodal form input:disabled {
    background-color: #f0f0f0;
}

.AImodal form input:focus-visible {
    outline: none;
}

.AImodal form select:focus-visible {
    outline: none;
    box-shadow: 0px 6px 15px 0px gray;
}

.AImodal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    min-height: 330px;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: auto;
}

.AImodal .modal__dialog {
    max-width: 100%;
    margin-inline: auto;
}

.ai__content {
    position: absolute;
    width: 457px;
    background-color: #fff;
    border-radius: 24px;
    height: 647px;
    overflow-y: auto;
    bottom: 57px;
    right: 15px;
    box-shadow: 10px 12px 25px darkgrey;
    z-index: 2147483649;
}

.p-inline-24 {
    padding-inline: 24px;
}

.ai-robot_wrapper {
    display: flex;
    align-items: end;
}

.ai-robot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.dropdown_robot-animation {
    animation: dropdown 1.8s cubic-bezier(0.15, 0.38, 0.2, 1.08);
}

.ai-robot img {
    animation: float 3.2s ease-in-out 1.8s infinite ;
    /* animation: name duration timing-function delay iteration-count direction fill-mode; */
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes dropdown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0%);
    }

}

.ai-robot-title {
    font-size: 24px;
    font-weight: 500;
    color: #003D64;
    animation: LeftToRight 2s cubic-bezier(0.6,-0.01, 0.24, 1.02);
}

.slower_animation {
    animation: LeftToRight 3s cubic-bezier(0.6,-0.01, 0.24, 1.02);
}

.ai-robot_title_animation {
    overflow: hidden;
}

@keyframes LeftToRight {
    0% {
        transform: translateX(-130%);
    }

    100% {
        transform: translateX(0%);
    }
}

.ai-first_block .first-page_label {
    font-size: 14px;
    font-weight: 500;
    color: #0A1E3299;
}

.modal-first_inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-first_block {
    width: 100%;
    grid-template-rows: min-content auto;
    /* grid-template-rows: 28px 1fr 1fr 59px; */
}

.ai-second_block {
    width: 100%;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: min-content min-content auto min-content;
}

.ai-first_block .ai-modal_header {
    justify-content: end;
}

.aiTrigger {
    cursor: pointer;
    transition: all .5s;
}

.ai__close {
    cursor: pointer;
    height: 24px;
    width: 24px;
}

.AImodal .modal__fixed {
    background-color: #EFF2F6;
    padding: 32px;
    border-radius: 12px;
    height: max-content;
}

.AImodal .modal__close {
    color: #003D64;
    background-color: transparent;
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.ai-modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: fit-content;
    padding: 24px 24px 0 24px;
}

.ai-form_content {
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.ai-form_title {
    
    color: #003D64;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 36px;
}

#formSubmit {
    width: 100%;
    padding: 16px 24px 18px 24px;
    border-radius: 10000px;
    background-color: #003D64;
    color: #fff;
    margin-top: 24px !important;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.AImodal.show {
    display: block;
}

.AImodal.hide {
    display: none !important;
}

.porfavor {
    height: 100vh;
    width: 100%;
    background-image: url("https://play-lh.googleusercontent.com/PVUtTtZzUzypHyHGTvThaGbgS6uS6MU2RzSjHFdFR1wXvvDdkZaelKGh6yPF2f9OVjoS=w240-h480-rw");
    background-repeat: no-repeat;
    background-position: left;
    background-size: cover;
    background-color: black;
    padding-inline: 100px;
}

.AImodal.show {
    display: flex;
    align-items: center;
}


/* .ai-modal_trigger {
    display: flex;
    align-items: center;
    justify-content: end;
    padding-right: 20px;
    position: fixed;
    width: 209px;
    height: 53px;
    background-color: #003D64;
    border-radius: 20px 20px 0 0;
    transform: rotate(-90deg);

    max-width: calc(-40px + 100vh);
    right: 0px;
    transform-origin: right bottom;
    top: 50%;
    transform: rotate(-90deg) translateX(calc(50% - 30px));
}

.trigger_text { 
    color: #fff;
    
    font-size: 18px;
    font-weight: 500;
    text-align: center;
} */




.logo_trigger {
    z-index: 100000;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background-color: #E1E5EB;
    border-radius: 100px 100px 0 100px;
    right: 40px;
    transform-origin: right bottom;
    bottom: 55px;
    box-shadow: 1px 4px 14px 3px darkgrey;
}

/* .logo_trigger::after {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    background-color: #00EA4E;
    border-radius: 100%;
    border: 2px solid #fff;
    top: 4px;
    right: 4px;
} */




#ai-modal_form {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.ai_title.scnd-page {
    
    color: #003D64;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
}

.ai_form {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    margin: 0 auto;
    padding-top: 24px;
    height: fit-content;
    width: 100%;
    padding: 0 36px 36px 44px;
    height: 100%;
    
}

.ai_form img {
    animation: float 3.2s ease-in-out infinite;
}

.frame {
    color: #003D64;
    cursor: pointer;
    width: 24px;
    height: 24px;
}


.bottom-ai_form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 8px;
    border-top: 1px solid #E6E8EC;
    height: fit-content;
    padding: 16px 24px 16px 24px;
}
.ask-ai_wrapper {
    border-radius: 12px;
    border: 1px solid #E6E8EC;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-inline: 10px;
    padding-block: 8px;
}

.bottom-ai_chat {
    width: 100%;
}

.bottom-ai_chat textarea {
    
    color: #353945;
    font-size: 14px;
    font-weight: 600;
    min-height: 19px;
    height: 19px;
    max-height: 90px;
    border: none;
    outline: none;
    flex-grow: 1;
    resize: none;
    overflow-y: auto;
    line-height: 126%;
}

.bottom-ai_chat textarea::placeholder {
    font-size: inherit;
    font-weight: inherit;
    text-align: left;
    color: #0A1E3266;
}

.bottom-ai_chat textarea::-webkit-scrollbar {
    width: 12px;
}

.ai-send_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    padding: 7px;
    border: none;
    background-color: #003D64;
    border-radius: 7px;
    cursor: pointer;
}
.disabledButton {
    background-color: #B1B3B3 !important;
    cursor: not-allowed;
}



.star_rating {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.rating_text {
    
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #003D64;
}

.stars_block {
    display: flex;
    justify-content: center;
    gap: 16px;

    
}

.stars_block img {
    width: 35.99px;
    height: 34.55px;
    mix-blend-mode: luminosity;
    cursor: pointer;
}

.stars_block img:hover {
    mix-blend-mode: normal;
}

.ai-header_title {
    
    font-size: 18px;
    font-weight: 700;
    color: #003D64;
}








.ai-history_page.ai_block-show {
    grid-template-rows: min-content min-content min-content auto;
}

.ai-catalog_tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
}

.ai-catalog_tab.active {
    background-color: #003D64;
    color: #fff;
}

.ai-catalog_tab {
    width: 100%;
    color: #003D64;
    padding: 8px;
    border: 1px solid #003D64;
    border-radius: 100px;
    text-align: center;
    
    font-size: 16px;
    font-weight: 500;
    transition: all .3s;
}

.ai-catalog_tab:hover {
    background-color: #003D64;
    color: #fff;
}

.ai-form_elem input {
  width: 100%;
  display: flex;
  padding: 12px 16px 12px 18px;
  justify-content: space-between;
  align-items: center;
  border-radius: 1000px;
  border: 1px solid #b1b5c3;
  margin-top: 8px;
  box-shadow: none;
  transition: 0.5s all;
}

.ai-form_elem input:disabled {
  background-color: #f0f0f0;
}
.ai-form_elem select:focus-visible,
.ai-form_elem input:focus-visible {
  outline: none;
  box-shadow: 0px 6px 15px 0px gray;
}
.ai__content label {
    margin-bottom: 0;
}

.ai-search_label {
    display: flex;
    width: 100%;
    padding: 16px;
    border-radius: 25px;
    gap: 8px;
    margin-top: 20px;
    background-color: #EFF2F6;
    
}

.ai-search_label #ai-search-input {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100%;
    
    font-size: 16px;
    font-weight: 500;
    color: #003D64;
    outline: none;
    border: none;
    background-color: transparent;
}

.ai-search_text_list {
    margin-top: 8px;
}

.ai-search_text_list .ai-search_text {
    display:flex;
    align-items: center;
    gap: 8px;
}

.ai-search_text_list .ai-search_text::before {
    content: url("/upload/img/message.png");
    width: 20px;
    height: 20px;
}

.ai-search_text_block + .ai-search_text_block {
    margin-top: 16px;
}

.ai-search_text-grey {
    
    font-size: 12px;
    font-weight: 500;
    color: #0A1E3266;
}

.ai-search_text {
    
    font-size: 16px;
    font-weight: 500;
    color: #353945;
    padding: 8px;
    border-radius: 12px;
    cursor: pointer;
}
.ai-search_text:hover {
    background-color: #EFF2F6;
}

.ai-search_text_wrapper {
    overflow-y: auto;
    padding: 24px;
    padding-top: 0;
    margin-top: 24px;
}

.ai-search_text_wrapper::-webkit-scrollbar,
.chat-box::-webkit-scrollbar {
    width: 3px; /* ширина ползунка */
}
.ai-search_text_wrapper::-webkit-scrollbar-thumb:hover,
.chat-box::-webkit-scrollbar-thumb:hover {
    border: 5px solid red;/* ширина ползунка */
}

.ai-search_text_wrapper::-webkit-scrollbar-track,
.chat-box::-webkit-scrollbar-track {
    background: #c0c0c0; /* фон дорожки */
    border-radius: 5px;
}

.ai-search_text_wrapper::-webkit-scrollbar-thumb,
.chat-box::-webkit-scrollbar-thumb {
    background: #003D64; /* цвет ползунка */
    border-radius: 5px;
}



.chat-message + .chat-message {
    margin-top: 8px;
}

.user-message {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: end;
    text-align: right;
}

.user-message .chat-message-text{
    background-color: #EFF2F6;
    color: #353945;
    border-radius: 12px 0px 12px 12px;
    padding: 8px 12px;
    
    font-size: 14px;
    font-weight: 500;
    word-break: break-word;
    text-align: start;
    max-width: calc(100% - 70px);
}
@keyframes chat-message-pop {
    0% {
        transform: translateY(40%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.chat-message {
    animation: chat-message-pop 0.5s ease-in-out;
}

.chat-box {
    padding-inline: 24px;
    margin-top: 24px;
    overflow: auto;
}

.ai-message {
    display: flex;
    align-items: start;
    gap: 6px;
    font-size: 14px;
}

.ai-message::before {
    content: url("/upload/img/aiLogoSqb.png");
    width: 16px;
    height: 16px;
    padding: 4px;
    background-color: #EFF2F6;
    border-radius: 50%;
    box-sizing: initial
}

/* HTML: <div class="loader"></div> */
/* .ai-loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    --_g: no-repeat radial-gradient(circle closest-side,#B1B3B3  90%,#B1B3B3);
    --_b: no-repeat radial-gradient(circle closest-side,#003D64 90%,#003D64);
    --_r: no-repeat radial-gradient(circle closest-side,#EA0000 90%,#EA0000);
    background: 
        var(--_g) 0%   50%,
        var(--_b) 50%  50%,
        var(--_r) 100% 50%;
    background-size: calc(100%/3) 100%;
    animation: l3 1s infinite linear;
} */
 

.dot-loader {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: bounce 1.5s infinite ease-in-out;
    transform: translateX(-100%);
    /* animation: slideIn 1s forwards ease-out; */
}

.loader-blue {
    background-color: #003D64;
    animation-delay: 0s;
}

.loader-grey {
    background-color: #B1B3B3;
    animation-delay: 0.3s;
}
.loader-red {
    background-color: #EA0000;
    animation-delay: 0.6s;
}

  @keyframes bounce {
    0%, 80%, 100% {
      transform: scale(0);
    }
    40% {
      transform: scale(1);
    }
  }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(-100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }


.ai-dotloader {
    height: 24px;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 2px;
    background-color: #EFF2F6;
    border-radius: 24px;
    width: fit-content;
    padding-inline: 8px;
}

.chat-box .chat-message ul { 
    list-style-position: inside !important;
    list-style-type: revert !important;
}

.chat-box .chat-message ol {
    list-style-type: decimal !important;
}
.chat-box .chat-message ol > li {
    margin-left: 16px;
    margin-bottom: 16px;
}
.chat-box .chat-message ol > li::marker {
    min-width: 16px;
}
.chat-box .chat-message ul > li {
    margin-top: 12px;
}

.chat-box .chat-message ol li:nth-child(n+10) {
    margin-left: 21px;
}
.chat-box .chat-message ol li:nth-child(n+10)::marker {
    min-width: 21px;
}
.chat-box .chat-message ol li p {
    margin: 0;
}
.chat-box .chat-message p {
    margin-bottom: 12px;
}
.chat-box .chat-message ol::marker {
    display: block;
}
.chat-box .chat-message ul + h3 {
    margin-top: 24px;
}


/* dot-windmill */

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: 3px solid;
    border-color: #003D64 #003D64 transparent transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
  }
  .loader::after,
  .loader::before {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid;
    border-color: #EA0000 #EA0000 transparent transparent;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotationBack 0.5s linear infinite;
    transform-origin: center center;
  }
  .loader::before {
    width: 32px;
    height: 32px;
    border-color: #B1B3B3 #B1B3B3 transparent transparent;
    animation: rotation 1.5s linear infinite;
  }
      
  @keyframes rotation {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  } 
  @keyframes rotationBack {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(-360deg);
    }
  }


  .demo-block {
    position: absolute;
    left: 0;
    top: 0;
    background-color: #00b300;
    font-size: 18px;
    color: #fff;
    font-weight: 800;
    width: 100px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(-45deg) translate(-24%, -38%);
  }



.call-chat-box .user-message + .user-message .chat-message-text {
    margin-top: 2px;
    border-radius: 12px;
}
.call-chat-box .operator-message + .operator-message .chat-message-text {
    margin-top: 2px;
    border-radius: 12px 12px 12px 0px;
}
.AImodal .error {
    border-color: red !important;
}
.AImodal .error::placeholder {
    color: red;
}
.disabledButton {
    pointer-events: none;
}
.operator-message .chat-message-text {
    background-color: #e1f3ff;
    color: #353945;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    word-break: break-word;
    text-align: start;
}
.operator-message::before {
    content: url('/upload/img/headphone.png');
    width: 50px;
    height: 50px;
    background-color: #041aff;
    display: flex;
    border-radius: 50%;
    box-sizing: initial;
    align-items: center;
    justify-content: center;
}

.AImodal .w-100 {
    width: 100%;
}

.operator-message {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 10px;
    justify-content: start;
    align-items: end;
}
.chat-box {
    padding-bottom: 8px;
}

.robot-message .chat-message-text {
    background-color: #f0f0f0;
    color: #353945;
    border-radius: 12px;
    padding: 8px 12px;
    
    font-size: 14px;
    font-weight: 500;
    word-break: break-word;
    text-align: start;
}

.robot-message::before {
    content: url("/upload/img/logo.png");
    width: 50px;
    height: 50px;
    background-color: #08fa00;
    display: flex;
    border-radius: 50%;
    box-sizing: initial;
    align-items: center;
    justify-content: center;
}

.chat_date {
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
}
.chat_date .box{
    width: 100%;
    height: 1px;
    background-color: #b1b3b3;
}
.start-chat_data {
    color: #b1b3b3;
}
    
  
/* ------------------------------------------------------------------- */


@media (max-width: 576px) {
    .ai__content {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .ai-robot {
        flex-direction: column;
        gap: 8px;
    }

    .ai-robot img {
        width: 100px;
        height: 100px;
    }

    .ai-robot-title {
        font-size: 18px;
    }

    .ai-form-input,
    .AImodal select {
        padding: 12px 16px 12px 18px;
    }

    .ai-form_title {
        font-size: 20px;
    }

    .ai-form_content {
        gap: 16px;
    }
}