.service-banner-container[data-aue-model] {
  max-height: 500px;
}

.service-banner.tnc-variation {
  .image-container {
    img {
      object-fit: initial;
      height: auto;
      aspect-ratio: 360/390;

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

.service-banner.roadside-assistance {
  & .service_slide-data {

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

    & .service_slide-wrapper {
      justify-content: flex-end;

      @media (width>=768px) {
        justify-content: center;
      }

      & .service_slide-textContainer {
        & .service_slide-title {
          margin-bottom: 1rem;
        }

        & .service_slide-description {
          width: auto;
          margin-bottom: 0;

          & :is(h1, h2, h3, h4, h5, h6) {
            font-size: var(--body-font-size-s);
            margin-bottom: 0.5rem;
          }
        }
      }
    }
  }
}

.service-banner {
  position: relative;

  .service_carousel {
    position: relative;
    overflow: hidden;
    background-color: var(--primary-black);
  }

  .splide__track {
    overflow: hidden;
    position: relative;
    z-index: 0;
  }

  .splide__track--draggable {
    user-select: none;
  }

  .splide__list {
    backface-visibility: hidden;
    display: flex;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  .splide__slide {
    backface-visibility: hidden;
    box-sizing: border-box;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    list-style-type: none !important;
    margin: 0;
    position: relative;
  }

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

  .splide__pagination {
    margin: 0;
    line-height: 0;
    font-size: 0;
  }

  .splide__pagination__page {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-main);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
  }

  .splide__pagination__page.is-active {
    background: var(--primary-main);
    width: 24px;
    border-radius: 4px;
  }

  .service_carousel_container {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
  }

  .service_slide {
    min-width: 100%;
    flex-shrink: 0;

    &.has-overlay {
      .service_slide-data {
        background: var(--gradient-7);
      }
    }
  }

  .image-container {
    position: relative;
    width: 100vw;

    img {
      object-fit: cover;
      display: block;
      height: calc(100vh - 64px);
      width: 100%;

      @media (width>=1024px) {
        height: calc(100vh - 64px);

        &.full-image {
          height: auto;
        }
      }

      &.full-image {
        height: auto;
      }
    }
  }

  .service_slide-data {
    position: absolute;
    bottom: 0;
    height: 100%;
    width: 100%;
    padding-bottom: 2.625rem;
    overflow: auto;
    z-index: 1;

    @media (width>=1024px) {
      padding: 0 3.75rem 2.625rem 3.75rem;
    }

    .service_slide-wrapper {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding-right: 1.25rem;

      .service_slide-textContainer {
        .service_slide-title {
          margin-bottom: 0.5rem;
        }

        :is(h1, h2, h3, h4, h5, h6, p) {
          margin: 0;
          color: var(--tertiary-white);
          font-size: var(--body-font-size-l);
          line-height: var(--heading-lh-28-des);
          font-family: var(--body-font-arena);
          font-weight: var(--fw-600);
          font-style: normal;

          @media (width>=1024px) {
            line-height: var(--heading-lh-16-des-display);
            font-size: var(--heading-font-1-des);
            font-weight: var(--fw-600);
          }
        }

        .service_slide-description {
          margin-bottom: 1rem;

          p {
            font-size: var(--body-font-size-xxs);
            color: var(--tertiary-light-grey);
            font-weight: var(--fw-300);
            line-height: var(--heading-lh-19-mob-display);

            @media (width>=1024px) {
              font-size: var(--body-font-size-xs);
            }
          }

          @media (width>=1024px) {
            margin-bottom: 1.5rem;
          }
        }
      }

      .cta__btn {
        background-color: var(--tertiary-white);
        padding: 0.5rem 1rem;
        display: block;
        width: max-content;
        font-size: var(--body-font-size-xxs);
        line-height: var(--heading-lh-4--mob-text-medium);
        font-style: normal;
        color: var(--primary-black);
        text-align: center;
        font-weight: var(--fw-400);
        margin-bottom: 1rem;
        border: none;
        cursor: pointer;

        @media (width>=1024px) {
          padding: var(--space-12px) var(--space-24px);
          margin-bottom: 2rem;
        }
      }
    }

    .terms-and-conditions_wrapper {
      position: absolute;
      bottom: 6rem;
      right: 1.25rem;

      @media (width>=768px) {
        bottom: 2.625rem;
      }

      @media (width>=1024px) {
        right: 3.5rem;
        bottom: 3.5rem;
      }

      .terms-and-conditions {
        color: var(--tertiary-white);
        text-align: left;
        font-family: var(--body-font-arena);
        font-size: var(--body-font-size-xxxxs);
        font-style: italic;
        font-weight: var(--fw-300);
        line-height: var(--heading-lh-5--mob);
        margin: 0;
        text-decoration-line: underline;

        @media (width>=1024px) {
          font-size: var(--body-font-size-xxxs);
        }
      }

      .terms-and-condition-popup {
        display: none;
        width: 14.375rem;
        height: auto;
        padding: 0.5rem 0.75rem;
        background: var(--secondary-main);
        box-shadow: 0px 2px 7px 0px rgba(0, 0, 0, 0.12);
        position: absolute;
        bottom: 2.5rem;
        right: -8px;
        left: unset;

        p,
        a,
        ul {
          margin: 0;
          padding: 0;
        }

        p,
        a,
        ul li {
          color: var(--tertiary-white);
          font-family: var(--service-font-family);
          font-size: var(--body-font-size-xxxxs);
          font-weight: var(--fw-300);
          line-height: var(--heading-lh-20-mob-text-small);
          margin-top: 0;
        }

        a {
          color: var(--primary-blue-700);
          text-decoration: underline;
        }

        ul {
          padding-left: var(--space-15px);

          li {
            list-style-type: disc;
          }
        }

        &::after {
          content: '';
          background: url('/icons/tandcpopup_arrow.svg') no-repeat center;
          display: block;
          position: absolute;
          bottom: -1rem;
          width: 1.25rem;
          height: 1.25rem;
          right: 1rem;
          left: unset;
        }
      }
    }

    .terms-and-conditions_wrapper:hover {
      .terms-and-condition-popup {
        display: block;
      }
    }
  }

  &.warranty-variation {
    .service_slide-data {
      padding-top: 48px;

      .service_slide-wrapper {
        justify-content: flex-start;

        @media (width>=1024px) {
          justify-content: flex-end;
        }

        .service_slide-textContainer {
          @media (width >=768px) {
            margin-block: 56px;
          }

          & :is(h1, h2, h3, h4, h5, h6) {
            font-size: var(--heading-font-6-mob);
            line-height: var(--heading-lh-11-mob-display);
            text-align: center;

            @media (width >=1024px) {
              line-height: var(--heading-lh-3-des-display);
              font-size: var(--heading-font-4-des);
              font-weight: var(--fw-500);
              text-align: left;
            }
          }
        }
      }
    }
  }

  .nav-container {
    position: absolute;
    bottom: 2.625rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;

    @media (width>=1024px) {
      flex-direction: row-reverse;
      align-items: flex-end;
      gap: 0;
      bottom: 1.75rem;
    }

    .service_slide_arrow-navigation {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;

      .arrow {
        background: none;
        border: none;
        width: 1.5rem;
        height: 1.5rem;
        padding: 0.28125rem;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        background-image: url(/icons/arrow-forward-white.svg);
        cursor: pointer;
        pointer-events: auto;

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

      .prev_arrow {
        transform: rotate(180deg);
      }

      .slide-count {
        pointer-events: auto;

        @media (width>=1024px) {
          display: flex;
          align-items: end;
        }

        .slide-current {
          color: var(--tertiary-white);
          font-family: var(--body-font-arena);
          font-size: var(--heading-font-6-mob);
          font-style: normal;
          font-weight: var(--fw-400);
          line-height: var(--heading-lh-7-des);
        }

        .slide-total {
          color: var(--tertiary-white);
          font-family: var(--body-font-arena);
          font-size: var(--body-font-size-xxxs);
          font-style: normal;
          font-weight: var(--fw-400);
          line-height: var(--heading-lh-19-mob-display);
        }
      }
    }

    .carousel_dots {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.75rem;
      width: 100%;

      @media (width>=1024px) {
        justify-content: flex-start;
        gap: 1.5rem;
      }

      button {
        border: none;
      }

      .carousel_dot {
        all: revert;
        background-color: var(--tertiary-white);
        opacity: 0.5;
        background-position: center;
        background-size: cover;
        height: 1px;
        width: 2.5rem;
        pointer-events: auto;
        border: transparent;

        @media (width>=1024px) {
          width: 5.93895rem;
          height: 2px;
        }

        &.is-active {
          background-image: var(--tertiary-white);
          width: 13.5rem;
          height: 1px;
          opacity: 1;

          @media (width>=1024px) {
            width: 29.5rem;
            height: 2px;
          }
        }
      }
    }
  }
}
