/* MODAL
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
  --lightgray: #efefef;
  --blue: steelblue;
  --white: #fff;
  --black: rgba(38, 38, 38, 0.2);
  --bounceEasing: cubic-bezier(0.51, 0.92, 0.24, 1.15);
}

.no-scroll {
  overflow: hidden;
}

.review-item .reviewer #user_avator {
  font-size: 23px;
  margin-left: -2px;
  padding-right: 5px;
  color: #528400;
}

.rating-star {
  font-weight: bold;
  margin-right: 5px;
  font-size: 22px;
  color: #528400;
}

.ReviewModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--black);
  visibility: hidden;
  opacity: 0;
  transition: all 0.35s ease-in;
}

.ReviewModal.is-visible {
  visibility: visible;
  opacity: 1;
  z-index: 1400;
}

.modal-dialog-haku {
  position: relative;
  max-width: 700px;
  width: 700px;
  max-height: 70vh;
  background: var(--white);
  font-family: "Open Sans";
  pointer-events: all;
}

#shopReviewContainer #closePopUp {
  cursor: pointer;
}

.modal-dialog-haku > * {
  padding: 15px;
  overflow-y: auto;
}

.modal-content {
  text-align: center;
  display: flex;
  justify-content: space-between;
  border: none;
  z-index: 2000;
  overflow: hidden;
  overflow-y: auto;
  max-height: 50vh;
}

.modal-footer {
  display: block;
  position: sticky;
  height: fit-content;
  padding: 0 5px 1rem 5px;
  bottom: 0;
  z-index: 10;
  border: none;
  width: 100%;
  padding: 0;
  margin: 10px 0 0 0;
}

.ReviewModalp + p {
  margin-top: 10px;
  margin-bottom: 10px;
}
.p_title {
  font-family: "Open Sans";
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}
.p_sub_title {
  font-weight: 400;
  font-size: 20px;
  font-family: "Open Sans";
  margin: 0;
}
.p_regular {
  font-weight: 400;
  font-size: 16px;
  font-family: "Open Sans";
  margin: 0;
}
.titleContainer {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #00000014;
}
.titleLeft {
  flex: 1;
}
.modal-header-title {
  flex: 1;
  text-align: center;
  margin: 0;
  font-size: 18px;
  font-family: "Open Sans";
  font-weight: 600;
}
.close-button-container {
  flex: 1;
  text-align: right;
}

.reviews-bar-container {
  display: flex;
  width: 100%;
  flex: 3;
}

.reviews-list-title-container {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #00000014;
}
.review-list-title {
  flex: 1;
  text-align: left;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 0;
  font-family: "Open Sans";
}

.review_back_button_container {
  padding: 20px;
  border-top: 1px solid #eee;
}

.review_back_button {
  background-color: #528400;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  display: block;
  font-size: 18px;
  font-weight: 400;
  height: auto;
  line-height: 38px;
  margin: 0 auto;
  text-align: center;
  width: 70%;
  padding: 5px 0;
  font-family: "Open Sans";
}

/* Start: card Popup */
.accept_buttons_cards {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  font-family: "Open Sans";
}

.addCard {
  cursor: pointer !important;
  background-color: #fff;
  text-decoration: none !important;
  text-align: center;
  color: #528400 !important;
  border: 1px solid #528400;
  padding: 10px;
  border-radius: 7px;
  width: 50%;
  margin-right: 2%;
}

.addCard:hover {
  color: #528400;
  border-color: #528400;
}

.withoutCard {
  cursor: wait;
  background-color: #fff;
  text-decoration: none !important;
  text-align: center;
  color: #fff !important;
  background: #528400;
  border: 1px solid #528400;
  padding: 10px;
  border-radius: 7px;
  width: 50%;
}

.withoutCard:hover {
  color: #575757;
  border-color: #528400;
}

@media only screen and (max-width: 600px) {
  .accept_buttons_cards {
    flex-direction: column;
  }
  .addCard,
  .withoutCard {
    width: 60%;
    margin: 0;
  }
  .withoutCard {
    margin-top: 3%;
  }
}

@media only screen and (max-width: 400px) {
  .addCard,
  .withoutCard {
    width: 80%;
    margin: 0;
  }
  .withoutCard {
    margin-top: 4%;
  }
}

/* End: card Popup */

/* Overall.ReviewModalstyling */
.ReviewModal {
  font-family: Arial, sans-serif;
}

.modal-content {
  padding: 20px;
  border-radius: 8px;
}

.ReviewModal .close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  color: #999;
  cursor: pointer;
}

.ReviewModal .close:hover {
  color: #000;
}

/* Review summary styling */

.stars {
  display: flex;
  align-items: center;
}

.star {
  font-size: 24px; /* Ensure the font size is consistent */
  line-height: 1;
  width: 24px; /* Match the width and height to the font size */
  height: 24px;
  text-align: center;
  display: inline-block;
}

.full-star {
  color: #528400; /* Color for filled stars */
}

.empty-star {
  color: #e0e0e0; /* Color for empty stars */
}

.star-container {
  position: relative;
  display: inline-block;
  width: 24px; /* Ensure this matches the star's font size */
  height: 24px; /* Ensure this matches the star's font size */
}

.star-background,
.star-foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 24px;
  line-height: 1;
}

.star-background {
  color: #e0e0e0; /* Empty star color */
}

.star-foreground {
  color: #528400; /* Filled star color */
  overflow: hidden;
}

/*
.review-summary-popup {
    text-align: center;
    padding: 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}



.review-summary-popup .stars {
    color: #528400;
}
*/

.rating {
  font-weight: bold;
  margin-right: 5px;
  font-size: 40px;
  line-height: 40px;
}

.rating-star-user {
  font-weight: bold;
  margin-right: 5px;
  font-size: 22px;
  color: #528400;
}

.rating-star-user #text {
  margin: 0;
  padding: 0;
}

.empty-star-user {
  font-weight: bold;
  margin-right: 5px;
  font-size: 22px;
  color: #e0e0e0;
  margin-left: -6px;
}

.empty-star-common {
  font-weight: bold;
  margin-right: 5px;
  font-size: 22px;
  color: #e0e0e0;
}

.review-bars {
  margin-top: 10px;
  flex: 3;
  width: 100%;
}

.review-bars .bar {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  flex: 3;
}

.review-bars .bar div {
  border-radius: 4px;
  margin-right: 8px;
}

.review-bars .bar div.empty {
  background-color: #ddd;
}

.review-bars .bar .bar-outer {
  flex: 1;
  height: 8px;
  background-color: #ddd;
  border-radius: 4px;
}

.review-bars .bar .bar-inner {
  height: 8px;
  background-color: #528400;
  border-radius: 4px;
}

.review-bars .bar .bar-count {
  width: 20px;
  text-align: right;
  font-size: 12px;
  color: #666;
}

/* Individual reviews */
.review-list {
  margin-bottom: 20px;
}

.review-item {
  padding: 15px 0;
  border-bottom: 1px solid #00000014;
  text-align: left;
}

.review-item:last-child {
  border-bottom: none;
}

.review-item .reviewer {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.review-item .reviewer img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}

.review-item .reviewer .name {
  font-weight: bold;
  font-size: 16px;
  color: #333;
  font-family: "Open Sans";
}

.review-item .reviewer .date {
  font-size: 14px;
  color: #000;
  margin-left: 10px;
}

.review-item .rating {
  color: #528400;
  margin-bottom: 5px;
}

.review-item .review-text {
  font-size: 14px;
  color: #333;
}

.review-item .review-tag {
  display: inline-block;
  background-color: #e8f5e9;
  color: #4caf50;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 5px;
}

/* Button styling */
.ReviewModal-footer {
  text-align: center;
}

.modal-footer .btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  color: #fff;
  background-color: #4caf50;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.modal-footer .btn:hover {
  background-color: #45a049;
}
