/**
 * LunaVixen Reviews styles.
 */

.lv-review-modal .material-icons[data-icon]:before,
.lv-review-item .material-icons[data-icon]:before,
.lv-reviews-summary .material-icons[data-icon]:before,
#lv-reviews-list-header .material-icons[data-icon]:before,
#lv-reviews-list-footer .material-icons[data-icon]:before {
  content: attr(data-icon);
}

/* Buttons, keyed to the black-and-pink LunaVixen look */
.lv-btn-review,
.lv-btn-review-inverse {
  height: 40px;
  border-radius: 4px;
  background-color: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border: 1px solid #111111;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.lv-btn-review .material-icons,
.lv-btn-review-inverse .material-icons {
  font-size: 20px;
  margin-right: 7px;
  vertical-align: middle;
}
.lv-btn-review:hover {
  background-color: #e0007a;
  border-color: #e0007a;
  color: #ffffff;
}
.lv-btn-review-inverse {
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #cfcfcf;
}
.lv-btn-review-inverse:hover {
  background-color: #f6f6f6;
  color: #111111;
}
.lv-btn-review-big {
  height: 46px;
  padding: 12px 22px;
}

.lv-link-review {
  color: #232323;
}
.lv-link-review:hover,
.lv-link-review:active {
  text-decoration: underline;
  color: #e0007a;
}

/* Summary line near the product title */
.lv-reviews-summary {
  margin: 16px 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  font-size: 14px;
}
.lv-reviews-summary .lv-reviews-links {
  display: flex;
  gap: 18px;
}

/* Star component */
.star-content {
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}
.star-content div.star,
.star-content div.star-on,
.star-content div.star-hover {
  display: block;
  width: 20px;
  height: 20px;
  background: url(../img/stars.png) no-repeat 0 0 transparent;
  flex: auto;
  margin-left: 3px;
}
.star-content div.star-on,
.star-content div.star-hover {
  background-position: -24px 0;
}
.star-content div.star-hover {
  cursor: pointer;
}
.lv-grade-stars {
  position: relative;
  height: 20px;
  min-width: 120px;
  display: inline-block;
}
.lv-grade-stars .star-content {
  position: absolute;
  top: 2px;
  left: 0;
}
.lv-reviews-note {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* List header */
#lv-reviews-list-header {
  padding: 18px 0;
  color: #232323;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #efe3ea;
}
#lv-reviews-list-header .lv-reviews-nb {
  font-weight: 600;
  font-size: 18px;
}
#lv-reviews-list-header .lv-reviews-nb .material-icons {
  margin-right: 4px;
  vertical-align: middle;
}

/* Review cards */
.lv-review-item {
  padding: 22px 0;
  margin: 0;
  border-bottom: 1px solid #f0e6ec;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 24px;
  text-align: left;
}
#lv-empty-review {
  display: block;
  text-align: center;
  padding: 28px 0;
}
.lv-review-side {
  flex: 0 0 210px;
  color: #8a7f86;
  font-size: 14px;
  line-height: 1.4;
}
.lv-review-side .lv-grade-stars {
  margin-bottom: 12px;
}
.lv-review-date {
  margin-bottom: 2px;
}
.lv-review-author {
  font-weight: 600;
  color: #5a525a;
}
.lv-review-body {
  flex: 1 1 320px;
}
.lv-review-title {
  color: #1c1c1c;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.lv-review-content {
  color: #3a343a;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}

/* List footer and pagination */
#lv-reviews-list-footer {
  position: relative;
  min-height: 46px;
  padding-top: 18px;
}
#lv-reviews-list-footer .lv-post-review {
  margin: 0 auto;
  display: block;
}
#lv-reviews-pagination ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}
#lv-reviews-pagination ul li span {
  height: 32px;
  min-width: 28px;
  padding: 0 6px;
  cursor: pointer;
  display: block;
  text-align: center;
  font-size: 16px;
  line-height: 32px;
  color: #8a7f86;
  border-radius: 4px;
}
#lv-reviews-pagination ul li.active span {
  background: #111111;
  color: #ffffff;
  cursor: default;
}
#lv-reviews-pagination ul li.disabled span {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Modal */
.lv-review-modal .modal-header {
  border: none;
  padding: 26px 30px 12px;
  align-items: center;
}
.lv-review-modal .modal-body {
  padding: 12px 30px 30px;
}
.lv-review-modal .modal-header .h2 {
  font-size: 20px;
  margin: 0;
}
.lv-review-modal .modal-dialog {
  width: calc(100% - 30px);
  max-width: 640px;
}
.lv-review-modal .modal-header .material-icons {
  color: #40a85f;
  font-size: 28px;
  margin-right: 10px;
}
.lv-review-modal .modal-header .material-icons.error {
  color: #a94442;
}
.lv-modal-product .h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.lv-modal-desc {
  color: #6a626a;
  font-size: 13px;
  margin-bottom: 14px;
}
.lv-rating-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 2px;
}
.lv-review-modal label.form-label {
  font-size: 15px;
  margin: 12px 0 6px;
  display: block;
}
.lv-review-modal input[type="text"] {
  width: 100%;
  height: 44px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 0 10px;
}
.lv-review-modal textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  margin-bottom: 10px;
  padding: 10px;
}
.lv-modal-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.lv-post-buttons {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 12px;
}
.required {
  color: #e0007a;
  font-size: 12px;
}
#lvRatingNotChosen {
  font-size: 12px;
  color: #ab4746;
  margin: 2px 0 0;
}
#lv-post-review-form input.error,
#lv-post-review-form textarea.error {
  background-color: #fbeaea;
  border: solid 1px #e6bcbc;
}
#lv-post-review-form input.valid,
#lv-post-review-form textarea.valid {
  border: solid 1px #cde6c6;
}

@media (max-width: 768px) {
  .lv-review-side {
    flex-basis: 100%;
  }
  .lv-modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}
