html[data-scroll-comp='teaser-list'] {
  scroll-padding-top: 40px;
}

.teaser-list {
  .g-container {
    padding-top: 32px;
    padding-bottom: 52px;

    @media (width >=1024px) {
      padding-top: 80px;
      padding-bottom: 80px;
    }

    @media (width >=1366px) {
      padding-top: 60px;
    }
  }
}

.teaser__cards {
  gap: 16px;
  overflow: auto hidden;
}

.listed-options {
  .teaser__cards {
    overflow: unset;
  }
}

.teaser-container .teaser-wrapper .teaser__title .teaser__title-text {
  font-family: 'Anek Latin', sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 800;
  line-height: 44px;
}

.variant-filter-container.teaser-list-container .teaser-list-wrapper {
  background: var(--primary-main-color);
}

.teaser-list-container {
  margin-bottom: -2px;

  .teaser-list-wrapper {
    background: var(--primary-main-color);

    .speak-to-expert-list,
    .dealer-cards-list {
      padding: 36px 20px;
      @media (width >= 1024px) {
        padding: 0;
      }

      .g-container {
        @media (width >= 1024px) {
          padding-top: 80px;
          padding-bottom: 80px;
        }
      }
    }
  }

  .dealer-cards-list {
    .teaser__cards-container {
      height: initial;
      width: 100%;
    }

    .teaser__cards {
      width: 100%;
      gap: 24px;
      position: relative;
      display: flex;
      flex-direction: column;

      @media (width >=1200px) {
        flex-direction: row;
      }

      .teaser__image {
        aspect-ratio: 16 / 9;
        object-fit: cover;
        clip-path: none;
        height: clamp(200px, 40%, 300px);
        width: 100%;
        @media (width >= 768px) {
          max-height: 300px;
        }

        @media (width >=1024px) {
          height: 100%;
          width: 50%;
          max-height: unset;
        }
        img {
          object-position: top;
          aspect-ratio: 16/9;
          width: 100%;
        }
      }

      .teaser__content {
        padding: 24px;
        gap: 24px;
        background: var(--secondary-main-color);

        .teaser__title {
          .teaser__title-text {
            font-size: var(--heading-font-4-mob);
            font-weight: 600;
            line-height: var(--heading-lh-3--mob-heading);
            color: var(--primary-main);
            font-family: var(--body-heading-font-family);
          }
        }

        .teaser__actions {
          width: 100%;

          .primary__btn {
            width: 100%;
          }

          .secondary__btn {
            display: none;
            border-bottom: 0.64px solid var(--primary-main-color);
          }
        }
      }

      .teaser__card--secondary {
        background: unset;

        .teaser__content {
          background: var(--Gradients-Gradient-3---40, linear-gradient(212deg, rgba(157, 207, 218, 0.4) -61.57%, rgba(22, 29, 31, 0.4) 100.57%));
        }

        .teaser__info {
          gap: 24px;

          .teaser__pretitle h2,
          .teaser__title .teaser__title-text {
            color: var(--tertiary-white);
            margin-top: 0;
          }
        }

        .teaser__actions {
          width: initial;

          .primary__btn {
            padding: 0;
            background-color: transparent;
            display: flex;
            flex-direction: column;
            align-items: start;
            color: var(--tertiary-white);
            gap: 12px;

            &::before {
              content: '';
              width: 44px;
              height: 44px;
              background-image: url('/icons/teaser_arrow-light.svg');
              background-repeat: no-repeat;
              background-size: contain;
            }
          }
        }
      }
    }
  }
  .speak-to-expert-list {
    .teaser__cards-container {
      height: initial;
      width: 100%;
    }

    .teaser__cards {
      width: 100%;
      gap: 24px;
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: space-around;

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

      .teaser__image {
        aspect-ratio: 16 / 9;
        object-fit: cover;
        clip-path: none;
        height: clamp(200px, 40%, 300px);
        width: 100%;
        @media (width >= 768px) {
          max-height: 300px;
        }

        @media (width >=1024px) {
          height: 100%;
          width: 50%;
          max-height: unset;
        }
        img {
          object-position: top;
          aspect-ratio: 16/9;
          width: 100%;
        }
      }

      .teaser__content {
        padding: 24px;
        width: 100%;
        gap: 24px;

        .teaser__title {
          .teaser__title-text {
            font-size: 20px;
            font-weight: 600;
            line-height: 26px;
            color: var(--primary-main);
            font-family: var(--body-heading-font-family);
          }
        }

        .teaser__actions {
          width: 100%;

          .secondary__btn {
            display: none;
            border-bottom: 0.64px solid var(--primary-main-color);
          }
        }
      }

      .teaser__card--primary {
        .teaser__content {
          background: var(--gradient-5);

          .teaser__info {
            gap: 16px;

            .teaser__pretitle h2 {
              text-transform: none;
              font-size: 14px;
            }

            .teaser__title-text {
              font-size: 24px;
            }
            @media (width >=768px) {
              .teaser__pretitle h2 {
                font-size: 1rem;
              }

              .teaser__title-text {
                font-size: 2rem;
              }
            }
          }
          .teaser__dropdown {
            position: relative;
            width: 100%;

            .dropdown-button {
              width: 100%;
              padding: 10px 20px 0 10px;
              border: none;
              display: flex;
              justify-content: space-between;
              align-items: center;
              text-align: left;
              cursor: pointer;
              height: 56px;
              background: none;
              color: var(--secondary-main);
              background-image: url(/icons/dropdown-bg.png);
              background-size: 100% 100%;
              font-size: 14px;

              .selectedOption {
                width: 210px;
              }
              .arrow {
                height: 24px;
                width: 24px;
                background-repeat: no-repeat;
                background-image: url(/icons/dropdown-icon.svg);

                &.arrow-up {
                  transform: rotate(180deg);
                }
              }
            }
            .dropdown-menu {
              position: relative;
              width: 100%;
              background: var(--tertiary-white);
              border: 1px solid var(--dark-color);
              margin-top: 5px;
              display: none;
              z-index: 10;
              max-height: 220px;
              overflow-y: auto;
              box-shadow: 0px 2px 8px 0px var(--shadow-color);

              &.active {
                display: block;
              }
              li {
                padding: 10px;
                cursor: pointer;
                list-style: none;
                font-size: 14px;
                line-height: 20px;
                color: var(--secondary-main);

                &:hover,
                &.focused {
                  color: var(--tertiary-black);
                  background: var(--secondary-gray-60);
                }
              }
            }
            .teaser__inputField {
              .name-input {
                width: 100%;
                outline: none;
                border: none;
                background-color: transparent;
                color: var(--tertiary-black);
                font-size: 1rem;
                font-family: var(--font-primary-nexa);
                font-weight: 400;
                line-height: 20px;
                margin-top: 1.5rem;
                padding: 0 0 12px 12px;
                border-bottom: 1px solid var(--tertiary-deep-Grey);
              }
            }
            @media (width >= 768px) {
              .dropdown-button {
                font-size: 16px;
                padding: 10px 20px 0 20px;

                .selectedOption {
                  width: 100%;
                }
              }
            }
          }
          &.speak-to-expert .disabled {
            pointer-events: none;
            cursor: not-allowed;
            opacity: 0.7;
          }
        }
      }
      .teaser__card--secondary {
        background: unset;

        .teaser__content {
          background: var(--Gradients-Gradient-3---40, linear-gradient(212deg, rgba(157, 207, 218, 0.4) -61.57%, rgba(22, 29, 31, 0.4) 100.57%));
        }

        .teaser__info {
          .teaser__pretitle h2 {
            font-size: 14px;
            color: var(--tertiary-white);
          }
          .teaser__title-text {
            color: var(--tertiary-white);
            font-size: 24px;
          }
          @media (width >=768px) {
            .teaser__pretitle h2 {
              font-size: 1rem;
            }

            .teaser__title-text {
              font-size: 2rem;
            }
          }
        }

        .teaser__actions {
          width: initial;

          .primary__btn {
            padding: 0;
            background-color: transparent;
            display: flex;
            flex-direction: column;
            align-items: start;
            color: var(--tertiary-white);
            gap: 12px;

            &::before {
              content: '';
              width: 44px;
              height: 44px;
              background-image: url('/icons/teaser_arrow-light.svg');
              background-repeat: no-repeat;
              background-size: contain;
            }
          }
        }
      }
    }
  }
  .listed-options {
    .teaser__cards {
      .teaser__content {
        .teaser__info {
          .teaser__dropdown {
            .dropdown-menu {
              position: absolute;
            }
          }
        }
      }
    }
  }

  .register-cards-list,
  .yy8-register-cards-list {
    .teaser__cards-container {
      height: initial;
      min-height: 292px;

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

    .teaser__cards {
      width: 100%;
      gap: 48px;
      position: relative;

      .teaser__image {
        clip-path: none;

        img {
          aspect-ratio: 16 / 9;
          object-fit: cover;
          object-position: top;
          display: block;
        }
      }

      .teaser__content {
        padding: 1.5rem;
        gap: 1.5rem;
        background: var(--secondary-main-color);
        width: 100%;

        .teaser__title {
          .teaser__title-text {
            margin: 0;
            font-size: var(--heading-font-4-mob);
            font-weight: var(--keplar-fw-700);
            line-height: var(--heading-lh-3--mob-heading);
            color: var(--primary-main);
            font-family: var(--body-heading-font-family);
            letter-spacing: 0.48px;
          }
        }

        .teaser__actions {
          width: 100%;

          .primary__btn {
            width: 100%;
            background: var(--primary-main-color);
            color: var(--white-smoke);
            text-align: center;
            align-items: center;
            font-family: var(--font-primary-nexa);
            font-size: 0.875rem;
            font-style: normal;
            font-weight: 400;
            line-height: 1.25rem;
            border-radius: inherit;
            margin: inherit;
            padding-left: 1.5rem;
            padding-right: 1.5rem;
            transition: all 0.2s linear;
          }

          .primary__btn:hover {
            background-color: var(--secondary-main);
          }

          @media (width < 768px) {
            .primary__btn:active,
            .primary__btn:hover {
              background-color: var(--primary-main-color);
            }
          }

          .secondary__btn {
            display: none;
            border-bottom: 0.64px solid var(--primary-main-color);
          }
        }
      }

      .register__card--secondary {
        .teaser__content {
          background: linear-gradient(222deg, #cee5e9 0%, #dac8c6 100%);
        }

        .teaser__info {
          gap: 1rem;
        }

        .teaser__actions {
          width: 100%;
        }
      }
    }
    .dark-teaser {
      &.finance-card-teaser {
        .register__card--primary {
          .teaser__content {
            padding: 24px;
          }
        }
      }
    }
  }

  .yy8-register-cards-list {
    @media (width < 768px) {
      .teaser__cards {
        display: block;

        .teaser__image {
          picture {
            display: flex;
          }
        }
      }
    }

    @media screen and (width >= 1024px) {
      .teaser__card {
        height: 20rem;
      }
    }
    &.separator {
      &::before,
      &::after {
        content: none;
      }
    }
  }
}

.speak-to-expert,
.finance-card-list {
  &.dark-teaser-list {
    background: var(--primary-main-color);

    .text-color {
      color: var(--secondary-main-color);
    }
  }

  &.light-teaser-list {
    background: var(--secondary-main-color);

    .text-color {
      color: var(--primary-main-color);
    }
  }

  padding-top: 48px;
  padding-bottom: 48px;
}

@media (width >=768px) {
  .teaser__cards {
    gap: 16px;
    overflow: auto hidden;
  }

  .teaser-container .teaser-wrapper .teaser__title .teaser__title-text {
    font-size: 40px;
    font-style: normal;
    font-weight: 800;
    line-height: 44px;
  }

  .teaser-list.dark-teaser-list.speak-to-expert-list .teaser__cards .teaser__content .teaser__title,
  .teaser-list.dark-teaser-list.dealer-cards-list .teaser__cards .teaser__content .teaser__title {
    margin-bottom: 12px;
  }

  .speak-to-expert,
  .finance-card-list {
    &.dark-teaser-list {
      .text-color {
        color: var(--tertiary-white);
        font-family: var(--body-heading-font-family);
        font-size: var(--heading-font-4-des);
        font-style: normal;
        font-weight: 600;
        line-height: var(--heading-lh-3-des-display);
        letter-spacing: 0.08rem;
      }
    }
  }

  .dark-teaser.finance-card-teaser .teaser__content {
    gap: 0;
  }
  .dark-teaser.speak-to-expert-teaser .teaser__content {
    gap: 0;
  }
}

@media (width >= 1024px) {
  .teaser-list-container {
    .speak-to-expert-list,
    .dealer-cards-list {
      .teaser__cards {
        .teaser__card {
          width: 100%;
          display: flex;
          height: 100%;
        }

        .teaser__card--secondary {
          .teaser__content {
            width: 100%;
            max-height: 320px;
          }

          .teaser__actions {
            .primary__btn {
              gap: 0;
              line-height: 20px;

              &::before {
                width: 64px;
                height: 64px;
                transition: scale 0.1s ease-out;
              }

              &:hover {
                &::before {
                  scale: 1.3;
                }
              }
            }
          }
        }

        .teaser__content {
          .teaser__actions {
            display: flex;
          }
        }
      }
    }
    .speak-to-expert-list,
    .register-cards-list,
    .yy8-register-cards-list {
      .teaser__cards {
        .teaser__card {
          width: 100%;
        }

        .teaser__image {
          height: 100%;
          width: 100%;
        }

        .teaser__content {
          gap: 32px;
          padding: 2rem;
          .teaser__info {
            gap: 16px;
          }

          .teaser__pretitle {
            h2 {
              font-size: 0.875rem;
              font-weight: 400;
              line-height: 1.25rem;
            }
          }

          .teaser__title {
            .teaser__title-text {
              font-size: var(--heading-font-17-des);
              font-weight: var(--keplar-fw-700);
              line-height: 36px;
              letter-spacing: 0.64px;
              margin: 0;
            }
          }

          .teaser__actions {
            display: flex;
            gap: 1.5rem;
            justify-content: space-between;

            .primary__btn {
              font-size: 1rem;
              line-height: 1.5rem;
            }

            .secondary__btn {
              display: flex;
              font-size: 1rem;
              font-weight: 400;
              line-height: 1.25rem;
              padding: 0.5rem 0;
            }
          }
        }

        .register__card--secondary {
          .teaser__content {
            width: 100%;
            padding: 32px 24px;
          }

          .teaser__actions {
            .primary__btn {
              gap: 1rem;
            }
          }
        }
      }
    }
  }

  .teaser__content {
    width: 50%;
    gap: 32px;
    padding: 32px;
    justify-content: space-between;

    .teaser__info {
      gap: 16px;
    }

    .teaser__pretitle {
      h2 {
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
      }
    }

    .teaser__actions {
      display: flex;
      width: initial;
      gap: 24px;
      justify-content: space-between;

      .primary__btn {
        font-size: 16px;
        line-height: 24px;
      }

      .secondary__btn {
        display: flex;
        font-size: 16px;
        font-weight: 400;
        line-height: 20px;
        padding: 8px 0;
      }
    }
  }
}

.teaser__cards::-webkit-scrollbar {
  display: none;
}

/* styles */
:root {
  --Primary-Main: #18171a;
  --Tertiary-White: #fff;
}

/* Reset and basic styles */
body,
p {
  margin: 0;
  font-family: 'Fira Sans', 'Fira Sans Fallback', sans-serif;
}

*,
::before,
::after {
  box-sizing: border-box;
}

.yy8-remove-white-patch .teaser-list-wrapper .teaser__cards-container .finance-card-teaser .teaser__content .teaser__actions {
  margin-top: auto;
  align-self: flex-start;
}

.teaser-list-container .yy8-register-cards-list .teaser__cards {
  grid-template-columns: none;
}

.teaser-list-container .yy8-register-cards-list .teaser__cards .teaser__image {
  height: 100%;
}

.teaser-list-container .yy8-register-cards-list .teaser__cards .teaser__image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.teaser-list-container .yy8-register-cards-list .teaser__cards .teaser__info {
  gap: 16px;
}

.teaser-list-container .yy8-register-cards-list .teaser__cards .teaser__title h3 {
  margin: 0;
}

.dark-teaser {
  &.speak-to-expert-teaser,
  &.finance-card-teaser {
    max-width: 100%;
  }
}

@media (width >=1024px) {
  .teaser-list-container {
    .register-cards-list,
    .yy8-register-cards-list {
      .teaser__cards {
        gap: 24px;
      }

      .dark-teaser {
        &.speak-to-expert-teaser,
        &.finance-card-teaser {
          .register__card--primary {
            .teaser__content {
              padding: 32px 24px;

              .teaser__actions {
                width: initial;
              }
            }
          }

          .register__card--secondary {
            .teaser__content {
              padding: 32px 24px;

              .teaser__actions {
                width: initial;
              }
            }
          }
        }
      }
    }
  }
}

@media (width >=1200px) {
  .teaser-list-container {
    .register-cards-list {
      .teaser__cards {
        flex-direction: row;
      }

      .dark-teaser {
        &.speak-to-expert-teaser:nth-child(1),
        &.finance-card-teaser:nth-child(1) {
          width: calc((var(--grid-formula) * 8) + (var(--grid-gutter-width) * (8 - 1)));
        }
        &.speak-to-expert-teaser:nth-child(2),
        &.finance-card-teaser:nth-child(2) {
          width: calc((var(--grid-formula) * 4) + (var(--grid-gutter-width) * (4 - 1)));
        }
      }
    }

    .register-cards-list .teaser__cards {
      & .dark-teaser.finance-card-teaser,
      & .dark-teaser.yy8-ryi-teaser {
        .register__card--primary {
          flex-direction: row;
        }
      }
    }

    .yy8-register-cards-list {
      .dark-teaser {
        &.finance-card-teaser {
          width: calc((var(--grid-formula) * 12) + (var(--grid-gutter-width) * (12 - 1)));
        }
      }
    }
  }
}

.dark-teaser-list {
  &.speak-to-expert-list,
  &.dealer-cards-list {
    .g-container {
      @media (width < 1024px) {
        padding: 0;
      }
    }
  }
}

/* added for YY8 Technology teaser component button */
