/* Top Section */

#yotpo-app .yotpo-base-layout {
  width: 100% !important;
}

#yotpo-app .yotpo-head:empty {
  margin: 20px 0 !important;
}

#yotpo-app .yotpo-reviews-pagination-container:empty {
  margin-top: 0 !important;
}

#yotpo-app .yotpo-reviews-pagination-item {
  display: flex;
}

@media screen and (min-width: 1200px) {
  #yotpo-reviews-main-widget .yotpo-bottom-line {
    margin-right: 20px;
  }

  #yotpo-reviews-main-widget .yotpo-bottom-line .yotpo-bottom-line-right-panel {
    padding-right: 30px;
  }
}

@media screen and (max-width: 1199px) {
  .yotpo-head:empty {
    display: none !important;
  }

  #yotpo-reviews-main-widget .yotpo-layout-header-wrapper {
    margin-top: 0;
  }

  #yotpo-reviews-main-widget .yotpo-bottom-line {
    flex-direction: column;
    margin-right: 0;
  }

  #yotpo-reviews-main-widget .yotpo-bottom-line .yotpo-summary-section {
    align-items: center;
  }

  #yotpo-reviews-main-widget .yotpo-bottom-line .yotpo-reviews-summary-button {
    padding-bottom: 15px;
  }

  #yotpo-reviews-main-widget .yotpo-bottom-line .yotpo-bottom-line-summary {
    margin-top: 30px;
  }

  #yotpo-reviews-main-widget .yotpo-bottom-line .yotpo-bottom-line-right-panel {
    padding-right: 0;
  }

  #yotpo-reviews-main-widget .yotpo-bottom-line .yotpo-vertical-border {
    display: none;
  }

  #yotpo-reviews-main-widget .yotpo-bottom-line .yotpo-star-distribution {
    border: none !important;
  }
}

@media screen and (max-width: 599px) {
  #yotpo-reviews-main-widget .yotpo-layout-header-wrapper {
    flex-direction: column;
  }
}

/* The Review Text */

#yotpo-reviews-container .yotpo-review + .yotpo-review-votes-wrapper {
  position: relative;
  top: -1rem;
  font-size: 14px;
}

@media screen and (max-width: 479px) {
  #yotpo-reviews-container .yotpo-review-content {
    margin-top: 0;
  }

  #yotpo-reviews-container .yotpo-review + .yotpo-review-votes-wrapper {
    position: relative;
    top: -1.5rem;
  }
}

@media screen and (min-width: 480px) {
  #yotpo-reviews-container .yotpo-review-rating-title {
    flex-direction: column;
  }

  #yotpo-reviews-container .yotpo-review-rating-title .yotpo-review-title {
    margin: 10px 0 0 0;
  }
}

/* Move the date to the top right on smaller screens */
@media screen and (min-width: 480px) {
  #yotpo-reviews-container .yotpo-review {
    position: relative;
  }

  #yotpo-reviews-container .yotpo-review-right-panel {
    position: absolute;
    top: 0;
    right: 0;
  }
}


/* Load More Reviews (Mobile) */

#yotpo-reviews-container .yotpo-vertical-pagination .yotpo-vertical-pagination-item {
  height: auto;
  width: auto;
  justify-content: center;
  border-radius: 100px;
  background-color: #df1c37;
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s ease;
}

#yotpo-reviews-container .yotpo-vertical-pagination .yotpo-vertical-pagination-item:hover {
  background-color: #b7162d;
  color: #ffffff;
}


/* Feedback Popup Form */

#newReviewFormModal legend {
  margin: 0;
  padding: 0;
  border: none;
}

#newReviewFormModal .yotpo-review-form {
  width: auto;
  align-items: stretch;
  gap: 0 2.5rem;
}

#newReviewFormModal .yotpo-form-label {
  font-size: 0.875rem;
  font-weight: bold !important;
}

#newReviewFormModal .yotpo-new-review-headline,
#newReviewFormModal .yotpo-input-wrapper textarea,
#newReviewFormModal .yotpo-new-input-container {
  width: 100%;
}

@media screen and (max-width: 479px) {
  #newReviewFormModal .yotpo-name-email-wrapper .yotpo-input-wrapper {
    width: 100%;
  }
}

#newReviewFormModal .yotpo-input-wrapper textarea,
#newReviewFormModal .yotpo-new-input-container {
  border: 1px solid #c4c6ca !important;
}

#newReviewFormModal .yotpo-new-review-star-rating,
#newReviewFormModal .yotpo-new-review-headline,
#newReviewFormModal .yotpo-new-review-content,
#newReviewFormModal .yotpo-name-email-wrapper .yotpo-input-wrapper {
  min-height: 0 !important;
  height: auto !important;
}


/* No Reviews Yet */

#yotpo-reviews-main-widget .yotpo-main-layout > .yotpo-review-border-smooth:first-child {
  display: none;
}

@media screen and (max-width: 1199px) {
  #yotpo-reviews-main-widget .yotpo-empty-state {
    margin-top: 30px;
  }
}
