/* @import "reset.css"; */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}
[chat-wrapper] {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 40px;
  font-family: inherit;
  margin: auto;
}
.chat-question-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-question {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 16px;
  max-width: 415px;
  animation: fadeInUp 0.35s ease-out both;
  img {
    width: 50px;
  }
  p {
    width: 100%;
    padding: 18px 20px;
    background-color: #19301e;
    color: #f4f1e7;
    font-size: 20px;
    line-height: 130%;
    margin: 0;
    border-radius: 20px 20px 20px 5px;
  }
  &.is-typing p::after {
    content: "▍";
    display: inline-block;
    margin-left: 2px;
    opacity: 0.7;
    animation: caretBlink 0.8s steps(1) infinite;
  }
}
@media screen and (max-width: 500px){
  .chat-question p{
    font-size: 16px;
  }
}
.chat-loading{
  padding: 18px 20px;
  fill: white;
  background-color: #19301e;
  border-radius: 20px 20px 20px 5px;
  animation: fadeInUp 0.35s ease-out both;
  display: block;
  width: 64px;
  height: 60px;
}
.chat-answer{
  margin-left: auto;
  p{
    background-color: #d1e9d2;
    border-radius: 20px 20px 5px 20px;
    color: black;
  }
  img{
    display: none;
  }
}
.chat-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid #dcdce6;
  padding: 10px 15px;
  border-radius: 10px;
  margin: 0;
  margin-left: 66px;
  cursor: pointer;
  color: #19301e;
  font-style: normal;
  font-weight: 300;
  line-height: 130%;
  letter-spacing: -0.16px;
  animation: fadeInUp 0.35s ease-out both;
  span {
    border: 2px solid #dcdce6;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    border-radius: 50%;
  }
  input {
    display: none;
  }
  &:has(input:checked){
    border-color: black;
    span{
      border-color: black;
      background-color: #d1e9d2;
    }
  }
  &:has(input[disabled]){
    filter: opacity(0.7);
    cursor: not-allowed;
  }
}
