.slider hr {
  display: none;

  @media (width >= 768px) {
    display: block;
    margin: var(--sizing-m) 0;
    border-bottom: var(--shape-border-width-1) solid var(--neutrals-bars-unselected);
  }

  @media (width >= 1024px) {
    margin-bottom: var(--sizing-xl);
  }
}

.section.slider-container {
  padding: var(--sizing-xl) 0;
}

.container__slider {
  position: relative;
  margin: auto;
  overflow: hidden;
}

.container__slider .teaser__content {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--neutrals-sub-texts-paragraphs);

  @media (width >= 768px) {
    padding: 14px;
    border-bottom: 4px solid var(--primary-color);
    margin-bottom: 0;
  }

  @media (width >= 1024px) {
    padding: var(--sizing-xl);
  }
}

.container__slider .slider-content {
  padding: 0;
  display: inline-block;
  overflow: hidden;
  margin-bottom: var(--sizing-m);

  @media (width >= 768px) {
    margin-bottom: 0;
  }
}

.container__slider .slider-title {
  font-size: var(--fs-large);
  font-weight: var(--fw-400);
  line-height: var(--lh-large);
  text-align: left;
  color: var(--neutrals-sub-texts-paragraphs);
  font-feature-settings: var(--font-settings);
  margin: 0;

  @media (width >= 768px) {
    font-size: var(--fs-xslarge);
    font-weight: var(--fw-400);
    line-height: var(--lh-normal);
  }
}

.container__slider .teaser-content {
  position: relative;
}

.container__slider .teaser__actions {
  margin-top: 0;
  padding-top: 6px;
}

.container__slider .teaser__actions .button.primary__btn {
  width: inherit;
  height: inherit;
  background: none;
}

.container__slider .teaser__actions a {
  display: inline-block;
  color: var(--neutrals-sub-texts-paragraphs);
  font-family: var(--body-font-family);
  font-size: var(--fs-xxsmall);
  font-style: normal;
  font-weight: var(--fw-500);
  line-height: var(--lh-medium);
  border-bottom: 1px solid var(--neutrals-sub-texts-paragraphs);
  position: relative;
  padding-right: var(--sizing-xl);
}

.container__slider .teaser__card .teaser__actions a::after {
  content: ' ';
  position: absolute;
  left: 100%;
  margin-left: -16px;
  bottom: 8px;
  height: 16px;
  width: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="23" height="23" viewBox="0 0 23 23" fill="none"><path d="M13.848 9.48609L8.13127 15.2028L7.42417 14.4957L13.1409 8.77898L7.77042 8.77898L7.77772 7.77819H14.8488V14.8493L13.848 14.8566L13.848 9.48609Z" fill="black"/></svg>');
  transition: all 0.3s linear;
}

.container__slider .teaser__card:hover .teaser__actions a::after {
  height: 32px;
  width: 32px;
  bottom: 8px;
  background-size: contain;
}

.container__slider .teaser__info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 34px;

  .teaser__read-more {
    background-color: transparent;
    padding: 0;
    border: none;
    font-size: var(--fs-small);
    line-height: var(--lh-xsmall);
    font-weight: var(--fw-400);
    color: var(--primary-variations-primary);
    display: flex;
    align-items: flex-end;
    gap: var(--sizing-xs);
    margin-top: var(--sizing-s);
    margin-bottom: var(--sizing-s);
  }
}

.container__slider .teaser__info .teaser__description p {
  font-feature-settings: var(--font-settings);
  font-size: var(--fs-xsmall);
  color: var(--neutrals-sub-texts-paragraphs);
  text-align: left;
  font-style: normal;
  font-weight: var(--fw-300);
  line-height: var(--lh-medium);
  margin: var(--sizing-s) 0 0;

  @media (width < 768px) {
    min-width: 304px;
  }
}

.container__slider .teaser__info .teaser__title .card-title {
  font-size: var(--fs-large);
  font-weight: var(--fw-400);
  line-height: normal;
  text-align: left;
  color: var(--neutrals-sub-texts-paragraphs);
  margin: 0;
}

.container__slider .teaser__card {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  height: 100%;

  a {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;

    .teaser__content {
      flex: 1;

      .teaser__info {
        flex: 1;

        .title-arrow {
          display: flex;
          flex-direction: column;

          & > * {
            flex: 1;
          }
        }
      }
    }
  }

  .teaser__image {
    width: 100%;
    display: block;
    overflow: hidden !important;
    line-height: 0;
    margin-bottom: var(--sizing-s);
    height: auto;
    aspect-ratio: 320 / 168;

    @media (width >= 768px) {
      aspect-ratio: 231.312 / 115.081;
    }

    @media (width >= 1024px) {
      aspect-ratio: 402 / 200;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      transition: transform 0.3s ease;
    }
  }

  &:hover {
    a {
      text-decoration: none;
    }

    .teaser__image {
      img {
        transform: scale(1.1);
      }
    }

    .teaser__read-more {
      cursor: pointer;
      text-decoration: underline;
    }
  }
}

.container__slider .teaser-slider {
  width: 100%;

  .splide__pagination {
    margin-top: 16px;
    top: 0;
  }
}

.container__slider .splide__arrows {
  @media (width >= 1024px) {
    position: absolute;
    right: 0;
    top: -80px;
  }
}

.container__slider .splide__track {
  overflow: hidden;
  padding: 0;
}

.container__slider .splide__list {
  display: flex;
  align-items: stretch;
}

.container__slider .splide__slide {
  height: auto;
  display: flex;
  flex: 0 0 auto;
  width: auto;
}

/* Responsive adjustments */
@media (width >= 768px) {
  .container__slider .teaser__card {
    flex: auto;
  }

  .container__slider .teaser__card .teaser__image {
    margin-bottom: 0;
  }

  .container__slider .splide__slide {
    width: calc(33.3333% - 16px) !important;
    min-width: 231px;
    border: 1px solid var(--border-gray);
    display: block;
  }

  .section.slider-container {
    padding: 32px 0;
  }

  .container__slider .teaser__info {
    gap: 46px;

    .teaser__read-more {
      font-size: var(--fs-small);
      font-weight: var(--fw-400);
      line-height: var(--lh-xsmall);
      margin-bottom: 0;
      margin-top: var(--sizing-xl);
    }
  }

  .container__slider .teaser__info .teaser__description p {
    font-size: 1.1rem;
    margin-top: 7px;
    line-height: var(--lh-xsmall);
    font-weight: var(--fw-400);
    min-width: 203px;
  }

  .container__slider .teaser__info .teaser__title .card-title {
    font-size: var(--fs-small);
    line-height: 1.6rem;
    font-weight: var(--fw-500);
    min-height: 0;
  }
}

@media (width <1024px) {
  .container__slider .splide__arrow--prev {
    background-image: url('/genuine-accessories/icons/arrow_prev.svg');
    width: 34px;
    height: 34px;
    background-size: 34px 34px;
  }

  .container__slider .splide__arrow--next {
    background-image: url('/genuine-accessories/icons/arrow_forward_FILL.svg');
    width: 34px;
    height: 34px;
    background-size: 34px 34px;
  }

  .container__slider .splide__arrow--prev,
  .container__slider .splide__arrow--next {
    @media (width >= 768px) and (width < 1024px) {
      width: 19px;
      height: 19px;
      background-size: 19px;
    }
  }
}

@media (width >=1024px) {
  .section.slider-container {
    padding: 50px 0;
  }

  .container__slider .teaser__card {
    flex: 0 0 auto;
    overflow: hidden;
    cursor: pointer;
    padding-bottom: 0;
  }

  .container__slider .slider-title {
    font-size: var(--fs-xxlarge);
    font-weight: var(--fw-400);
    line-height: var(--lh-normal);
  }

  .container__slider .teaser__actions a {
    font-size: 2.4rem;
    font-style: normal;
    font-weight: var(--fw-500);
    line-height: 2.8rem;
  }

  .container__slider .teaser__card .teaser__actions a::after {
    margin-left: -24px;
    bottom: 5px;
    height: 24px;
    width: 24px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="34" height="34" viewBox="0 0 34 34" fill="none"><path d="M20.772 14.2291L12.1969 22.8042L11.1363 21.7436L19.7113 13.1685L11.6556 13.1685L11.6666 11.6673H22.2732V22.2739L20.772 22.2848L20.772 14.2291Z" fill="black"/></svg>');
  }

  .container__slider .teaser__card:hover .teaser__actions a::after {
    height: 42px;
    width: 42px;
    bottom: 8px;
    background-size: contain;
  }

  .container__slider .teaser__info {
    gap: 0;

    .teaser__read-more {
      font-size: var(--fs-medium);
      line-height: var(--lh-large);
      margin-top: 40px;
    }
  }

  .container__slider .teaser__info .teaser__title .card-title {
    color: var(--neutrals-sub-texts-paragraphs);
    font-feature-settings: var(--font-settings);
    font-size: var(--fs-xlarge);
    line-height: var(--lh-xlarge);
  }

  .container__slider .teaser__info .teaser__description p {
    font-size: var(--fs-small);
    margin-top: 1.6rem;
    line-height: 1.68rem;
  }

  .hide {
    display: none !important;
  }

  .splide__arrow {
    width: 40px;
    height: 40px;
    background-size: 40px 40px;
  }
}

@media (width >= 1366px) {
  .container__slider .teaser__card .teaser__image {
    height: 200px;
    max-height: fit-content;
  }

  .container__slider .teaser__card {
    min-width: 402px;
    flex: 0 0 auto;
  }

  .container__slider .teaser__info {
    gap: 28px;
  }

  .container__slider .teaser__info .teaser__description p {
    min-width: 354px;
  }
}

@media (width>=1920) {
  .container__slider .teaser__card .teaser__image {
    height: 329px;
    max-height: 329px;
  }
}

.modal dialog {
  .modal-container.modal-container--teaser {
    background: transparent;
    padding: 20px;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);

    @media (width >=768px) and (width < 1024px) {
      width: 623px;
      padding: 0;
    }

    @media (width >= 1024px) {
      width: 830px;
      padding: 0;
    }

    .modal-header {
      margin-bottom: 7px;

      @media (width >= 1024px) {
        position: absolute;
        right: 8px;
        top: 8px;
        left: unset;
        z-index: 1;
      }

      .close-button-container {
        justify-content: flex-end;

        .close-button {
          transform: none;
          position: unset;

          @media (width >=768px) {
            width: 48px;
            height: 48px;
          }

          .icon.icon-close {
            background-image: url('/genuine-accessories/icons/close-light.svg');
          }
        }
      }
    }

    .teaser__modal-content {
      position: relative;
      height: 168px;

      @media (width >=768px) and (width < 1024px) {
        height: 327px;
      }

      @media (width >= 1024px) {
        height: 436px;
      }

      .teaser__modal-video-wrapper {
        height: 168px;

        @media (width < 768px) {
          border-radius: 4px;
        }

        @media (width >= 1024px) {
          height: 436px;
        }

        @media (width >=768px) and (width < 1024px) {
          height: 327px;
        }

        video,
        iframe {
          object-fit: fill;
        }

        .vjs-modal-dialog-content{
          z-index: 0;
        }
      }
    }
  }
}
