.chat-open-button,
.chat-close-button {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 2;
}
.chat-close-button {
  display: none;
}
.chat-overlay {
  opacity: 0;
  z-index: 3;
  transition: transform 0.7s ease, opacity 0.7s ease;
  padding: 30px;
  max-width: 466px;
  width: 100%;
  max-height: 746px;
  height: 100%;
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateX(100%) translateY(-55%);
  background: url(/img/corner-left-top.svg) left top no-repeat,
    url(/img/corner-right-bottom.svg) right bottom no-repeat,
    url(/img/corner-left-bottom.svg) left bottom no-repeat,
    url(/img/corner-right-top.svg) right top no-repeat;
  backdrop-filter: blur(5px);
}
.chat-overlay.show {
  opacity: 1;
  transform: translateX(0) translateY(-55%);
}
.chat-block {
  padding: 16px;
  height: 100%;
  background-image: url(/img/bg-chat.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chat-title {
  color: #f7f7f7;
  font-family: Arial;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.avatars,
.avatars2 {
  display: flex;
  align-items: center;
}
.avatars img:nth-child(2),
.avatars2 img:nth-child(2) {
  z-index: 2;
  margin-left: -4px;
}
.avatars img:nth-child(3),
.avatars2 img:nth-child(3) {
  z-index: 3;
  margin-left: -4px;
}
.ask-question-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background-color: white;
  background-image: url(/img/corner-left-top.svg),
    url(/img/corner-right-bottom.svg), url(/img/corner-left-bottom.svg),
    url(/img/corner-right-top.svg);

  background-repeat: no-repeat;
  background-position: left top, right bottom, left bottom, right top;
  background-size: 20px 20px, 20px 20px, 20px 20px, 20px 20px;
}
.ask-question-block-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ask-question-block-text h3 {
  color: #000;
  font-family: Arial;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.ask-question-block-text p {
  color: #000;
  font-family: Arial;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}
.message {
  animation: fadeInUp 1s ease forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.message p {
  color: #000;
  font-family: Arial;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.user-message {
  padding: 10px;
  max-width: 258px;

  border-radius: 10px 10px 0 10px;
  border: 1px solid #76b900;
  background: #f7f7f7;
  align-self: self-end;
}
.bot-message {
  display: flex;
  align-items: start;
  gap: 6px;
  align-self: self-start;
}
.bot-message .eye-img {
  border-radius: 50%;
  border: 1px solid #76b900;
}
.message-body {
  padding: 10px;
  border-radius: 0 10px 10px 10px;
  background: #76b900;
  max-width: 258px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
}
.message-body img {
  max-width: 198px;
  width: 100%;
}
.chat-body {
  background-color: white;
  background-image: url(/img/corner-left-top.svg),
    url(/img/corner-right-bottom.svg), url(/img/corner-left-bottom.svg),
    url(/img/corner-right-top.svg);

  background-repeat: no-repeat;
  background-position: left top, right bottom, left bottom, right top;
  background-size: 20px 20px, 20px 20px, 20px 20px, 20px 20px;
  padding-inline: 16px;
  padding-top: 0;
  padding-bottom: 16px;
  height: 100%;
  max-height: 344px;
}

.chat-content-list {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-end;
  padding-bottom: 10px;
}
.chat-header-close-button {
  display: none;
}
.chat-content-list::-webkit-scrollbar {
  display: none;
}
.get-started-bttn {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  text-decoration: none;
  animation: fadeInUp 1s ease forwards;
}
.get-started-bttn svg {
  fill: #76b900;
  transition: fill 0.3s ease;
}
.get-started-bttn:hover svg {
  fill: #000;
}
.get-started-bttn p {
  color: #000;
  font-family: Arial;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 169%;
}
.bot-generation {
  display: flex;
  align-items: center;
  gap: 6px;
  animation: fadeInUp 1s ease forwards;
}

.bot-generation p {
  font-family: Arial;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  background: linear-gradient(90deg, #000, #ccc, #000);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 3s linear infinite;
}

@keyframes gradientText {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: -100% 50%;
  }
}
.avatars2 {
  display: none;
}
.chat-logo {
  max-width: 174px;
}
.go-to-reg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 12px;
  margin-top: 10px;
  animation: fadeInUp 1s ease forwards;
}
.go-to-reg p {
  color: #000;
  font-family: Arial;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
}

@media (max-width: 800px) {
  .chat-open-button img {
    max-width: 60px !important;
    max-height: 60px !important;
  }
  .chat-close-button img {
    display: none;
  }
  .chat-open-button {
    bottom: 16px;
    right: 16px;
  }
  .chat-overlay {
    opacity: 0;
    transition: transform 0.7s ease, opacity 0.7s ease;
    max-width: 342px;
    max-height: 548px;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
  }

  .chat-overlay.show {
    opacity: 1;
    transform: translateX(-50%) translateY(10%);
  }
  .chat-logo {
    max-width: 122px;
  }
  .chat-title {
    font-size: 20px;
    line-height: normal;
    text-transform: capitalize;
  }
  .chat-header-close-button {
    display: block;
  }
  .avatars {
    display: none;
  }
  .avatars2 {
    display: flex;
  }
  .chat-header {
    margin-bottom: 18px;
  }
  .ch-title {
    display: flex;
    align-items: start;
  }
  .ask-question-block-text h3 {
    font-size: 18px;
  }
  .ask-question-block-text p {
    font-size: 14px;
  }
  .ask-question-block {
    padding: 10px;
  }
  .chat-body {
    max-height: 228px;
    padding-inline: 6px;
    padding-bottom: 12px;
  }
  .chat-block {
    padding: 20px;
  }
  .chat-overlay {
    padding: 20px;
  }
  .message p {
    font-size: 14px;
  }
  .user-message {
    max-width: 208px;
    width: auto;
  }
  .chat-content-list {
    padding-bottom: 0px;
  }
  .bot-message {
    gap: 10px;
  }
  .message-body {
    margin-top: 0px;
    max-width: 200px;
  }
}
