@import '../../../../styles/vars/breakpoints.css';

.rating {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  padding: 30px;
  /* max-height: 130px; */
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  box-sizing: border-box;
  @media (--ms-and-down) {
    padding: 21px 6px;
    /* max-height: 96px; */
  }

  /* &.expanded {
    max-height: 400px;
  } */
}

.stars {
  margin-bottom: 30px;
  text-align: center;
}

.iconStar {
  width: 80px !important;
  height: 80px !important;
  margin-right: 30px !important;
  cursor: pointer !important;

  @media (--ms-and-down) {
    width: 53px !important;
    height: 53px !important;
    max-width: calc((100vw - 30px - 20px * 4) / 5) !important;
    max-height: calc((100vw - 30px - 20px * 4) / 5) !important;
    margin-right: 20px !important;
    &:last-child {
      margin-right: 0 !important;
    }
  }

  & use {
    fill: #fff !important;
  }

  &:last-child {
    margin-right: 0  !important;;
  }
  &.upActive {
    color: #E7E7E7 !important;
    & use {
      fill: #F3F3F3 !important;
    }
  } 
}

.message {
  width: 100%;
  min-height: 92px;
  box-sizing: border-box;
  border-radius: 8px;
  border: solid 2px rgba(#e8e8e8, 0.2);
  margin: 0 0 17px;
  font-size: rem(15px);
  letter-spacing: 0.85px;
  color: rgba(#000, 0.6);
  padding: 13px 13px;
  background-color: #ffffff;
  resize: none;
  outline: none;
  box-shadow: 0 2px 15px 0 rgba(93,95,102,0.15);
  word-break: break-word;
}

.message::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  /* font-family: 'Montserrat'; */
  font-size: rem(14px);
  line-height: 1.57;
  color: #787878;
}

.message::-moz-placeholder {
  /* Firefox 19+ */
  /* font-family: 'Montserrat'; */
  font-size: rem(14px);
  line-height: 1.57;
  color: #787878;
}

.message:-ms-input-placeholder {
  /* IE 10+ */
  /* font-family: 'Montserrat'; */
  font-size: rem(14px);
  line-height: 1.57;
  color: #787878;
}

.message:-moz-placeholder {
  /* Firefox 18- */
  /* font-family: 'Montserrat'; */
  font-size: rem(14px);
  line-height: 1.57;
  color: #787878;
}

.send {
  padding: 20px 39px;
  align-self: flex-start;
  border-radius: 29.5px;
  background-color: #8513e8;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  @media (--xs-only) {
    padding: 15px 20px;
  }

  .btnText {
    color: #ffffff;
    font-size: 0.9375rem;
    letter-spacing: 0.4px;
    font-weight: 600;
    z-index: 2;
  }

  &:before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 1);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  &:hover,
  &:focus,
  &.active {
    &:before {
      opacity: 0.08;
    }
  }
  &.loading {
    pointer-events: none;
    opacity: 0.85;
  }
}

.bottom {
  max-width: 520px;
  margin: 0 auto;
  @media (--ms-and-down) {
    width: auto;
    margin: 0 15px;
    box-sizing: border-box;
  }
}

.box {
  border-radius: 8px;
  background-color: rgb(192, 201, 229, 0.2);
  padding: 16px 20px;
  box-sizing: border-box;
  margin-bottom: 15px;
}

.title {
  width: 100%;
  color: #282828;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 20px;
  margin-bottom: 10px;
}

.desc {
  width: 100%;
  opacity: 0.8;
  color: #282828;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.35px;
  line-height: 18px;
}
