.product-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border: 2px solid var(--wepc-acf-border-color);
  border-radius: 5px;
  margin-bottom: 2rem;
  position: relative;
  overflow: visible;
}

.badge {
  display: block;
  margin: 0 auto;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 10px;
}

.badge-sub-heading-wrapper {
  display: flex;
}

.badge-sub-heading {
  background-color: rgba(157, 106, 215, 0.5);
}

.badge-section-title {
  display: inline-block;
  background-color: rgba(157, 106, 215, 0.2);
}

.badge-section-title-wrapper:after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(82, 95, 127, 0.3);
  margin-bottom: 10px;
}

.number {
  display: flex;
  padding: 4px 8px;
  background-color: var(--wepc-acf-border-color);
  border-radius: 3px 0 10px 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.number span {
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
}

.product-box-mini .product-box-header-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.product-box-mini .product-image {
  grid-column: 1 / span 6;
}

.product-box-mini .product-details {
  grid-column: 7 / span 6;
  display: grid;
  align-content: space-between;
}

.product-box-mini .title-wrapper,
.product-box-mini .rating-wrapper {
  grid-column: span 12;
}

.title-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}

.award-badges img {
  width: auto;
  height: 30px;
}

.title-price {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.product-box-mini .product-box-header-wrapper h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0;
}

.product-box-header-wrapper h3 a {
  color: #222;
}

.title-price .price {
  border-left: 1px solid rgba(12, 12, 12, 0.2);
  padding: 0 1rem;
  font-size: 1rem;
}

.rating-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.main-rating-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--wepc-acf-gradient);
  color: #fff;
}

.rating {
  padding: 10px;
}

.rating-title {
  text-align: center;
  margin-bottom: 0 !important;
}

.rating-title-result {
  font-size: 35px;
  font-weight: 900;
}

.rating-title-base {
  font-size: 16px;
}

.rating-sub-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-top: -5px;
  margin-bottom: 5px !important;
}

.how-we-review {
  display: block;
  background: rgba(0, 0, 0, 0.2);
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
  padding: 5px;
  color: #fff;
  letter-spacing: 0.5px;
  font-weight: 500;
  text-decoration: none;
}

.how-we-review:hover {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.product-box-body-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.desc-wrapper p {
  font-size: 17px;
  margin-bottom: 0;
}

.deals-wrapper .deals {
  list-style: none;
  margin-bottom: 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 10px;
  column-gap: 20px;
}

.product-box-footer-wrapper {
  border-top: 1px solid rgba(82, 95, 127, 0.3);
}

/* CTAs */
.buttons-wrapper {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px 0 !important;
}

.buttons-wrapper a.button {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 2px;
}

.buttons-wrapper a.button-amazon {
  background-color: var(--wepc-acf-primary-red);
  border: 2px solid var(--wepc-acf-primary-red);
  color: #fff;
  text-decoration: none;
}

.buttons-wrapper a.button-amazon:hover {
  background-color: var(--wepc-acf-primary-red-hover);
  border: 2px solid var(--wepc-acf-primary-red-hover);
}

.buttons-wrapper a.button-others {
  background-color: transparent;
  border: 2px solid var(--wepc-acf-primary-red);
  color: var(--wepc-acf-primary-red);
  text-decoration: none;
}

.buttons-wrapper a.button-others:hover {
  border: 2px solid var(--wepc-acf-primary-red-hover);
  color: var(--wepc-acf-primary-red-hover);
}

.buttons-wrapper i {
  margin-left: 5px;
}

/* Hands on review */
.product-box-footer-wrapper .hands-on {
  border-top: 1px solid rgba(82, 95, 127, 0.3);
  padding: 0.5rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.product-box-footer-wrapper .hands-on span {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(82, 95, 127, 0.6);
}

.product-box-footer-wrapper .hands-on a {
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  color: var(--wepc-acf-accent-color);
}

.product-box-footer-wrapper .hands-on i {
  font-size: 13px;
  margin-left: 3px;
}

/* Flexslider Custom Styling */
.flexslider {
  margin: 0;
  border: 0;
}

.flex-control-paging li a {
  width: 8px;
  height: 8px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.5);
}

.flex-control-paging li a:hover {
  background: rgba(255, 255, 255, 0.7);
}

.flex-control-paging li a.flex-active {
  background: #fff;
}

.flex-direction-nav a {
  text-shadow: none;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--wepc-acf-border-color);
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.flex-direction-nav a:before {
  text-shadow: none;
}

.flex-direction-nav .flex-prev,
.flex-direction-nav .flex-next {
  text-align: center;
  font-size: 0;
}

.flex-direction-nav a.flex-next::before,
.flex-direction-nav a.flex-prev::before {
  font-size: 24px;
}

.infin-single-article .flexslider ul {
  margin-bottom: 0 !important;
}

.flexslider .slides img,
.product-image img {
  object-fit: contain;
}

.product-box-mini .flexslider .slides img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 3 / 2;
  object-fit: cover !important;
}

.flex-control-nav {
  bottom: 0;
}

.flex-control-nav li {
  margin: 0 6px !important;
}

@media (max-width: 499px) {
  .title-price {
    gap: 10px;
  }

  .rating-title-result {
    font-size: 28px;
  }
}

@media (max-width: 499px) {
  .product-box-mini .product-image {
    grid-column: span 12;
  }

  .product-box-mini .product-details {
    grid-column: span 12;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .product-box .title-wrapper {
    grid-column: span 2;
  }

  .product-box .rating-wrapper {
    grid-column: span 1;
  }
}

/* (Mobile) */
@media (max-width: 767px) {
  .product-box-header-wrapper {
    gap: 10px;
  }

  .flex-direction-nav a {
    width: 30px;
    height: 30px;
  }

  .flex-direction-nav a.flex-next::before,
  .flex-direction-nav a.flex-prev::before {
    font-size: 16px;
  }

  .title-price {
    flex-direction: column;
    align-items: start;
  }

  .title-price .price {
    padding: 0;
    border-left: 0;
  }

  .product-box-header-wrapper h3 {
    font-size: 1.3rem;
  }

  .rating-sub-title,
  .how-we-review {
    font-size: 11px;
    margin-bottom: 0 !important;
  }

  .how-we-review {
    padding: 3px 12px;
  }
}

/* (Tablet) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .product-box-header-wrapper h3 {
    font-size: 1.5rem;
  }

  .title-price {
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }

  .title-price .price {
    padding: 0;
    border-left: 0;
  }
}

/* (Desktop) */
@media only screen and (min-width: 1224px) {
  .flexslider .slides img,
  .product-image img {
    height: 460px;
  }
}
