.car-hero-banner-container {
  min-height: 685px;

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

    .vjs-loading-spinner {
      display: none;
    }
  }

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


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

    &[src=""] {
      display: none;
    }
  }

  .car-hero-banner-video video {
    position: absolute;
    top: 0;
  }

  .car-hero-banner-video:has(video:not([data-mob-name])) img,
  .car-hero-banner-video video:not([data-mob-name]) {
    object-position: left 27%;
  }
}

.hero-banner-car-detail-container {
  background-color: black;
  position: relative;
  height: calc(100svh - 114px);
  max-height: 1024px;

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

  .car-hero-banner-top-content-wrapper {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    flex: 1;
  }

  .opacity-seo {
    position: absolute;
    opacity: 0;
  }

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

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

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

    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;
    }
  }

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

    .toggle {
      z-index: 99;
      width: 42.4px;
      height: 20px;
      cursor: pointer;
      border-radius: 70px;
      border: 2px solid var(--tertiary-white);
      background: var(--tertiary-white);
      margin-bottom: 24px;

      input {
        display: none;
      }

      .toggle-label {
        display: flex;

        .toggle-circle {
          position: relative;
          cursor: pointer;

          svg {
            top: 1px;
            left: 2px;
            position: absolute;
            width: 14px;
            height: 14px;
          }
        }

        .toggle-text {
          color: var(--dark-grey-shade-9);
          font-family: var(--font-primary-nexa);
          font-size: 10px;
          font-style: normal;
          font-weight: 400;
          line-height: 16px;
          /* 160% */
          cursor: pointer;
          position: relative;
          left: 20px;
          top: 0.5px;

          &.toggle-on {
            display: none;
          }
        }
      }

      &.checked {
        border-radius: 70px;

        .toggle-circle {
          display: none;
        }

        .toggle-text {
          &.toggle-on {
            display: block;
            position: relative;
            left: 7px;
          }

          &.toggle-hd {
            left: 4px;
          }
        }
      }

      @media (width >=768px) {
        .toggle-text {
          left: 20px;
        }

        &.checked {
          .toggle-text {
            &.toggle-on {
              left: 7px;
            }

            &.toggle-hd {
              left: 4px;
            }
          }
        }
      }
    }

    .car-hero-banner-pretitle,
    .car-hero-banner-tagline {
      color: var(--tertiary-light-grey);
      font-family: var(--body-heading-font-family);
      font-size: var(--heading-font-12-mob);
      font-style: italic;
      font-weight: 400;
      line-height: var(--heading-lh-14-mob-sub-heading);
      margin: 0;
    }

    .car-hero-banner-title {
      color: var(--background-color);
      font-family: var(--body-heading-font-family);
      font-size: var(--heading-font-6-mob);
      font-style: normal;
      font-weight: var(--keplar-fw-700);
      line-height: var(--heading-lh-1--mob-display);
      margin: 0;
    }

    .car-hero-banner-price {
      font-family: var(--font-primary-nexa);
      font-style: normal;
      font-weight: 400;
      color: #dedcdc;
      margin-top: 40px;

      .price-label {
        color: var(--tertiary-light-grey);
        font-size: var(--heading-font-18-mob-text-small);
        line-height: var(--heading-lh-17-mob-text-normal);
        margin-bottom: 4px;
      }

      b {
        font-size: var(--heading-font-12-mob);
        line-height: var(--heading-lh-17-mob-text-normal);
        font-weight: 500;
        color: var(--tertiary-white);
      }

    }

    .car-hero-banner-logo {
      max-height: 69px;
      max-width: 236px;
      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;
      }


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

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

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

            .specs-label,
            .specs-value {
              margin-left: .5rem;
              text-align: left;
            }

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

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

              }
            }
          }

          .specs-value {
            color: var(--background-color);
            font-family: var(--font-primary-nexa);
            font-style: normal;
            font-weight: 700;
            font-size: 12px;
            line-height: 24px;
            text-align: left;
            letter-spacing: 1.12px;

            @media (width >=768px) {
              font-size: 14px;
            }
          }

          .specs-label {
            color: var(--background-color);
            font-family: var(--font-primary-nexa);
            font-size: 11px;
            font-weight: 300;
            line-height: 20px;
            text-align: left;
            font-style: normal;

            @media (width >=768px) {
              font-size: 12px;
            }
          }
        }
      }

      @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-reverse;
          gap: 1rem;
          text-align: center;
          position: relative;
          z-index: 1;

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

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

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

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

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

          .button.cta__new-outlined.btn-lg {
            font-weight: 400;
          }

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

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

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

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

          /* a:last-child{
            display: none;
          } */
        }

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

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

          p {
            text-align: left;
          }
        }
      }

      .highlights-section .disclaimer {
        text-align: center;
      }
    }
  }

  .termsConditionPopup {
    display: none;
    width: 231px;
    height: 219px;
    background: var(--Secondary-Main, var(--secondary-main));
    box-shadow: 0px 2px 7px 0px rgba(0, 0, 0, 0.12);
    position: absolute;
    bottom: 30px;
    left: 0;
    z-index: 11111;
    text-align: left;

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

    .termsConditionPopup_inner {
      height: inherit;
      padding: 8px 12px;
      overflow-y: auto;

      &::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;
        left: 18px;
      }
    }

    p {
      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;
    }


  }

  .highlights-section .termsConditionPopup {
    right: calc(50% - 115px);
    left: initial;

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

    .termsConditionPopup_inner {
      &::after {
        right: calc(50% - 10px);
        left: initial;

        @media (width >=1024px) {
          right: 18px;
        }
      }
    }
  }
}

/* Media Queries */


@media (width >=768px) {
  .car-hero-banner-container {
    min-height: 432px;

    .car-hero-banner-video video,
    .car-hero-banner-video img {
      aspect-ratio: 16 / 9;
    }
  }
}


@media(width >=1024px) {
  .hero-banner-car-detail-container {
    .car-hero-banner-container {
      min-height: 576px;
    }

    .car-hero-banner-content {
      padding-top: 96px;
      padding-bottom: 72px;

      .car-hero-banner-pretitle,
      .car-hero-banner-tagline {
        font-size: var(--heading-font-14-des);
        line-height: 48px;
      }

      .car-hero-banner-title {
        font-size: var(--heading-font-15-des);
        font-weight: medium;
        line-height: 80px;
        letter-spacing: 1.52px;

      }

      .car-hero-banner-price {
        margin-bottom: 0;
        margin-top: 48px;

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

        .price-label {
          color: var(--tertiary-light-grey);
          font-size: var(--heading-font-20-des);
          line-height: var(--heading-lh-23-des-normal);
          letter-spacing: 0.32px;
          margin-bottom: 8px;
        }

        b {
          font-size: var(--heading-font-19-des);
          line-height: var(--heading-lh-23-des-normal);
          letter-spacing: 0.44px;
        }
      }

      .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: 18px;
              line-height: 24px;
              font-weight: 500;
            }

            .specs-label {
              font-size: 14px;
              line-height: 20px;
              font-weight: 400;
            }
          }
        }

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

          .car-hero-banner-actions {
            justify-content: flex-start;
            gap: 24px;
            flex-direction: row;
            align-items: initial;
          }

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


          .car-hero-banner-disclaimer {
            font-size: 10px;
            line-height: 14px;
            text-align: right;
            margin-top: 16px;
            padding-right: 0;

            p {
              margin-bottom: 0;
            }
          }

          .termsConditionPopup {
            right: 0;
          }

          .highlights-section .termsConditionPopup {
            right: 0;
            left: initial;

            .termsConditionPopup_inner {
              &::after {
                right: 18px;
              }
            }
          }
        }

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

@media (width >=1920px) {
  .car-hero-banner-container {
    min-height: 1079px;
  }
}

@media (height >=500px) and (height <=700px) and (width >=1200px) {
  .hero-banner-car-detail-container {
    height: calc(100vh - var(--nav-height));
    min-height: calc(100vh - var(--nav-height));

    .car-hero-banner-container {

      .car-hero-banner-video video,
      .car-hero-banner-video img {
        height: calc(100vh - var(--nav-height));
        min-height: calc(100vh - var(--nav-height));
      }
    }

    .car-hero-banner-content {
      padding-bottom: 11px;
    }

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

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



/* Mute/Unmute Button Styles */
.hero-banner-car-detail-container {
  .mute-btn-wrapper {
    min-height: 35px;
    text-align: right;
    position: absolute;
    top: auto;
    bottom: 1.5rem;
    right: 1rem;
    left: auto;
    margin-bottom: 0;
    z-index: 100;

    @media (width >=1024px) {
      bottom: 2rem;
      right: 2rem;
      display: flex;
      justify-content: flex-end;
    }

    @media (width <=767px) {
      top: 56px;
      right: 2rem;
      bottom: auto;
      left: auto;
    }
  }
}

.mute-btn-wrapper {

  .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;
      }
    }
  }
}

.hero-banner-car-detail-container.price-page {
  .car-hero-banner-top-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .car-hero-banner-content .car-hero-banner-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 4px;
    margin-top: 16px;

    .price-label {
      margin-bottom: 0;
      font-weight: var(--fw-300);
      color: var(--tertiary-light-grey);
      font-size: var(--heading-font-18-mob-text-small);
      line-height: var(--heading-lh-17-mob-text-normal);
    }

    .price-city {
      text-decoration: underline;
      text-underline-offset: auto;
      text-decoration-style: solid;
    }

    .price-range b {
      font-weight: var(--fw-500);
      font-size: var(--heading-font-18-mob-text-small);
      line-height: var(--heading-lh-17-mob-text-normal);
      color: var(--tertiary-white);
    }
  }

  .car-hero-banner-top-content .car-hero-banner-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
    text-align: center;
    margin-top: 24px;
    width: 100%;
    position: relative;
    z-index: 1;

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

    .button.cta__new-outlined.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;
        display: inline-block;
      }

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

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

  @media (width >=768px) {
    .car-hero-banner-top-content .car-hero-banner-actions .btn-lg {
      width: 320px;
      height: 40px;
    }
  }

  @media (width >=1024px) {
    .car-hero-banner-content .car-hero-banner-price {
      margin-top: 32px;
      margin-bottom: 0;

      .price-label,
      .price-range b {
        font-size: var(--heading-font-20-des);
        line-height: var(--heading-lh-23-des-normal);
      }
    }

    .car-hero-banner-top-content .car-hero-banner-actions {
      flex-direction: row;
      align-items: center;
      justify-content: flex-start;
      gap: 24px;
      margin-top: 32px;
      width: auto;

      .btn-lg {
        padding: 8px 28px;
        width: auto;
        height: 52px;
      }
    }
  }

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