/** ---------------------------- Reviews Form ---------------------------- */

.sr-only {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
}

/* Review Title */
.hidden {
  display: none;
}
.yayrev-review-title input {
  display: block;
  width: 100%;
}
.yayrev-review-title__description {
  margin-top: 0.25rem;
}

/** GDPR */
.yayrev-gdpr {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-block-start: 0.5rem;
}

.yayrev-gdpr__message label {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: normal !important;
}

.yayrev-gdpr-checkbox {
  user-select: none;
}

/** Product Attributes */
.yayrev-product-attributes__select {
  display: block;
  max-width: 200px;
  width: 100%;
  height: 3em;
  padding: 0.9em 1.1em;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 3em;
  background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItY2hldnJvbi1kb3duIj48cG9seWxpbmUgcG9pbnRzPSI2IDkgMTIgMTUgMTggOSI+PC9wb2x5bGluZT48L3N2Zz4=)
    no-repeat;
  background-size: 16px;
  -webkit-background-size: 16px;
  background-position: calc(100% - 12px) 50%;
  -webkit-background-position: calc(100% - 12px) 50%;
}

/* Upload Media Form */
.yayrev-upload-media > * {
  margin-block-end: 0.5rem !important;
}

.yayrev-upload-media__label {
  cursor: pointer;
  display: inline-block;
}

.yayrev-upload-media__description {
  margin-top: 0.25rem;
}

.yayrev-upload-media__upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.yayrev-upload-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border: 1px dashed #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.yayrev-upload-button:hover {
  border-color: #000 !important;
}

.yayrev-upload-button:hover span {
  color: #000 !important;
}

.yayrev-upload-button > :first-child {
  color: #9ca3af;
}

.yayrev-upload-button > :last-child {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.yayrev-upload-media__upload-item {
  position: relative;
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.yayrev-upload-media__upload-item img {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
}
.yayrev-upload-media__upload-item-remove {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #757575;
  color: #fff !important;
  border: none !important;
  border-radius: 9999px;
  padding: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  font-size: 18px;
  top: -7px;
  right: -7px;
  z-index: 10;
}

.yayrev-upload-media__upload-item:hover {
  border-color: #000;
}

.yayrev-upload-media__upload-item:hover
  .yayrev-upload-media__upload-item-remove {
  visibility: visible;
  opacity: 1;
}

#yayrev-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483647;
  visibility: visible;
  opacity: 1;
  transition: all 0.2s ease-in-out;
}

#yayrev-modal.hidden {
  visibility: hidden;
  opacity: 0;
}

#yayrev-modal-close {
  background: transparent;
  color: white;
  cursor: pointer;
  padding: 8px;
  margin-bottom: 8px;
}

.yayrev-modal-wrapper {
  padding: 1rem;
  border-radius: 1rem;
  max-width: 50rem;
  width: 90%;
  position: relative;
}

#yayrev-modal-content img,
#yayrev-modal-content video {
  width: 100%;
  max-height: 70vh;
}

#yayrev-modal-content img {
  object-fit: contain;
}

.woocommerce-Reviews-title {
  margin-bottom: 1rem;
}

/** ---------------------------- End Reviews Form ---------------------------- */

.yayrev-loading-icon {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top: 2px solid #000;
  border-radius: 50%;
  animation: yayrev-spin 1s linear infinite;
  margin-bottom: 4px;
}

@keyframes yayrev-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#review_form_wrapper #review_form textarea,
#review_form_wrapper #review_form input[type="text"],
#review_form_wrapper #review_form input[type="email"],
#review_form_wrapper #review_form input[type="number"],
#review_form_wrapper #review_form input[type="tel"],
#review_form_wrapper #review_form input[type="url"],
#review_form_wrapper #review_form input[type="search"],
#review_form_wrapper #review_form input[type="password"] {
  border-width: 1px;
  border-radius: 4px;
  font: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.yayrev-attribute-list {
  display: flex;
  gap: 10px;
  /* Adjust space as needed */
  align-items: center;
}

/** Review Overview */

.yayrev-reviews-overview {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  border: 1px solid #e0e0e0;
  padding: 1.25rem;
  border-radius: 8px;
  max-width: 500px;
  margin-bottom: 1rem;
}

.yayrev-reviews-overview__summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.yayrev-reviews-overview__summary .brandy-ratings__stars {
  gap: 0;
}

.yayrev-reviews-overview__summary .brandy-ratings__stars svg {
  width: 16px;
  height: 16px;
}

.yayrev-reviews-overview__summary-avg-rating {
  font-size: 40px;
  font-weight: 600;
  line-height: 36px;
}

.yayrev-reviews-overview__summary-total-reviews {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: pre;
}

.yayrev-reviews-overview__filters {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.yayrev-reviews-overview__filters-item {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #555;
}

.yayrev-reviews-overview__filters-item.filterable {
  cursor: pointer;
  text-underline-offset: 3px;
  text-decoration: none !important;
}

.yayrev-reviews-overview__filters-item.active {
  text-decoration: underline !important;
}

.yayrev-reviews-overview__filters-item.filterable:hover {
  text-decoration: underline !important;
}

.yayrev-reviews-overview__filters-item__label {
  flex-basis: 40px;
  text-align: right;
  flex-shrink: 0;
}

.yayrev-reviews-overview__filters-item__progress-bar {
  flex-grow: 1;
  background-color: #f0f0f0;
  border-radius: 5px;
  height: 8px;
}

.yayrev-reviews-overview__filters-item__progress {
  height: 100%;
  background-color: #a0a0a0;
  border-radius: 5px;
}

.wp-theme-brandy .yayrev-reviews-overview__filters-item__progress {
  background-color: var(--brandy-product-rating-star-color-active, #ffac70);
}

.yayrev-reviews-overview__filters-item__count {
  text-align: left;
  flex-shrink: 0;
}

.yayrev-filter-message {
  padding: 0.5rem 0;
  font-size: 16px;
}

/** All Media Slider */

.yayrev-all-media {
  position: relative;
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
}

.yayrev-all-media-wrapper {
  position: relative;
}

.yayrev-all-media__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.yayrev-all-media__title h3 {
  margin: 0;
}

.yayrev-see-all-media {
  cursor: pointer;
  text-underline-offset: 3px;
}
.yayrev-see-all-media:hover {
  text-decoration: underline;
}

.yayrev-all-media-track {
  display: flex;
  overflow-x: auto;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  flex: 1;
  min-width: 0;
  gap: 10px;
}

.yayrev-all-media-track::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.yayrev-all-media-buttons {
  display: none;
  gap: 0.25rem;
  align-items: center;
}

.yayrev-all-media-wrapper.scrollable .yayrev-all-media-buttons {
  display: flex;
}

.yayrev-all-media-track .yayrev-review__media-item {
  flex-shrink: 0;
  cursor: pointer;
}

.yayrev-all-media-track img {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
  flex-shrink: 0;
}

.yayrev-all-media-arrow {
  cursor: pointer;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  box-shadow: 0px 10px 25px 0px #377e620d;
  transition: all 0.2s ease-in-out;
  position: absolute;
  z-index: 10;
  background-color: rgb(255, 255, 255);
  border-radius: 9999px;
  padding: 0.25rem;
  box-shadow: 0px 10px 25px 0px #377e620d;
  transition: all 0.2s ease-in-out;
}

.yayrev-all-media-arrow:hover {
  background: #edf3f9;
  box-shadow: 0px 10px 25px 0px #12294026;
  border: none;
}

.yayrev-all-media-arrow svg {
  width: 14px;
  height: 14px;
}

.yayrev-all-media-arrow svg path {
  stroke: #808890;
  fill: transparent;
  transition: all 0.2s ease-in-out;
}

.yayrev-all-media-arrow:hover svg path {
  stroke: #122940;
  fill: transparent;
}

.yayrev-all-media-arrow.left-arrow {
  left: -20px;
  top: 50%;
}

.yayrev-all-media-arrow.right-arrow {
  right: -20px;
  top: 50%;
}

/** Verify badge */
.yayrev-verified-badge {
  display: inline-block;
  vertical-align: top;
}

/** Review title */
.yayrev-title {
  font-weight: 500;
}
