/*Chat*/

.chat {
  padding-bottom: 7em;
}

.chat__title {
  margin-bottom: 2.5em;
}
.chat__title :where(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 0.3em;
}

.chat p {
  font-weight: 600;
}

.chat__wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 3em;
}

.chat__image,
.chat__list {
  width: calc(50% - 3em / 2);
}

.chat__image-text {
  background-color: var(--color-red-dark);
  border-radius: 0.8em;
  text-align: center;
  padding: 1.5em 1em;
  max-width: 26em;
}

.chat__image svg {
  width: 100%;
  max-width: 26em;
}

.chat__image-text p {
  color: var(--color-warm-white);
  font-size: 0.95em;
}

.chat__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 1.45em;
}

.chat__list-item {
  border-radius: 0.8em;
  padding: 1em 1.2em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--color-warm-white);
  max-width: 85%;
  line-height: 1.25;
  font-size: 1.1em;
}

.chat__list-item.dark-text {
  color: var(--color-black);
  margin-left: 0;
  margin-right: auto;
}

.chat-icon img {
  display: block;
  max-width: 3em;
  width: 100%;
}

@media only screen and (max-width: 767px) {
  .chat__image,
  .chat__list {
    width: 100%;
  }

  .chat__image-text,
  .chat__image svg {
    max-width: 100%;
  }

  .chat__image-text p {
    font-size: 1.2em;
  }

  .chat__list-item {
    font-size: 1.4em;
  }

  .chat__image {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .chat__image svg {
    max-width: 80%;
  }

  .chat__title {
    text-align: center;
  }

  .chat__title h5 {
    font-size: 2.8em;
  }

  .chat__list {
    padding: 0 2em;
  }
}

@media only screen and (max-width: 479px) {
  .chat__image svg {
    max-width: 95%;
  }

  .chat__image-text p {
    font-size: 1em;
  }

  .chat__list-item {
    font-size: 1.1em;
  }

  .chat__list {
    padding: 0;
  }
}