@import url(https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);

:root {
  --reviews-primary-color: #042a2b;
  --reviews-secondary-color: #8da3a3;
  --reviews-tertiary-color: #1b4747;
  --reviews-light-green: #c5d0d0;
}

.reviews-section {
  background-color: white;
  margin-bottom: 2%;
  padding: 2% 4%;
  width: 100%;
  color: #072a2b;
  font-weight: 500;
  font-family: "Chivo  Medium";
}

.reviews-section .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  grid-column-gap: 12px;
  grid-row-gap: 0px;
  padding: 0 6%;
}

.reviews-section .grid .title {
  grid-area: 1 / 1 / 2 / 3;
}

.reviews-section .grid .dropdown {
  grid-area: 1 / 3 / 2 / 4;
  display: flex;
  flex-direction: column;
}
.reviews-section .grid .main {
  grid-area: 2 / 2 / 3 / 4;
  position: relative;
}
.reviews-section .grid .side {
  grid-area: 2 / 1 / 3 / 2;
}

.reviews-section h2 {
  font-size: 24px;
  line-height: 45px;
  color: #072a2b;
  font-family: "Recoleta Alt";
  font-weight: 500;
  margin-bottom: 48px;
  margin-top: 0px;
}

.reviews-section .reviews-wrapper {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 0 6%;
}

.reviews-section .reviews-average {
  width: 329px;
  height: 290px;
  border-radius: 30px;
  background-color: var(--reviews-tertiary-color);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.reviews-section .reviews-average #reviews-average-value {
  font-size: 50px;
}

.reviews-section .reviews-display ul {
  margin-bottom: 16px;
  margin-right: 0px !important;
}

.reviews-section .reviews-display li {
  list-style: none;
  border-bottom: 0.5px solid #707070;
  margin-bottom: 32px;
}

.reviews-section .reviews-display .item-reviewed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  grid-column-gap: 12px;
  grid-row-gap: 0px;
}

.reviews-section .reviews-display li:last-of-type {
  margin-bottom: 0px;
}

.reviews-section .reviews-display .reviewer-infos {
  grid-area: 1 / 1 / 3 / 2;
  padding-left: 32px;
}

.reviews-section .reviews-display .reviewer-name {
  font-size: 22px;
  line-height: 22px;
  margin-bottom: 22px;
  margin-top: 0px;
  font-weight: bold;
}

.reviews-section .reviews-display .review-date {
  font-size: 13px;
}

.reviews-section .reviews-display .review-rating {
  grid-area: 1 / 2 / 2 / 5;
}

.reviews-section .reviews-display .comment {
  grid-area: 2 / 2 / 3 / 5;
  padding-right: 32px;
}

.reviews-section .reviews-display .comment p {
  font-size: 16px;
  line-height: 24px;
  padding-left: 2px;
}

.reviews-section .reviews-display .comment .comment-read-more-btn {
  display: none;
  margin-bottom: 1.5em;
  float: right;
  margin-top: -12px;
  cursor: pointer;
}

.reviews-section .reviews-display .google-logo {
  margin-top: -15px;
  max-height: 18px;
  margin-bottom: 16px;
}

.reviews-section .reviews-pagination-wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.reviews-section .reviews-pagination {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-left: 5%;
  cursor: pointer;
}

.reviews-section .reviews-pagination .previous.disabled,
.reviews-section .reviews-pagination .next.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.reviews-section .review-tabs {
  display: flex;
  flex-direction: column;
  width: 329px;
  margin-top: 40px;
}

.reviews-section .review-tabs .review-tab-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 4px;
  padding-left: 10px;
  cursor: pointer;
}

.reviews-section .review-tabs .review-tab-item.selected {
  background-color: var(--reviews-light-green);
  border-radius: 8px;
}

.reviews-section .review-tabs .star {
  font-size: 20px;
  margin-right: 8px;
  width: 60px;
}

.reviews-section .review-tabs .star::after {
  content: url(../images/star.svg);
  height: 16px;
  width: 16px;
  display: inline-block;
  margin-left: 4px;
}

.reviews-section .review-tabs .rating-count {
  margin-left: 12px;
  width: 150px;
}

.reviews-section .review-bar {
  background-color: var(--reviews-secondary-color);
  height: 16px;
  margin-top: 4px;
  width: 100%;
}

.reviews-section .review-bar-inner {
  background-color: var(--reviews-primary-color);
  height: 16px;
}

/****** Style Star Rating Widget *****/

.reviews-section .rating {
  border: none;
  float: left;
  padding: 0 !important;
}

.reviews-section .rating > input {
  display: none;
}
.reviews-section .rating > label:before {
  margin: 0 2px;
  display: inline-block;
  content: url(../images/star.svg);
  height: 16px;
  width: 16px;
}

.reviews-section .rating > .half:before {
  content: url(../images/half-star.svg);
  height: 16px;
  width: 16px;
  position: absolute;
}

.reviews-section .rating > label {
  color: #ddd;
  float: right;
  display: none;
}

.reviews-section .reviews-average .rating > label:before {
  font-size: 25px;
  height: 25px;
  width: 25px;
}

.reviews-section .rating > input:checked ~ label {
  color: var(--reviews-primary-color);
  display: block;
}

.reviews-section .reviews-average .rating > label {
  color: #8da3a3;
  filter: brightness(0) invert(1) opacity(0.3);
  display: block !important;
}

.reviews-section .reviews-average .rating > input:checked ~ label {
  filter: brightness(0) invert(1);
}

/* dropdown */

.reviews-section .dropbtn {
  height: 50px;
  width: 300px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border: none;
  -webkit-box-shadow: 0px 0px 10px 0px rgba(4, 42, 43, 0.3);
  -moz-box-shadow: 0px 0px 10px 0px rgba(4, 42, 43, 0.3);
  box-shadow: 0px 0px 10px 0px rgba(4, 42, 43, 0.3);
  color: var(--reviews-primary-color);
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  border-radius: 25px;
  min-width: 240px;
  font-size: 14px;
  line-height: 14px;
}

.reviews-section .dropbtn .dropdown-arrow {
  /* margin-left: 12px; */
  transform: rotate(270deg);
  max-width: 9px;
}

.reviews-section .dropbtn .dropdown-arrow img {
  transition: all 0.3s ease-in-out;
}

.reviews-section .dropbtn .dropdown-arrow.clicked img {
  transform: rotate(180deg);
}

.reviews-section .dropbtn:hover .dropdown-arrow img,
.reviews-section .dropbtn:focus .dropdown-arrow img {
  filter: brightness(0) invert(1);
}

.reviews-section .dropbtn #dropdown-value {
  pointer-events: none;
}

/* Dropdown button on hover & focus */

.reviews-section .dropbtn:hover,
.reviews-section .dropbtn:focus {
  background-color: var(--reviews-tertiary-color);
  color: white;
}

/* The container <div> - needed to position the dropdown content */

.reviews-section .dropdown {
  position: relative;
  display: inline-block;
  justify-self: end;
}

/* Dropdown Content (Hidden by Default) */

.reviews-section .dropdown-content {
  display: none;
  margin-top: 62px;
  position: absolute;
  background-color: white;
  width: 300px;
  -webkit-box-shadow: 0px 0px 15px 0px rgba(4, 42, 43, 0.3);
  -moz-box-shadow: 0px 0px 15px 0px rgba(4, 42, 43, 0.3);
  box-shadow: 0px 0px 15px 0px rgba(4, 42, 43, 0.3);
  z-index: 1;
}

/* Links inside the dropdown */

.reviews-section .dropdown-content a {
  color: var(--reviews-tertiary-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */

.reviews-section .dropdown-content a:hover {
  background-color: var(--reviews-tertiary-color);
  color: white;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */

.reviews-section .show {
  display: block;
}

@media screen and (max-width: 768px) {
  .reviews-section .grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    grid-column-gap: 0px;
    grid-row-gap: 24px;
    padding: 0;
  }

  .reviews-section .grid .title {
    grid-area: 1 / 1 / 2 / 2;
  }

  .reviews-section .grid .title h2 {
    margin-bottom: 0px;
  }

  .reviews-section .grid .side {
    grid-area: 2 / 1 / 3 / 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .reviews-section .grid .dropdown {
    grid-area: 3 / 1 / 4 / 2;
    margin: 32px 0;
    justify-self: center;
  }

  .reviews-section .grid .main {
    grid-area: 4 / 1 / 5 / 2;
  }

  .reviews-section .reviews-display ul {
    margin-left: 0 !important;
    padding-left: 0;
  }

  .reviews-section .reviews-average {
    width: 100%;
  }

  .reviews-section .reviews-display .item-reviewed-grid {
    padding: 0 4%;
  }

  .reviews-section .reviews-display .reviewer-infos {
    grid-area: 1 / 1 / 2 / 3;
    padding-left: 0px;
  }

  .reviews-section .reviews-display .review-rating {
    grid-area: 1 / 3 / 2 / 5;
    justify-self: end;
  }

  .reviews-section .reviews-display .comment {
    grid-area: 2 / 1 / 3 / 5;
    padding-right: 0px;
  }

  .reviews-section .reviews-display .comment p {
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
  }

  .reviews-section .reviews-display .comment.expanded p {
    -webkit-line-clamp: unset !important;
  }

  .reviews-section .reviews-pagination-wrapper {
    margin-bottom: 24px;
  }

  .reviews-section .reviews-pagination {
    width: 100%;
    padding: 0;
  }

  .reviews-section .review-tabs {
    align-self: center;
    width: 280px;
  }
}
