.mfp-bg {
  position: fixed;
  z-index: 1102;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
  inset: 0;
  opacity: 0;
  transition: all 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
.mfp-bg.mfp-ready {
  opacity: 1;
}
.mfp-bg.mfp-removing {
  opacity: 0;
}
.mfp-wrap {
  position: fixed;
  z-index: 1103;
  outline: none !important;
  inset: var(--wd-admin-bar-h) 0 0 0;
  -webkit-backface-visibility: hidden;
}
.mfp-container {
  overflow: auto;
  width: 100%;
  height: 100%;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mfp-content {
  position: relative;
  z-index: 1105;
  margin-block: auto;
  width: 100%;
}
.mfp-hide {
  display: none !important;
}
.mfp-s-ready .mfp-preloader,
.mfp-s-error .mfp-content {
  display: none;
}
.mfp-wrap ~ :is(.wd-close-side, .wd-side-hidden) {
  z-index: 900;
  pointer-events: none;
}

.wd-popup {
  position: relative;
  display: none;
  margin: 50px auto;
  padding: var(--wd-popup-padding, 30px);
  width: 100%;
  max-width: var(--wd-popup-width, 800px);
  border-radius: var(--wd-brd-radius);
  background-color: var(--bgcolor-white);
}
.mfp-wrap .wd-popup {
  display: block;
}
.wd-popup.wd-with-video {
  --wd-popup-padding: 0.001px;
  --wd-popup-width: 900px;
  background-color: #000;
  line-height: 0;
}
.wd-popup.wd-with-video :is(video, iframe) {
  width: 100%;
  border-radius: var(--wd-brd-radius);
}
.wd-popup.wd-with-video iframe {
  aspect-ratio: 16 / 9;
}
.wd-popup-slide-from-left .wd-popup {
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
  transform: translateX(-100px);
}
.wd-popup-slide-from-left.mfp-ready .wd-popup {
  opacity: 1;
  transform: none;
}
.wd-popup-slide-from-left.mfp-removing .wd-popup {
  opacity: 0;
  transform: translateX(100px);
}
.wd-popup-slide-from-left.mfp-removing .mfp-close {
  display: none;
}

.spider-shop-reviews {
  color: #242424;
  position: relative;
  margin: 0 auto;
}
.spider-shop-reviews__head {
  display: flex;
  align-items: center;
  column-gap: 10px;
  margin-bottom: 10px;

  .spider-shop-reviews__write-review {
    margin-left: auto;
    border: 1px solid #e8e8e8;
    height: 40px;
    min-height: 40px !important;
    color: #000000;
    background: #fff;
    padding: 4px 12px;
    font-size: 16px;
    text-transform: none;
    font-weight: 400;
  }
  .spider-shop-reviews__write-review:hover {
    background: #e8e8e8;
  }

  .reviews_sort_by_toggle {
    margin-left: auto;
    min-height: 40px !important;

    border-radius: 2px;
    border: 1px solid #e8e8e8;
    background: none;
    padding: 4px 6px 2px !important;
    width: 37px;

    &:hover {
      background: #dfdede;
    }
  }

  .spider-shop-reviews__write-review + .reviews_sort_by_toggle {
    margin-left: 10px;
  }

  .reviews_summary_toggle {
    cursor: pointer;
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    svg {
      transition: transform 0.2s ease-in-out;
    }
  }

  .reviews_summary_toggle.active svg {
    transform: rotate(180deg);
  }

  .reviews_summary_toggle-box {
    display: none;
    position: absolute;
    left: 6px;
    top: 40px;
    width: 440px;
    animation: growOut 0.2s ease-in-out forwards;
    transform-origin: top center;
    box-shadow: 0px 6px 14px -4px rgba(0, 0, 0, 0.14);
    padding: 20px 20px 24px 20px;
    z-index: 50;
    background-color: #fff;

    .reviews-overall-rating {
      display: flex;
      align-items: center;
      justify-content: center;
      column-gap: 17px;

      .reviews-overall-rating-number {
        font-size: 32px;
        font-weight: 600;
      }
    }
    .review-totals-row {
      display: flex;
      font-size: 14px;
      width: 100%;
      height: 22px;
      align-items: center;
      -moz-column-gap: 8px;
      column-gap: 8px;
    }

    .reviews-col-process {
      width: 231px;
      font-size: inherit;
    }

    .rate-percent-bg {
      display: inline-block;
      font-size: 0;
      vertical-align: middle;
      position: relative;
      height: 8px;
      background-color: #e7e7e7;
      width: 100%;
      border-radius: 3px;
      overflow: hidden;
    }
    .rate-percent-bg .rate-percent {
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      border-radius: 3px;
      background-color: #000;
    }
    .rate-percent-bg .rate-percent-bg-1 {
      position: absolute;
      text-align: center;
      width: 100%;
      color: #fff;
      z-index: 2;
    }
  }
  .reviews_summary_toggle-box.active {
    display: block;
  }
}

.spider-shop-reviews__items {
  display: flex;
  column-gap: 20px;
  row-gap: 20px;
  flex-wrap: wrap;
}

.spider-shop-reviews__item:hover {
  background: #f8f8f8;
}

.spider-shop-reviews__item.spider-shop-reviews__item--hidden {
  display: none;
}

.spider-shop-reviews__item {
  width: calc(50% - 10px);
  box-shadow: 0px 6px 14px -4px rgba(0, 0, 0, 0.1);
  background: #fff;
  border-radius: 2px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  cursor: pointer;
  flex: 1 1 calc(50% - 10px);
  margin-bottom: 20px;

  .spider-shop-reviews__item__author {
    display: flex;
    align-items: center;
    column-gap: 8px;
    font-size: 16px;
    font-weight: 600;

    span {
      font-weight: 400;
      font-size: 14px;
    }
  }

  .spider-shop-reviews__item__author__verified {
    display: flex;
    align-items: center;
    column-gap: 8px;

    svg {
      width: 16px;
      height: 16px;
    }

    span {
      font-size: 12px;
    }
  }

  .spider-shop-reviews__item__gallery {
    display: flex;
    column-gap: 8px;

    .spider-shop-reviews__item__image {
      width: 80px;
      height: 80px;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 2px;
      }
    }

    .spider-shop-reviews__item__video {
      width: 80px;
      height: 80px;
      position: relative;

      span {
        position: absolute;
        display: block;
        display: none;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;

        svg {
          width: 18px;
          height: 18px;
        }
      }

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .spider-shop-reviews__item__video.img-loaded span {
      display: block;
    }

    .spider-shop-reviews__item__video.no-poster {
      background: #000;
    }
  }

  .spider-shop-reviews__item__product {
    display: flex;
    column-gap: 10px;
    margin-top: 10px;
    padding: 10px 0 0;
    border-top: solid 1px #e2e2e2;
    cursor: pointer;
    min-height: 70px;

    img {
      height: 50px;
      width: 50px;
      object-fit: contain;
    }
  }
}

.spider-shop-reviews__item__rating {
  position: relative;
  width: 78px;
  height: 14px;

  .reviews__item__empty_rating {
    svg {
      height: 14px;
      width: 78px;
    }
  }

  .reviews__item__full_rating {
    height: 14px;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    overflow: hidden;

    svg {
      height: 14px;
      width: 78px;
    }
  }
}

/** SOrting **/
.reviews_sort_by_toggle-box {
  display: none;
  z-index: 50;
  width: 275px;
  margin-top: 4px;
  right: 7px;
  top: 40px;
  text-align: left;
  position: absolute;

  padding: 20px 20px 8px;
  background-color: #fff;
  box-shadow: 0px 6px 14px -4px rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  -webkit-box-shadow: 0px 6px 14px -4px rgba(0, 0, 0, 0.14);
  animation: growOut 0.2s ease-in-out forwards;
  transform-origin: 100% 0px;

  > span {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
    display: block;
  }

  li {
    a {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 14px;
      margin-bottom: 4px;
      span {
        display: none;
      }

      span.chosen-option {
        display: block;
      }
    }
  }
}

.reviews_sort_by_toggle-box.active {
  display: block;
}

.spider-shop-reviews__pagination {
  display: flex;
  justify-content: center;

  button.spider-shop-reviews__load-more {
    border-radius: 2px;
    border: 1px solid #e8e8e8;
    padding: 6px 12px !important;
    color: #282828;
    background: transparent;
    font-size: 14px;
    text-transform: none;
    font-weight: 400;
    margin-top: 30px;
    min-height: unset !important;
    &:hover {
      background: #e8e8e8;
    }
  }
}

/** MODAL **/

#spider_shop_reviews_modal {
  padding: 0 !important;
  border-radius: 16px;
  --wd-popup-width: 813px;
  min-width: 400px;
  height: auto;
  height: 584px;
  color: #242424;
  box-shadow: 0px 0px 35px -10px rgba(0, 0, 0, 0.1);

  .wd-content {
    height: 100%;
  }

  button.mfp-close {
    border: 0;
    position: absolute;
    top: 20px;
    right: 10px;
    z-index: 1104;
    padding: 0;
    width: 32px;
    height: 32px;
    min-height: unset;
    background: none;
    color: #000;
    font-weight: 400;
    font-size: 0;
    opacity: 1;
    touch-action: manipulation;
    opacity: 0;
    transition: all 0.25s ease, opacity 0s ease 0s;
    border-radius: 4px;
  }
  button.mfp-close:after {
    font-size: 20px;
    content: "\f112";
    font-family: "woodmart-font";
  }
  button.mfp-close:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: #242424;
  }

  button.mfp-close {
    right: auto;
    left: 10px;
    top: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);

    &:hover {
      background: rgba(0, 0, 0, 0.7);
      color: #fff;
    }
  }
  button.mfp-close:after {
    font-size: 16px;
  }
}

.mfp-ready #spider_shop_reviews_modal button.mfp-close {
opacity: 1;
transition: all 0.25s ease, opacity 0.3s ease 0.35s;
}

.spider-shop-modal-reviews {
  display: flex;
  height: 100%;
  & > div {
    flex: 1;
  }

  & > div:last-child {
    display: flex;
    flex-direction: column;
    padding: 24px;
  }

  .wd-carousel-inner {
    max-width: 50%;
  }

  .modal-review-pre-image {
    img {
      height: 100%;
      width: 100%;
      object-fit: cover;
      border-top-left-radius: 16px;
      border-bottom-left-radius: 16px;
    }
  }

  .wd-btn-arrow {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    height: 36px;
    width: 36px;
    padding: 0 !important;
    min-height: 36px !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    cursor: pointer;
    color: #fff;
    svg {
      width: 24px;
    }

    .wd-arrow-inner::after {
      content: unset !important;
    }
  }
  .wd-btn-arrow:not(.wd-disabled) {
    .wd-arrow-inner {
      color: #fff;
    }
  }
  .wd-btn-arrow:hover {
    background-color: rgba(0, 0, 0, 0.4) !important;
  }

  .wd-next {
    right: 16px;
  }

  .wd-prev {
    left: 16px;
  }

  .spider-shop-reviews__modal-item img {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    height: 100%;
    width: 100%;
    max-height: 800px;
    object-fit: cover;
  }

  .spider-shop-reviews__modal-item {
    height: auto;

    .review-player {
      height: 100%;
      max-height: 100%;
    }
  }

  .reviews__item__full_rating {
    svg {
      fill: #000;
    }
  }

  .spider-shop-reviews__author-name {
    font-size: 16px;
    font-weight: 600;
  }

  .spider-shop-reviews__date {
    color: #767676;
    font-size: 12px;
  }

  .spider-shop-reviews__author-verified {
    display: flex;
    align-items: center;
    column-gap: 8px;
    font-size: 12px;
    svg {
      width: 14px;
      height: 14px;
    }
  }

  .video-js {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    width: 100%;
    height: 100%;
  }

  .spider-shop-reviews-left {
    padding: 0;
    height: 100%;
  }
  .wd-carousel-inner {
    margin: 0;
  }

  .spider-shop-reviews__content {
    font-size: 16px;
    line-height: 24px;
    margin-top: 15px;
  }
}

/** SKELETON **/
.spider-skeleton__product-item {
  display: grid;
  grid-template-columns: 50px 200px;
  column-gap: 17px;
  row-gap: 10px;

  .spider-skeleton__product-image {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    border-radius: 2px;
    height: 75px;
    overflow: hidden;
    position: relative;
    background: #d9d9d9;
  }

  .spider-skeleton__product-name {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    border-radius: 8px;
    height: 24px;
    overflow: hidden;
    position: relative;
    background: #d9d9d9;
  }

  .spider-skeleton__product-link {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    width: 100px;
    border-radius: 8px;
    height: 33px;
    overflow: hidden;
    position: relative;
    background: #d9d9d9;
  }
}

.spider-skeleton__product-image::before,
.spider-skeleton__product-name::before,
.spider-skeleton__product-link:before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background-image: linear-gradient(
    to right,
    #d9d9d9 0%,
    rgba(0, 0, 0, 0.05) 20%,
    #d9d9d9 40%,
    #d9d9d9 100%
  );
  background-repeat: no-repeat;
  background-size: 250px 200px;
  animation: shimmer 1s linear infinite;
}

.spider-shop-reviews__rating_row,
.spider-shop-reviews__author {
  display: flex;
  align-items: center;
  column-gap: 10px;
  justify-content: space-between;
}
.spider-shop-reviews__rating svg,
.reviews__item__full_rating svg {
  fill: #000;
}

.spider-shop-reviews__author {
  margin-bottom: 5px;
}

.spider-shop-reviews__product-block {
  display: flex;
  column-gap: 13px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e3e3e3;
  img {
    max-width: 50px;
  }
  .spider-shop-reviews__product-link {
    display: flex;
    align-items: center;
    column-gap: 10px;
    min-height: unset !important;
    font-size: 14px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 6px 11px !important;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    &:hover {
      background-color: rgba(0, 0, 0, 0.1);
    }
    svg {
    }
  }
  .spider-shop-reviews__product-name {
    text-transform: uppercase;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    margin-bottom: 8px;
  }
}

.video-js button {
  min-height: unset !important;
}

@keyframes growOut {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(-20px);
  }
}
@keyframes shimmer {
  0% {
    background-position: -250px 0;
  }
  100% {
    background-position: 250px 0;
  }
}

@media (max-width: 576px) {
  .video-js {
    min-height: 260px;
  }
  #spider_shop_reviews_modal {
    height: auto;
    min-width: 100%;
    --wd-popup-width: 100%;
  }

  .spider-shop-reviews__item {
    width: 100%;
    flex-basis: 100%;
    margin-bottom: 20px;
  }

  .spider-shop-reviews__head {
    position: relative;
    .reviews_summary_toggle-box {
      left: 0;
      width: 100%;
    }

    .spider-shop-reviews__write-review {
      position: absolute;
      bottom: calc(-100% - 10px);
      width: 100%;
      left: 0;
    }
  }
  .spider-shop-reviews__head:has(.spider-shop-reviews__write-review) {
    margin-bottom: 60px;

    .reviews_sort_by_toggle {
      margin-left: auto;
    }
  }

  .spider-shop-modal-reviews {
    display: flex;
    flex-direction: column;
    height: auto;
    & > div {
      flex: auto;
    }

    & > div:last-child {
      display: flex;
      flex-direction: column;
      padding-bottom: 36px;
    }

    .wd-carousel-inner {
      max-width: 100%;
    }

    .spider-shop-reviews__modal-item img {
      border-top-left-radius: 0px;
      border-bottom-left-radius: 0px;
      max-height: 460px;
    }

    .spider-shop-reviews__content {
      margin-bottom: 20px;
    }

    .video-js {
      border-top-left-radius: 0px;
      border-bottom-left-radius: 0px;
    }

    .modal-review-pre-image {
      img {
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
        max-height: 460px;
      }
    }

    .modal-review-pre-image.black-plca {
      img {
        max-height: 260px;
      }
    }
  }
}
