#product-reviews {
  --highlight-color: #DF703D;
}

#product-reviews .product-reviews__title {
  margin: 0 0 3rem;
}

#product-reviews .product-reviews__container {
  display: flex;
  gap: 50px;
}

#product-reviews .product-reviews__summary {
  min-width: 350px;
  max-width: 350px;

  & .product-reviews__summary__header {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
  }

  & .product-reviews__summary__avg {
    font-size: 5rem;
    font-weight: 600;
    color: var(--highlight-color);
  }

  & .product-reviews__summary__total {
    color: #98989a;
  }

  & .product-reviews__summary__bars {
    width: 100%;
    border: 0;

    & tr {
      & td {
        width: 85%;

        & div {
          width: 100%;
          height: 5px;
          background-color: #cfcfcf;
          border-radius: 3px;
        }
      }
    }

    & .product-reviews__summary__bar {
      height: 5px;
      background-color: var(--highlight-color);
      border-radius: 3px;
    }
  }
}

#product-reviews .product-reviews__stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: max-content;
}

#product-reviews .product-reviews__review {
  margin-bottom: 3rem;

  & .product-reviews__review__header-container {
    display: flex;
    align-items: start;
    justify-content: space-between;
  }

  & .product-reviews__review__header {
    display: flex;
    align-items: start;
    gap: 0;
    flex-direction: column;
  }

  & .product-reviews__review__author-name {
    font-weight: 600;
  }

  & .product-reviews__review__date {
    color: #98989a;
    font-size: 1.2rem;
  }

  & .product-reviews__review__text {
    margin: 0;
  }
}

#product-reviews .product-reviews__pagination {
  display: flex;
  justify-content: center;

  & .active {
    color: var(--highlight-color);
  }

  & button {
    background: none;
    border: 1px solid #e9eaea;
    color: var(--highlight-color);
    border-right-width: 0;
    border-collapse: separate;
    height: 36px;
    min-width: 30px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
  }

  & button:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
  }

  & button:last-child {
    border-right-width: 1px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
  }

  & button:disabled {
    color: #73818f;
    cursor: default;
  }

  & button.active {
    background-color: var(--highlight-color);
    color: #fff;
    border-width: 0;
  }

  & button:hover:not(:disabled) {
    background-color: #e4e7ea;
  }
  & button.active:hover {
    background-color: var(--highlight-color);
  }
}

.product-reviews__rating-filter {
  position: relative;
  display: inline-block;

  & .button {
    margin-bottom: 20px;
    color: var(--highlight-color) !important;
  }

  & .button:after {
    box-shadow: 0 0 0 calc(var(--buttons-border-width) + var(--border-offset)) var(--highlight-color),0 0 0 var(--buttons-border-width) rgba(var(--color-button),var(--alpha-button-background))
  }

  & .button:not([disabled]):hover:after {
    box-shadow: 0 0 0 calc(var(--buttons-border-width) + var(--border-offset)) var(--highlight-color),0 0 0 var(--buttons-border-width) rgba(var(--color-button),var(--alpha-button-background))
  }

  & .product-reviews__rating-filter__content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    border-radius: 4px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;

    & a {
      color: black;
      padding: 12px 16px;
      text-decoration: none;
      display: block;
      cursor: pointer;
    }

    & a:hover {
      background-color: #f1f1f1
    }

    &.show {
      display: block;
    }
  }
}

@media screen and (max-width: 749px) {
  #product-reviews .product-reviews__container {
    flex-direction: column;
  }
}
