.homepage-banner__carousel {
  .vjs-v8 {
    width: auto;
    height: auto;

    .vjs-loading-spinner {
      display: none;
    }
  }
  .car-hero-banner-image,
  .car-hero-banner-image img {
    aspect-ratio: 9 / 16;
    object-fit: cover;
    width: 100%;
    display: block;
    height: calc(100svh - 78px);

    @media (height <=450px) {
      min-height: 450px;
    }

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

    @media (width >=1200px) {
      height: calc(100svh - 112px);

      @media (height <=470px) {
        min-height: 470px;
      }
    }
  }

  .car-hero-banner-video {
    display: block;
    line-height: 0;
  }

  .car-hero-banner-video,
  .car-hero-banner-video video,
  .car-hero-banner-video img {
    aspect-ratio: 9 / 16;
    object-fit: cover;
    width: 100%;
    height: calc(100svh - 78px);

    @media (height <=450px) {
      min-height: 450px;
    }

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

    @media (width >=1200px) {
      height: calc(100svh - 112px);

      @media (height <=470px) {
        min-height: 470px;
      }
    }
  }
}

.homepage-hero-banner-container {
  background-color: var(--tertiary-black);
  position: relative;
  height: calc(100svh - 78px);

  @media (height <=450px) {
    min-height: 450px;
  }

  @media (width >=1200px) {
    height: calc(100svh - 112px);

    @media (height <=470px) {
      min-height: 470px;
    }
  }

  .car-hero-banner-top-content-wrapper {
    flex: 1;
    display: flex;
  }

  &[data-aue-model] {
    height: auto;

    .car-hero-banner-image img {
      height: auto;
    }
  }

  .car-hero-banner-disclaimer {
    margin: unset;
    margin-top: 16px;
    position: relative;
    font-style: italic;
    pointer-events: all;
    line-height: var(--lh-14px-nexa);
    align-self: flex-start;
    color: var(--tertiary-medium-grey);

    a {
      color: inherit;
      text-decoration: underline;
    }
  }

  .car-hero-banner-content {
    margin: 0;
    padding-top: 25px;
    padding-bottom: 60px;
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    height: 100%;
    flex-direction: column;
    z-index: 1;

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

    @media (width >=1200px) {
      padding-top: 55px;
      padding-bottom: 15px;
    }

    .terms-container-inner {
      position: relative;

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

      @media (width >=1024px) {
        display: flex;
        align-items: center;
        margin-bottom: 32px;
        justify-content: flex-end;

        .terms {
          margin: 0;
          align-self: unset;
        }
      }

      @media (width >=1200px) {
        margin-bottom: 12px;
      }

      @media (width >=1600px) {
        margin-bottom: 32px;
      }
    }

    .terms {
      margin: unset;
      margin-top: 16px;
      position: relative;
      font-style: italic;
      width: 100%;
      pointer-events: all;
      line-height: 14px;
      align-self: flex-start;
      color: var(--tertiary-medium-grey);
      text-align: right;

      a {
        color: inherit;
        text-underline-offset: auto;
        text-decoration-style: solid;
        text-decoration-skip-ink: none;
        text-decoration-thickness: auto;
        text-decoration-line: underline;
        text-underline-position: from-font;
      }

      @media (width >=768px) {
        a {
          text-decoration: none;

          &:hover {
            cursor: pointer;
            text-decoration: underline;
          }
        }
      }
    }

    .termsConditionPopup {
      display: none;
      width: 231px;
      height: 219px;
      padding: 8px 12px;
      background: var(--Secondary-Main, var(--secondary-main));
      box-shadow: 0px 2px 7px 0px rgb(0 0 0 / 0.12);
      position: absolute;
      bottom: 32px;
      left: unset;
      right: 0px;
      z-index: 11111;

      &.showTermsPopup {
        display: block !important;
        z-index: 11111;
      }

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

      p,
      ul li {
        color: var(--tertiary-white);
        font-family: 'Fira Sans', 'Fira Sans Fallback', sans-serif;
        font-size: 0.625rem;
        font-style: normal;
        font-weight: 300;
        line-height: 17px;
        margin-top: 0;
      }

      ul {
        padding-left: 15px;

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

      &::after {
        content: '';
        background-image: url('/icons/tandcpopup_arrow.svg');
        background-repeat: no-repeat;
        background-position: center;
        display: block;
        bottom: -17px;
        position: absolute;
        width: 20px;
        height: 20px;
        right: 18px;
      }

      @media (width >=1024px) {
        display: none;
        width: 231px;
        height: 219px;
        padding: 8px 12px;
        background: var(--Secondary-Main, var(--secondary-main));
        box-shadow: 0px 2px 7px 0px rgb(0 0 0 / 0.12);
        position: absolute;
        bottom: 32px;
        left: unset;
        right: 0px;
        z-index: 11111;
      }
    }

    .car-hero-banner-price {
      font-weight: var(--fw-400);
      color: var(--gainsboro);
      margin-top: 28px;

      @media (width>=768px) {
        margin-top: 40px;
      }

      @media (width>=1024px) {
        margin-top: 32px;
      }

      @media (width>=1366px) {
        margin-top: 75px;
      }

      .price-label {
        color: var(--tertiary-light-grey);
        margin-bottom: 4px;
      }

    }

    .car-hero-banner-logo {
      max-height: 69px;
      max-width: 236px;
      display: block;
      object-fit: contain;
      object-position: left;
      
      @media (width >=1024px) {
        max-height: 87px;
        max-width: 296px;
      }
    }

    .car-hero-banner-bottom-content {
      flex-direction: column;
      align-content: center;

      &:not(:has(.highlights-section)) {
        align-content: initial;
      }

      &>div>div.g-row {
        @media (width >=768px) and (width <1024px) {
          width: calc(100% + 30px);

          .car-hero-banner-bottom-right {
            width: 100%;

            .terms-container-inner {
              width: 100%;
            }
          }
        }
      }

      .car-hero-banner-specs {
        display: none;
        padding-bottom: 16px;

        .car-hero-banner-spec-container {
          display: flex;
          flex-direction: column-reverse;
          text-align: left;
          gap: 0.25rem;
          justify-content: flex-end;

          &:not(:first-child) {
            border-left: 1px solid var(--tertiary-light-grey);
            margin-left: 0.5rem;

            .specs-label,
            .specs-value {
              margin-left: 0.5rem;
            }

            @media (width >=768px) {
              margin-left: 1.5rem;

              .specs-label,
              .specs-value {
                margin-left: 1.5rem;
              }
            }
          }

          .specs-value {
            color: var(--tertiary-white);
            font-weight: var(--fw-700);
            font-size: var(--body-xs-nexa);
            line-height: var(--lh-24px-nexa);
            text-align: left;
            letter-spacing: 1.12px;

            @media (width >=768px) {
              font-size: var(--body-s-nexa);
            }
          }

          .specs-label {
            color: var(--tertiary-white);
            font-size: 11px;
            font-weight: var(--fw-300);
            line-height: var(--lh-20px-nexa);
            text-align: left;
            text-transform: uppercase;

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

      @media (width < 768px) {
        .car-hero-banner-spec-container:nth-child(1) {

          span.specs-label,
          span.specs-value {
            text-align: left;
          }
        }

        .car-hero-banner-spec-container:nth-child(2) {

          span.specs-label,
          span.specs-value {
            text-align: center;
          }
        }

        .car-hero-banner-spec-container:nth-child(3) {

          span.specs-label,
          span.specs-value {
            text-align: right;
          }
        }
      }

      .highlights-section {
        justify-content: space-between;
        align-items: center;
        display: flex;
        flex-direction: column;

        .car-hero-banner-bottom-right .car-hero-banner-actions {
          align-items: center;
        }

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

        .car-hero-banner-specs {
          display: flex;
          justify-content: center;

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

      .car-hero-banner-bottom-right {
        display: block;

        .car-hero-banner-actions {
          display: flex;
          flex-direction: column;
          gap: 1rem;
          text-align: center;
          position: relative;
          z-index: 1;

          @media (width >=768px) {
            flex-direction: row;
            margin-bottom: 30px;
          }

          @media (width >=1024px) {
            justify-content: flex-start;
            align-items: initial;
            margin-bottom: 32px;
          }

          @media (width >=1200px) {
            margin-bottom: 12px;
          }

          @media (width >=1600px) {
            margin-bottom: 32px;
          }

          .car-hero-banner-primary-btn {
            margin-bottom: 16px;
          }

          .car-hero-banner-secondary-btn {
            margin-right: 0;
            width: 100%;
          }

          .md-btn-lg {
            width: 100%;
            height: 100%;

            @media (width>=768px) {
              width: auto;
              flex-shrink: 0;
              padding: 14px 20px;
            }

            @media (width>=1024px) {
              padding: 8px 28px;
              width: auto;
              height: 52px;
            }
          }

          .button.cta__new-outlined.md-btn-lg {
            font-weight: var(--fw-400);
          }

          .primary-white-btn {
            position: relative;
            align-items: center;

            &::after {
              content: url(/icons/arrow.svg);
              height: 20px;
              width: 20px;
            }

            &.ryi-popup-cta {
              &::after {
                content: none;
              }
            }

            &:hover {
              color: var(--tertiary-black);
            }
          }
        }

        &:has(.terms-container-inner) {
          .car-hero-banner-actions {
            @media (width >=768px) {
              margin-bottom: unset;
            }
          }
        }

        .disclaimer {
          position: relative;
          width: 100%;
          text-align: left;
        }

        .car-hero-banner-disclaimer {
          color: var(--tertiary-medium-grey);
          font-size: var(--body-xxs-nexa);
          font-style: italic;
          font-weight: var(--fw-400);
          line-height: var(--lh-14px-nexa);
          float: none;
          margin-top: 16px;

          p {
            text-align: left;
          }
        }
      }

      .highlights-section .disclaimer {
        text-align: center;
      }
    }
  }
  /* Mute/Unmute Button Styles */
  .mute-btn-wrapper {
    min-height: 35px;
    text-align: right;
    position: absolute;
    top: 3.5rem;
    right: 2rem;
    margin-bottom: 0;

    @media (width >= 1024px) {
      position: relative;
      top: auto;
      right: auto;
      display: flex;
      justify-content: flex-end;
      margin-bottom: 16px;
    }

    .mute-btn-block,
    .unmute-btn-block {
      background: transparent;
      border: 0;
      display: none;
      cursor: pointer;
      padding: 0;

      &.active {
        display: block;
      }

      img {
        width: 23px;
        height: auto;
      }

      @media (width >= 1024px) {
        img {
          width: 30px;
          height: auto;
        }
      }
    }
  }
}

/* Media Queries */
@media (width >=1024px) {
  .homepage-hero-banner-container {
    .car-hero-banner-content {
      padding-top: 60px;
      padding-bottom: 72px;

      .termsConditionPopup {
        left: unset;
        right: 0px;
      }

      .car-hero-banner-price {
        .price-label {
          margin-bottom: 8px;
        }
      }

      .car-hero-banner-bottom-content {
        display: flex;
        justify-content: space-between;
        align-content: initial;

        .car-hero-banner-specs {
          .car-hero-banner-spec-container {
            gap: 12px;

            &:not(:first-child) {
              margin-left: 28px;

              .specs-label,
              .specs-value {
                margin-left: 28px;
              }
            }

            .specs-value {
              font-size: var(--body-xl-nexa);
              line-height: var(--lh-24px-nexa);
              font-weight: var(--fw-500);
            }

            .specs-label {
              font-size: var(--body-s-nexa);
              line-height: var(--lh-20px-nexa);
              font-weight: var(--fw-400);
            }
          }
        }

        .car-hero-banner-bottom-right {
          width: auto;
          padding-right: 0;

          .disclaimer {
            display: flex;
            justify-content: flex-start;
            position: relative;
            width: 100%;
          }

          .car-hero-banner-disclaimer {
            font-size: var(--body-xxs-nexa);
            line-height: var(--lh-14px-nexa);
            text-align: right;
            margin-top: 16px;
            padding-right: 0;

            p {
              margin-bottom: 0;
            }
          }
        }

        .highlights-section .disclaimer {
          justify-content: flex-end;
        }
      }
    }
  }
}

@media (height >=500px) and (height <=700px) and (width >=1200px) {
  .homepage-hero-banner-container {
    .car-hero-banner-content {
      padding-bottom: 15px;
    }

    .car-hero-banner-disclaimer {
      padding-right: 22px;
    }

    .car-hero-banner-bottom-right {
      padding-right: 22px;
    }
  }
}

.block.homepage-hero-banner {
  position: relative;

  ul,
  li {
    padding: 0;
    margin: 0;
  }

  .splide {
    visibility: unset;
  }

  .splide__list {
    display: flex;
  }

  .fallback-item {

    .car-hero-banner-actions,
    .car-hero-banner-image img,
    .car-hero-banner-top-content {
      opacity: 0.15;
      user-select: none;
      animation: animateblur 3s infinite;
    }
  }

  .content-container {
    position: absolute;
  }

  .controls-section {
    bottom: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    padding-bottom: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;

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

    @media (width >=1200px) {
      padding-bottom: 10px;
    }
  }

  .splide__pagination {
    position: relative;
    column-gap: 8px;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    pointer-events: none;
  }

  .splide__pagination li {
    list-style: none;
    line-height: 0;
    min-height: 8px;
  }

  .splide__pagination li,
  .controls button {
    pointer-events: auto;
  }

  .dot {
    cursor: pointer;
    transition: background 0.3s;
    background: url('/icons/carousel-inactive-dot.svg') center/auto no-repeat;
    width: 8.605px;
    height: 8px;
  }

  .dot.is-active {
    background-image: url('/icons/carousel-active-dot.svg');
    width: 48.215px;
    height: 8px;
  }

  .splide__arrows {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .splide__arrow {
    width: 48px;
    height: 48px;
    padding: 14px;
    background: url('/icons/carousel_arrow_white.svg') center no-repeat;
  }

  .splide__arrow:disabled {
    opacity: 0.5;
  }

  .splide__arrow--prev {
    transform: rotate(180deg);
  }

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

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

  .splide.hide-pagination {
    .splide__arrows {
      display: none;
    }
  }

  .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;
    width: 100%;
  }

  .car-hero-banner-content:not(.custom-banner) {
    @media (width <768px) {
      padding-inline: 20px;
    }
  }

  .ha-headings .heading {
    @media (width >=768px) {
      max-width: 560px;
    }

    @media (width >=1024px) {
      max-width: 400px;
    }
  }

  .ha-headings .description {
    margin-top: 8px;
  }
}

@keyframes animateblur {
  0% {
    filter: blur(7px);
  }

  50% {
    filter: blur(12px);
  }

  100% {
    filter: blur(7px);
  }
}

body.arena {
  .car-hero-banner-container {
    background: linear-gradient(266deg, rgb(73 106 142 / 0) 10.09%, rgb(73 106 142 / 0.4) 90.57%);

    &::after {
      content: '';
      position: absolute;
      inset: 0 0 0 0;
      height: 303px;
      background: linear-gradient(180deg, rgb(1 4 75 / 0.5) 0%, rgb(1 4 75 / 0) 100%);
    }
  }

  .homepage-hero-banner-container {
    .car-hero-banner-content {
      @media (width >=1024px) {
        gap: 48px;
        justify-content: flex-start;
      }

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

      .car-hero-banner-price {
        @media (width >=1024px) {
          margin-top: 48px;
        }
      }

      .terms {
        text-align: start;
        z-index: 2;

        a {
          color: var(--tertiary-white);
        }
      }

      .terms-container-inner {
        @media (width >=1024px) {
          margin-block: 27px 0;
        }

        @media (width >=1366px) {
          margin-block: 44px 0;
        }
      }

      .arena-cta-progress--wrapper {
        gap: 20px;
        display: flex;
        flex-direction: column-reverse;
      }

      .termsConditionPopup {
        left: 0;
        height: auto;

        &::after {
          left: 18px;
          right: unset;
        }
      }

      .car-hero-banner-bottom-content {
        .car-hero-banner-bottom-right {
          .car-hero-banner-actions {
            .md-btn-lg {
              @media (width >=1024px) {
                padding: 12px 24px;
                height: 42px;
                font-size: var(--heading-s-arena);
                line-height: var(--lh-18px-arena);
              }
            }
          }
        }
      }
    }
    .homepage-car-banner[data-car-model="Victoris"]{
      .car-hero-banner-logo-wrapper  .car-hero-banner-logo{
        height: 50px;
        object-fit: unset;
      } 
    } 
    .homepage-car-banner[data-car-model="Alto K10"]{
      .car-hero-banner-logo-wrapper {
        width: 160px;
        @media (width >=768px) {
          width: 200px;
        }
      }
      .car-hero-banner-price{
        margin-top: 0;
        @media (width >=768px) {
          margin-top: 20px;
        }
      }
    }
    .car-hero-banner-logo-wrapper {
      align-items: center;
      display: flex;
      position: relative;
      width: 205px;
              

      @media (width >=768px) {
        align-items: flex-start;
        width: 300px;
      }

      img {
        width: 100%;
        object-fit: contain;
        height: 100%;
        max-height: 100%;
        max-width: 100%;
      }
    }

    .video-config-section {
      display: flex;
      align-items: center;
      justify-content: end;
      z-index: 1;
      position: absolute;
      bottom: 56px;
      width: calc(100% - var(--container-margin) * 2);

      .dot-progress-bar {
        display: none;

        .dot-progress-fill {
          height: 2px;
          background: var(--tertiary-white);
        }

        @media (width >=1024px) {
          height: 2px;
          width: 100%;
          display: block;
          cursor: pointer;
          max-width: 356px;
          margin-right: 16px;
          background: var(--progress-bar-gray);
        }
      }

      .mute-button {
        display: flex;
        cursor: pointer;
        width: 24px;
        height: 24px;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border: 0.2px solid var(--tertiary-white);
        background: rgb(255 255 255 / 0.2);
        backdrop-filter: blur(14px);
        background-image: url(/icons/volume-off-icon.svg);
        background-repeat: no-repeat;
        background-position: center;
        padding: 8px;
        background-size: 16px;

        &.video-teaser-unmute {
          background-image: url(/icons/volume_up.png);
        }

        @media (width >=1024px) {
          width: 32px;
          height: 32px;
          opacity: 0.7;
          background-size: 22px;
        }
      }
    }
  }
  /* brezza changes */
  
    .homepage-car-banner[data-block-variant-type="productpage"][data-car-model="Brezza"] {
      .btn-secondary-outline {
        display: none;
      }
    }
}

body.landing-page {
  .homepage-hero-banner-container {
    & .car-hero-banner-content {
      & .car-hero-banner-bottom-content {
        & .car-hero-banner-bottom-right {
          .car-hero-banner-actions {
            display: none;
          }
        }
      }

      .car-hero-banner-price {
        display: none;
      }
    }
  }
}
