@font-face {
  font-family:"Font Awesome 5 Free";
  font-style:normal;
  font-weight:900;
  font-display:block;
  src:url(/static/vendor/fontawesome-free/webfonts/fa-solid-900.eot);
  src:url(/static/vendor/fontawesome-free/webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),
  url(/static/vendor/fontawesome-free/webfonts/fa-solid-900.woff2) format("woff2"),
  url(/static/vendor/fontawesome-free/webfonts/fa-solid-900.woff) format("woff"),
  url(/static/vendor/fontawesome-free/webfonts/fa-solid-900.ttf) format("truetype"),
  url(/static/vendor/fontawesome-free/webfonts/fa-solid-900.svg#fontawesome) format("svg")
}


button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
    cursor: pointer;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    padding: 0;
    border-style: none;
}

input[type="radio"],
#chatTextInput[type="checkbox"] {
    box-sizing: border-box;
    padding: 0;
}

#chatTextInput:not([type="checkbox"]) {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #6e707e;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    input {
        transition: none;
    }
}


@keyframes shakeAnimation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.chat-widget-card {
    position: fixed;
    bottom: -600px;
    right: 20px;
    width: 400px;
    height: 500px;
    background-color: white;
    text-decoration-color: #858796;
    box-shadow: -2px 0px 6px rgba(0, 0, 0, 0.3);
    transition: bottom 0.3s ease-in-out;
    z-index: 9998;
    border-radius: 24px;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    box-sizing: border-box;
}

.chat-widget-card.show {
    bottom: 0;
    margin-bottom: 20px;
}

.chat-widget-card a {
    color: #9DD259;
  text-decoration: none;
  background-color: transparent;
}

.chat-widget-card.card-body {
    height: calc(100% - 56px);
}

/* Стили скроллбара */
.card-body::-webkit-scrollbar {
    width: 6px;
}

.card-body::-webkit-scrollbar-track {
    background: none;
}

.card-body::-webkit-scrollbar-thumb {
    background-color: lightgrey;
    border-radius: 20px;
    border: none;
}

.chat-widget-card-header {
    border-radius: calc(0.35rem - 1px) calc(0.35rem - 1px) 0 0;
    margin-bottom: 0;
    background-color: transparent;
    border-bottom: none;
    padding: 1rem !important;
    align-items: center !important;
    justify-content: space-between !important;
    display: flex !important;
}

.mb-card-0 {
    margin-bottom: 0 !important;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 0;
}

.chat-widget-close-btn {
    border-radius: 100%;
    height: 2.5rem;
    width: 2.5rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #69321f;
    border: none;
    font-weight: 400;
    color: #858796;
    text-align: center;
    padding: 0.375rem 0.75rem;
    user-select: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    line-height: 1.5;
}

#chatbox {
    scroll-behavior: smooth;
    flex: 1 1 auto;
    min-height: 1px;
    padding: 1.25rem;
    overflow: auto !important;
    box-sizing: border-box;
}

.bot-message-row {
    display: flex !important;
    margin-bottom: 0.5rem !important;
}

.bot-message {
    background-color: #FCDCD0;
    border-radius: 12px;
    padding: 0.5rem !important;
    display: flex !important;
    margin-left: 0.5rem !important;
    flex-direction: column !important;
}

.bot-message-time {
    color: #745144;
    font-size: 10px;
    margin-bottom: 0.5rem !important;
}

.bot-message-text {
    font-size: 80%;
    font-weight: 400;
}

.bot-message-keyboard-field {
    margin-top: 1rem !important;
}

.bot-message-keyboard-btn {
    background-color: #FFF;
    border: none;
    color: #000;
    display: block;
    width: 100%;
    margin-top: 0.5rem;

    font-weight: 400;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.35rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.bot-message-keyboard-btn:hover {
    text-decoration: none;
    background-color: #fff4f0;
    color: #000;
}

.user-message-row {
    margin-bottom: 0.5rem !important;
}

.user-message {
    background-color: #F2F2F2;
    border-radius: 12px;
    padding: 0.5rem !important;
    display: flex !important;
    flex-direction: column !important;
}

.user-message-time {
    color: #745144;
    font-size: 10px;
    margin-bottom: 0.5rem !important;
}

.user-message-text {
    font-size: 80%;
    font-weight: 400;
}

.chat-widget-footer {
    border-radius: 0 0 calc(0.35rem - 1px) calc(0.35rem - 1px);
    padding: 1rem !important;
    justify-content: flex-start !important;
    background-color: transparent;
    border-top: none;
    align-items: center !important;
    display: flex !important;
    color: #858796 !important;
    box-sizing: border-box;
}

.chat-widget-input-group {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
}

#chatTextInput {
    position: relative;
    height: 50px;
    font-size: 16px;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    margin-bottom: 0;
}

.chat-widget-btn-group {
    display: flex;
    margin-left: -1px;
}

.btn-icons {
    color: #69321f;
    transition: transform 0.2s;
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
}

.shake {
    animation-name: shakeAnimation;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

#botChatToggleBtn {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    border: none;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
}

.last-row-bot {
    clear: both;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0px 8px 0px;
    line-height: 1.42857143;
    gap: 4px;
}

.last-row-button-bot {
    flex-grow: 1;
    margin: 0;
    padding: 10px;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    line-height: 1.42857143;
}

.custom-close-icon {
    color: white;
    font-size: 24px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.custom-close-icon:before {
    content: "\f00d"
}

#chat-bot-icon-comments {
    color: #858796;
    font-family: "Font Awesome 5 Free";
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font-weight: 900;
}

#chat-bot-icon-comments:before {
    content: "\f086";
}

#chat-bot-restart {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

#chat-bot-restart:before {
    content: "\f2f1";
}

#chat-bot-send {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

#chat-bot-send:before {
    content: "\f1d8";
}