.section__ai {
  padding: 180px 0 120px;
  width: 100%;
  min-height: calc(100vh - 581px);
}

.section__ai .container__layout {
  padding: 0 70px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  justify-content: center;
  align-items: center;
}

.section__ai--title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.section__ai--title.hidden {
  display: none;
}

.section__ai--title h3 {
  font-size: 60px;
  font-weight: 700;
  line-height: 80px;
}

.section__ai--title p {
  font-size: 22px;
  font-weight: 400;
  line-height: 33px;
  text-align: center;
}

.section__ai--chatbox {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--light-grey-color);
  max-width: 900px;
  width: 100%;
}

.ai__chatbox--item {
  max-width: 160px;
  padding: 12px;
  background-color: var(--extra-light-grey-color);
  cursor: pointer;
}

.ai__chatbox--input {
  width: 100%;
  height: 44px;
  outline: none;
  border: none;
  padding-right: 50px;
  font-size: 22px;
}

.ai__chatbox--send-btn {
  width: 40px;
  height: 40px;
  min-height: 40px;
  min-width: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
}

.ai__chatbox--send-btn img {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

.section__ai--main {
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
}

.section__ai--main.active {
  display: flex;
}

.ai__main--line {
  width: 100%;
  height: 1px;
  background: #858c94;
  min-height: 1px;
}

.section__ai--main .ai__main--title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
}

.section__ai--main .ai__main--title h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 40px;
}

.section__ai--main .ai__main--title button {
  outline: none;
  padding: 8px 12px;
  color: var(--main-white-color);
  background: var(--light-grey-color);
  border-radius: 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.ai__main--chat {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ai__main--chat-row {
  width: 100%;
}

.ai__main--chat-row {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.ai__main--chat-row.ai {
  align-items: flex-start;
}

.ai__main--chat-row.ai .ai__main--chat-item {
  background-color: var(--primary-color);
  color: var(--main-white-color);
}

.ai__main--chat-row .ai__main--chat-item {
  max-width: 50%;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  border-radius: 24px;
  color: var(--medium-grey-color);
  background-color: var(--soft-grey-color);
}

.ai__main--chat-item.is__chatting {
  height: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ai__main--chat-item.is__chatting div {
  width: 60px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, var(--white-color) 80%, var(--white-color)0);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: l3 1s infinite linear;
}

@keyframes l3 {
  20% {
    background-position: 0% 0%, 50% 50%, 100% 50%;
  }

  40% {
    background-position: 0% 100%, 50% 0%, 100% 50%;
  }

  60% {
    background-position: 0% 50%, 50% 100%, 100% 0%;
  }

  80% {
    background-position: 0% 50%, 50% 50%, 100% 100%;
  }
}