/*--------------------------------------------------------------
>>> TABLE OF CONTENTS: HOME DESKTOP

- Main header banner
- Gifts section
- Reviews container

----------------------------------------------------------------*/

/* Header banners */
.header-banner__slider {
  display: flex;
  flex-shrink: 0;
}
.header-banner__slider-item {
  margin-right: 0px;
  float: unset !important;
  display: block;
}
.header-banner__title {
  font-size: 4rem;
  padding-right: 2.5rem;
  padding-left: 2.5rem;
  line-height: 3.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.header-banner__accent-button {
  padding-left: 2.5rem;
}
.header-banner__title > .white-text-header {
  color: var(--text-white-clr);
  font-size: 2rem;
  line-height: 3rem;
  font-weight: 700;
}
.section-header-banner .flex-direction-nav {
  bottom: 0;
}
.header-banner__wrapper.mb-10:not(.announcement-strip) {
  margin-bottom: 0px;
}

/* F1 Mystery Box */
.section-mystery-box .content-image__left {
  min-width: unset;
  height: 100%;
  width: auto;
  min-width: 270px;
  padding: unset;
  padding-left: 1rem;
}
.section-mystery-box .content-image__right {
  padding: 2rem;
  min-width: unset;
  height: 100%;
  width: auto;
}

/* Customer Pictures Gallery */
.customer-picture__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto repeat(7, 1fr);
  grid-gap: 1rem;

  content-visibility: auto;
  contain-intrinsic-size: auto 750px;
}

.mobile .customer-picture__gallery {
  grid-gap: 0.75rem;
  contain-intrinsic-size: auto 692px;
}

.customer-picture__gallery-wrapper.flex-active-slide:first-child {
  opacity: 1 !important;
  display: block;
}

.section-picture-gallery .flex-direction-nav {
  z-index: 100;
  top: 4rem;
  bottom: 0;
}

.section-picture-gallery .flex-control-nav {
  z-index: 101;
  position: absolute;
  right: 0;
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  left: unset;
  transform: unset;
}
.section-picture-gallery .flex-control-nav > li {
  all: unset;
}

.section-picture-gallery .flex-control-nav > li > a {
  padding: 0 1.25rem;
  height: 44px;
  width: 44px;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  border-radius: 50px;
  color: var(--text-black-clr);
  background-color: white;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  border: 1px solid var(--very-light-grey-clr) !important;
  transition: border-color 150ms var(--bezier-nobounce), color 150ms var(--bezier-nobounce), background-color 150ms var(--bezier-nobounce);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}
.section-picture-gallery .flex-control-nav > li:last-child > a {
  margin-right: 0;
}

.section-picture-gallery .flex-control-nav > li > a.flex-active {
  background-color: var(--dark-grey-clr);
  color: var(--text-white-clr);
  border-color: var(--dark-grey-clr) !important;
}
.section-picture-gallery .flex-control-nav > li:hover > a:not(.flex-active) {
  background-color: #1c1c1c10;
}

.customer-picture__item:first-child {
  grid-column: 1/3;
  grid-row: 1/2;
}

.customer-picture__item:nth-child(2) {
  grid-column: 1/2;
  grid-row: 2/5;
}

.customer-picture__item:nth-child(3) {
  grid-column: 2/3;
  grid-row: 2/6;
}

.customer-picture__item:nth-child(4) {
  grid-column: 1/2;
  grid-row: 5/9;
}

.customer-picture__item:nth-child(5) {
  grid-column: 2/3;
  grid-row: 6/9;
}

.customer-picture__item:first-child .customer-picture__img,
.customer-picture__item:nth-child(3) .customer-picture__img,
.customer-picture__item:nth-child(5) .customer-picture__img {
  padding-bottom: 85%;
}
.customer-picture__item:nth-child(2) .customer-picture__img,
.customer-picture__item:nth-child(4) .customer-picture__img {
  padding-bottom: 80%;
}

.customer-picture__item {
  border: var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.customer-picture__img {
  height: 100%;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}
h3.customer-picture__product-name {
  font-size: 1rem;
  line-height: 125%;
  font-weight: 700;
  margin-right: 2rem;
  text-align: center;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.customer-picture__tippy:hover h3 {
  text-decoration: underline;
}

.customer-picture__tippy .right-chevron::after {
  right: 0;
}

.customer-picture__img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  color: transparent;
  padding: 0;
}

.customer-picture__dots {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
}

.customer-picture__dot {
  opacity: 1;
  visibility: visible;
  transition: border-color 250ms ease-in-out, opacity 250ms ease-in-out, visibility 250ms ease-in-out;
  transform: translateX(-1rem) translateY(-1rem) scale(0.999);
  padding: 0;
  width: 2rem;
  height: 2rem;
  border: 2px solid transparent;
  position: absolute;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 64px;
  line-height: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.customer-picture__dot:hover,
.customer-picture__dot[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.4);
}
.customer-picture__dot::after {
  content: "";
  transition: transform 250ms ease-in-out;
  position: relative;
  display: block;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 55%);
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 64px;
}
.customer-picture__dot:hover::after,
.customer-picture__dot[aria-expanded="true"]::after {
  transform: scale(0.667);
}
.customer-picture__dot::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  right: -0.5rem;
  bottom: -0.5rem;
  display: block;
}

.customer-picture__tippy .woocommerce-price-suffix {
  display: none;
}

@media (min-width: 56.25em) {
  .customer-picture__gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(7, minmax(0, 1fr));
    grid-gap: 1.5rem;
    contain-intrinsic-size: auto 626px;
  }

  .customer-picture__item:first-child {
    grid-row: 1/8;
  }

  .customer-picture__item:nth-child(2) {
    grid-column: 3/4;
    grid-row: 1/4;
  }

  .customer-picture__item:nth-child(3) {
    grid-column: 4/5;
    grid-row: 1/5;
  }

  .customer-picture__item:nth-child(4) {
    grid-column: 3/4;
    grid-row: 4/8;
  }
  .customer-picture__item:nth-child(5) {
    grid-column: 4/5;
    grid-row: 5/8;
  }
}

@media (min-width: 37.5em) {
  .customer-picture__gallery {
    grid-gap: 1.5rem;
  }
}

/* Home highlight section */
.home-grey-box {
  padding: 2.5rem;
}

/* Reviews container */
.review-container {
  width: 100%;
  overflow-x: scroll;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch; /* Momentum iOS */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */

  padding: 0.5rem 0;

  content-visibility: auto;
  contain-intrinsic-size: auto 650px;
}

.review-container::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
  width: 0; /* Remove scrollbar space */
  height: 0; /* Remove scrollbar space */
  background: transparent; /* Optional: just make scrollbar invisible */
}

.review-container .review-wrapper {
  display: grid;
  grid-template-columns: repeat(18, minmax(185px, 1fr));
  row-gap: 2rem;
  column-gap: 2rem;
  animation: review-anim 50s alternate-reverse 0ms infinite linear;
  -webkit-animation: review-anim 50s alternate-reverse 0ms infinite linear;
  -moz-animation: review-anim 50s alternate-reverse 0ms infinite linear;
  -o-animation: review-anim 50s alternate-reverse 0ms infinite linear;
  animation-play-state: running;
  -webkit-animation-play-state: running;
  -moz-animation-play-state: running;
  -o-animation-play-state: running;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 50ms linear;
}

.review-container .review-wrapper:hover {
  -webkit-animation-play-state: paused;
  -moz-animation-play-state: paused;
  -o-animation-play-state: paused;
  animation-play-state: paused;
}

/* No readmore on Homepage Review Carousel */
.review-container .more {
  display: none !important;
}
.review-container .teaser-4 {
  max-height: 3rem;
}

.review-container .review-text p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.5rem;
}

.review-container .review-card:nth-child(10) {
  grid-column-start: 2;
  grid-column-end: 4;
}

.review-container .review-card {
  margin-bottom: 0px;
  grid-column-start: span 2;
  transition: transform 395ms var(--bezier);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

@media (hover: hover) and (pointer: fine) {
  .review-container .review-card:hover {
    transform: perspective(1px) scale(1.04);
  }
}

.star-rating span::before,
.star-rating::before {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  z-index: 0;
}

@keyframes review-anim {
  from {
    transform: translate3d(-185px, 0px, 0px);
    -moz-transform: translate3d(-185px, 0px, 0px);
    -webkit-transform: translate3d(-185px, 0px, 0px);
    -o-transform: translate3d(-185px, 0px, 0px);
  }
  to {
    transform: translate3d(-85%, 0px, 1px);
    -moz-transform: translate3d(-85%, 0px, 1px);
    -webkit-transform: translate3d(-85%, 0px, 1px);
    -o-transform: translate3d(-85%, 0px, 1px);
  }
}

/* Mobile hero slider - Card */
.mobile .front-page .header-banner__slider .header-banner__right {
  display: flex;
  width: 100%;
  height: 160px;
}

.mobile .front-page .header-banner__slider .header-banner__img {
  height: 160px;
  width: calc(100vw - 1.5rem);
  position: relative;
  top: unset;
  right: unset;
}
.mobile .front-page .header-banner__slider-item {
  width: 100%;
}

.mobile .front-page .header-banner__slider .medium > .header-banner__left {
  height: 230px;
  padding: 0 1rem 1rem 1rem;
}

.mobile .front-page .header-banner__slider .btn-accent {
  height: 40px;
  padding-right: 0.25rem;
  padding-left: 1.5rem;
}
.mobile .front-page .header-banner__slider .btn-accent.btn-arrow .white-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
}
.mobile .front-page .header-banner__slider .header-badge svg {
  width: 240px;
}

.mobile .front-page .header-banner__wrapper {
  border-radius: 10px;
}

.mobile .front-page .header-banner__slider .header-banner__title {
  padding: 0;
  font-size: 2rem;
  line-height: 2rem;
  margin-bottom: 0;
}

.mobile .front-page .header-banner__slider .header-banner__title > .white-text-header {
  font-size: 1.5rem;
  line-height: 1.75rem;
  margin-bottom: 0.5rem;
}
.mobile .front-page .header-banner__slider .header-banner__accent-button {
  padding: 0;
}

@media screen and (max-width: 37.5rem) {
  /* Main banner */
  .section-header-banner {
    margin-bottom: 0.75rem;
    border-radius: 10px;
  }

  .section-header-banner .header-banner__wrapper {
    flex-direction: column;
  }

  .header-banner__left {
    order: 2;
  }

  .header-banner__right {
    order: 1;
  }

  /* Gifts section */
  .gift-box {
    margin-bottom: 1rem;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    min-height: 167px;
  }
  .gift-box-wrapper:nth-child(1) .gift-box,
  .section-gifts .no-mobile + .mb-half-fluid:nth-child(2) .gift-box {
    background: var(--very-light-grey-clr);
  }
  .gift-box-wrapper:nth-child(2) .gift-box {
    background: var(--light-grey-clr);
  }

  .section-gifts .mb-half-fluid:nth-child(1),
  .section-gifts .no-mobile + .mb-half-fluid:nth-child(2) {
    margin-right: 0.75rem;
  }

  .gift-box h2 {
    font-size: 1.5rem;
  }
  .gift-value {
    font-size: 4rem;
    opacity: 1;
    margin-top: 1.5rem;
    line-height: 3rem;
  }

  /* Official f1 posters */
  .section-official-f1-posters.stand-alone .content-image__left {
    flex-direction: column;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .section-official-f1-posters.stand-alone .content-image__right {
    height: 100%;
  }
  .section-official-f1-posters.stand-alone .header-banner__title {
    white-space: normal;
    font-size: var(--big);
    line-height: 100%;
    padding-left: 1rem;
    min-width: 220px;
    margin-bottom: 2rem;
  }
  .section-official-f1-posters.stand-alone .header-banner__title > * {
    white-space: normal;
    font-size: var(--big);
    line-height: 100%;
  }

  /* Home highlight section */
  .home-grey-box {
    padding: 1.5rem;
  }
  .home-grey-box br {
    display: none;
  }

  /* Reviews */
  .review-container .review-wrapper {
    row-gap: 0.75rem;
    column-gap: 0.75rem;
    grid-template-columns: repeat(18, minmax(152px, 1fr));
  }
  .review-container .review-card {
    padding: 1rem;
  }
  .review-container .review-wrapper {
    animation: review-anim 9s alternate 250ms infinite linear;
    animation-play-state: review-anim 9s alternate infinite linear;
    -webkit-animation-play-state: review-anim 9s alternate infinite linear;
    -moz-animation-play-state: review-anim 9s alternate infinite linear;
    -o-animation-play-state: review-anim 9s alternate infinite linear;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /* Newsroom */
  .section-newsroom.mb-40 {
    margin-bottom: 0;
  }
}

@media screen and (min-width: 37.5rem) {
  .header-banner__title {
    font-size: 3.5rem;
  }

  .header-banner__title > .white-text-header {
    font-size: 1.75rem;
    line-height: 2.25rem;
  }

  .mobile .front-page .header-banner__wrapper {
    border-radius: 0;
  }
  .mobile .front-page .header-banner__slider .medium > .header-banner__left {
    height: 400px;
    padding: 0 40px;
    width: calc(100% - 80px);
  }
  .mobile .front-page .header-banner__slider .medium .header-banner__right,
  .mobile .front-page .header-banner__slider .medium .header-banner__img {
    height: 400px;
  }

  .mobile .front-page .header-banner__slider .header-banner__img {
    height: 264px;
  }
}

@media screen and (min-width: 62rem) {
  /* Slider header specific */
  .desktop .section-header-banner .flex-control-paging {
    left: calc(50% + 0.5rem);
    transform: none;
  }
}
