@import "../../constants/index.scss";

.text {
  position: relative;
}

.textMessage {
  @include textMessage;
  transition: 0.2s ease-out;
  &:hover {
    .textMessageMeta {
      opacity: 0.5;
      height: 14px;
      margin-top: 6px;
    }
  }
  &.active {
    background-color: $primary-color;
    color: #fff;
    border-color: darken($primary-color, 20);
    input::placeholder {
      color: rgba(#fff, 1) !important;
    }
  }
}

.textMessageText {
  @include textMessageInput;
}

.textMessageTextPlaceholder {
  opacity: 0.3;
}

.textMessageMeta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 0px;
  font-weight: 600;
  height: 0;
  opacity: 0;
  transition: 0.1s ease-out;
}

.quickReplies {
  display: flex;
  align-items: center;
  margin-top: 8px;
  max-width: $screen-width;
}

.quickRepliesArrow {
  width: 46px !important;
  height: 46px !important;
  z-index: 3;
  left: auto !important;
  right: -8px !important;
  transition: 0.2s ease-out;
  filter: drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.1));
  svg > g {
    fill: #fff;
  }
  &:before {
    content: none !important;
  }
}

.quickRepliesArrowPrev {
  left: -8px !important;
  right: auto !important;
  transform: rotate(180deg) translateY(50%) !important;
}

.error {
  border: 1px solid #ef8b93;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  cursor: not-allowed;
}
