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

.button {
  position: relative;
  width: $width;
  background-color: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.02);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid $border-color;
  border-top-left-radius: 4px;
  &:hover {
    .textMessageMeta {
      opacity: 0.5;
      height: 14px;
      margin-top: 6px;
    }
  }
  &.active {
    border-color: darken($primary-color, 20);
  }
}

.buttonHeader {
  @include textMessage;
  border: none;
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom: 1px solid $border-color;
  box-shadow: none;
  transition: 0.2s ease-out;
  &.active {
    background-color: $primary-color;
    color: #fff;
    input::placeholder {
      color: rgba(#fff, 1) !important;
    }
  }
}

.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;
}

.buttonHeaderText {
  @include textMessageInput;
}

.buttonHeaderNoBorder {
  border-bottom: none;
}

.buttonHeaderTextPlaceholder {
  opacity: 0.3;
}

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

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