body._lock {
  overflow: hidden;
}

.popup {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  top: 0;
  left: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  overflow-x: hidden;
  transition: all 0.8s ease 0s;
}

.popup.open {
  opacity: 1;
  visibility: visible;
}

.popup.open .popup__content {
  transform: perspective(600px) translate(0px, 0%) rotateX(0deg);
  opacity: 1;
}

.popup__area {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.popup__body {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
  transition: all 0.8s ease 0s;
}

.popup__content {
  background-color: #000;
  color: #fff;
  max-width: 1570px;
  border-radius: 30px;
  width: 100%;
  padding: 32px;
  position: relative;
  transition: all 0.8s ease 0s;
  opacity: 0;
  transform: perspective(600px) translate(0px, -100%) rotateX(45deg);
}

.popup__content_image {
  padding: 0;
}

.popup__image img {
  max-width: 100%;
  vertical-align: top;
}

.content_top {
  width: 100%;
  justify-content: space-between;
  display: flex;
  align-items: center;
}

.popup__title {
  font-size: 40px;
  margin: 0px 0px 30px 0px;
  text-align: center;
  color: #000;
}

.message {
  font-size: 18px;
  text-transform: uppercase;
}

.bot__message {
  background: #4c4c4c;
  border-radius: 30px;
  padding: 14px;
  width: max-content;
}

.cross {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 2;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 670px;
  max-height: 670px;
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
  overflow-y: overlay;
}

.messages::-webkit-scrollbar {
  width: 6px;
}
.messages::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}
.messages::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.person__message {
  align-self: flex-end;
  border-radius: 30px;
  padding: 14px;
  width: max-content;
  background: #c89e4b;
}

.none {
  display: none;
}

.popup__footer {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding-top: 24px;
  border-top: 1px #fff solid;
  margin-top: 20px;
}

.upload {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fac032;
  border-radius: 19px;
  width: max-content;
  padding: 16px 39px;
  font-size: 19px;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
}

.input__wrapper {
  border: 1px #fff solid;
  background: #1a1a1a;
  border-radius: 19px;
  width: 100%;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup__input {
  background: transparent;
  font-size: 20px;
  text-transform: uppercase;
  width: 100%;
}

.typing {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
}

.typing .dot {
  width: 6px;
  height: 6px;
  background-color: #ccc;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}

.typing .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
