@media screen and (max-width: 768px) {
  body:has(.chat.active) {
    overflow: hidden;
  }
  body:has(.chat.active) .menu {
    display: none !important;
  }
}

.chat-trigger {
  position: fixed;
  right: 96px;
  bottom: -300px;
  z-index: 800;
  opacity: 0;
  transition: bottom 0.6s ease, opacity 0.6s ease;
}
@media screen and (max-width: 768px) {
  .chat-trigger {
    right: 0;
  }
}
.chat-trigger.active {
  bottom: 0;
  opacity: 1;
}
@media screen and (max-width: 768px) {
  .chat-trigger.active {
    bottom: 80px;
  }
}
.chat-trigger:before {
  content: "";
  position: absolute;
  width: 130px;
  height: 200px;
  left: -20px;
  top: -80px;
  cursor: pointer;
}
.chat-trigger spline-viewer {
  width: 400px;
  height: 300px;
  position: absolute;
  top: -190px;
  left: -147px;
  pointer-events: none;
  transform: scale(0.75);
}
.chat-trigger--content {
  width: 88px;
  height: 88px;
  background-color: #0D0D0B;
  transition: box-shadow 0.3s ease-in-out;
  padding: 58px 8px 0 8px;
  cursor: pointer;
}
.chat-trigger--content span {
  color: #FFE55E;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  display: block;
  text-align: center;
  text-transform: uppercase;
  font-family: "Sk-Modernist", sans-serif;
}
.chat-trigger--content:hover {
  box-shadow: -4px -12px 20px rgba(255, 216, 14, 0.35);
}
.chat-trigger--content:focus, .chat-trigger--content:active {
  box-shadow: -4px -12px 20px rgba(255, 216, 14, 0.65);
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.chat {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 900;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 4px 72px rgba(21, 22, 18, 0.32), 0px 8px 16px rgba(21, 22, 18, 0.24);
}
.chat:not(.active) {
  display: none;
}
.chat--content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.chat--body {
  overflow-y: auto;
  flex-grow: 1;
  padding: 20px 24px;
  scrollbar-width: thin;
  scrollbar-color: #989896 #E0E1DE;
}
.chat--body::-webkit-scrollbar {
  width: 4px;
}
.chat--body::-webkit-scrollbar-track {
  background: #E0E1DE;
  border-radius: 0;
}
.chat--body::-webkit-scrollbar-thumb {
  background-color: #989896;
  border-radius: 0;
}
.chat--message {
  padding: 0 40px 16px 70px;
  min-height: 48px;
  background-size: 32px 32px;
  background-repeat: no-repeat;
  background-image: url(../img/chat/user-1.png);
  background-position: right bottom 16px;
  text-align: right;
}
.chat--message.bot-message {
  padding: 0 70px 16px 40px;
  background-image: url(../img/chat/bot-1.png);
  background-position: left bottom 16px;
  text-align: left;
}
.chat--message.bot-message .chat--message-text {
  background-color: #FFF7A1;
  border-right: none;
  border-left: 2px solid #F8C923;
}
.chat--message.bot-message .chat--message-text a {
  color: #4B2EFF;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 15%;
  text-underline-offset: 20%;
  font-weight: bold;
}
.chat--message-text {
  color: #4B4C48;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0.0025em;
  font-family: "Sk-Modernist", sans-serif;
  padding: 10px 15px;
  background-color: #F1F1F0;
  border-right: 2px solid #E0E1DE;
  display: inline-block;
}
.chat--message-text .loading-message {
  padding-left: 24px;
  position: relative;
}
.chat--message-text .loading-message:before {
  content: "";
  position: absolute;
  left: 0;
  width: 14px;
  height: 14px;
  top: 2px;
  border-radius: 50%;
  border: 2px solid #ffd911;
  border-left: 2px solid var(--black-700);
  animation: spinner 1s linear infinite;
}
.chat--message-text h1, .chat--message-text h2, .chat--message-text h3, .chat--message-text h4, .chat--message-text h5, .chat--message-text h6 {
  margin: 0 0 16px !important;
  padding: 0 !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  color: #151612 !important;
}
.chat--message-text p {
  margin: 0 0 16px !important;
}
.chat--message-text ul, .chat--message-text ol {
  margin: 0 0 16px !important;
  padding-left: 20px !important;
}
.chat--close {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}
.chat--header {
  height: 96px;
  padding: 20px 20px 16px 135px;
  border-bottom: 2px solid #F1F1F0;
  background-image: url("../img/chat/chat-logo-1.png");
  background-repeat: no-repeat;
  background-size: 110px 96px;
  background-position: left center;
  box-shadow: 0px 4px 64px rgba(204, 205, 202, 0.25);
}
@media screen and (max-width: 768px) {
  .chat--header {
    background-image: url("../img/chat/chat-logo-mobile.png");
  }
}
.chat--header-content h4 {
  color: #1E1F1A;
  margin: 0 0 3px;
  padding: 0;
  font-family: "Sk-Modernist", sans-serif;
}
.chat--header-content p {
  color: #4B4C48;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-family: "Sk-Modernist", sans-serif;
}
.chat--close {
  cursor: pointer;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 5L5 19' stroke='%231E1F1A' stroke-width='2' stroke-linecap='square' stroke-linejoin='round'/%3E%3Cpath d='M5 5L19 19' stroke='%231E1F1A' stroke-width='2' stroke-linecap='square' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  position: absolute;
  top: 16px;
  right: 16px;
}
.chat--footer {
  min-height: 84px;
  padding: 12px 24px 24px 24px;
  border-top: 1px solid #F1F1F0;
  box-shadow: 0px 4px 64px rgba(204, 205, 202, 0.25);
}
.chat--content {
  display: flex;
  flex-direction: column;
}
.chat--form {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.chat--form textarea {
  height: 48px;
  width: calc(100% - 56px);
  padding: 12px 16px;
  background-color: #F5F6F5;
  border: none;
  outline: none;
  color: #1E1F1A;
  font-size: 16px;
  line-height: 1.5;
  font-family: "Sk-Modernist", sans-serif;
  transition: height 0.2s ease;
  min-height: 48px;
  max-height: 160px;
  resize: none;
  overflow: hidden;
  box-sizing: border-box;
  letter-spacing: 0.0025em;
}
.chat--form textarea::placeholder {
  color: #7B7C7A;
}
.chat--form button {
  width: 48px;
  height: 48px;
  border: none;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_2019_328)'%3E%3Cpath d='M21 3L13.8995 19.7227L11 12.5L4.00002 9.82322L21 3Z' stroke='%231E1F1A' stroke-width='2' stroke-linecap='square'/%3E%3Cpath d='M14 9.5L11 12.5' stroke='%231E1F1A' stroke-width='2'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_2019_328'%3E%3Crect width='24' height='24' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  background-color: #FFD80E;
  transition: background-color 0.3s ease;
}
.chat--form button:hover {
  background-color: #ffe03e;
}
.chat--form button:focus, .chat--form button:active {
  background-color: #ffe55e;
}

@media screen and (min-width: 768px) {
  .chat {
    right: 40px;
    bottom: 48px;
    width: 528px;
    height: 100%;
    max-height: 680px;
  }
}