/* stylelint-disable no-descending-specificity */
.pdp {
  .breadcrumb-wrapper {
    min-height: 32px;

    @media (width>=1024px) {
      min-height: 40px;
      display: flex;
      align-items: center;
    }
  }

  main > .section:not(:last-of-type) {
    position: relative;
  }

  .section:not(:last-of-type)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--container-margin);
    right: var(--container-margin);
    height: 1px;
    background-color: var(--ui-divider-high);
  }

  .toast-message.temp-toast {
    bottom: 75px;
  }
}

.product-details-container {
  &.appear,
  &[data-block-status='loaded'] {
    display: block !important;
  }
}

.product-details {
  --title-font: var(--heading-bold);
  --right-col-space: var(--sizing-xl) var(--container-margin);
  --stock-font: var(--text-medium-medium);

  display: flex;
  flex-direction: column;

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

  /* .product-prerendered {
    padding: var(--sizing-xl) var(--sizing-l);

    @media screen and (width >= 1024px) {
      padding: var(--spacing-xbig) var(--container-margin);
    }

    &:last-child {
      width: 100%;

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

      @media (width >= 1024px) {
        width: 45%;
      }

      h1 {
        color: var(--neutrals-headings);
        font: var(--title-font);
        line-height: var(--lh-large);
        padding-bottom: var(--sizing-s);

        @media (width >= 768px) {
          font-size: var(--fs-xlarge);
          line-height: var(--lh-xlarge);
          padding-bottom: var(--sizing-m);
        }

        @media (width >=768px) and (width < 1024px) {
          line-height: var(--lh-large);
          padding-bottom: var(--sizing-s);
        }
      }

      & > div:not(:first-child) {
        display: none;
      }
    }

    &:first-child:has(img) {
      width: 100%;
      padding: 0;

      @media (width >=768px) {
        width: 25%;
        padding: var(--sizing-xl) var(--sizing-l);
        padding-right: 0;
      }

      @media screen and (width >= 1024px) {
        width: 50%;
        padding: var(--spacing-xbig) var(--container-margin);
        padding-right: 0;
      }

      img {
        width: 100%;
        height: auto;
        object-fit: contain;
        aspect-ratio: 360 / 238;

        @media (width >=768px) and (width < 1024px) {
          aspect-ratio: 356 / 235;
          min-height: auto;
        }

        @media screen and (width >= 1024px) {
          aspect-ratio: 609 / 403;
          min-height: auto;
        }
      }
    }
  } */

  .product-details__container {
    padding: var(--spacing-none);
  }

  .product-prerendered {
    & ~ .product-details__container {
      display: none;
    }

    .product-details__right-column {
      visibility: hidden;
    }
  }

  .product-details__left-column {
    position: relative;

    .product-details__buttons {
      position: absolute;
      top: 16px;
      right: 16px;
      z-index: 0;
      display: flex;
      justify-content: center;
      gap: var(--spacing-xs);

      @media (width >=768px) and (width < 1024px) {
        gap: var(--sizing-xs);
      }

      .icon {
        width: 32px;
        height: 32px;
        padding: 7px;
        background-color: var(--icon-bg);
        border-radius: 100%;
        cursor: pointer;

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

        img {
          width: 18px;
          height: 18px;

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

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

      .product-details__buttons__add-to-wishlist {
        display: none;

        @media (width >= 768px) {
          display: flex;
        }
      }
    }
  }

  .product-details__configuration {
    display: flex;
    flex-direction: column;
    gap: var(--sizing-xl);
  }

  .product-details__linkcontainer {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: var(--color-background-light);
    padding: var(--sizing-m);

    .product-details__link {
      display: flex;
      align-items: center;
      text-decoration: none;
      color: var(--color-primary-blue);
      position: relative;
      font-size: var(--fs-xsmall);
      font-weight: var(--fw-500);
      line-height: 1.6rem;
      letter-spacing: 0.24px;
      cursor: pointer;
      white-space: nowrap;
      padding: var(--spacing-xxxsmall) var(--sizing-l);

      &:hover {
        text-decoration: underline;
      }

      @media (width >= 768px) {
        font-size: var(--fs-small);
        line-height: 2.4rem;
        padding: var(--sizing-2xs) var(--sizing-l);

        &::after {
          content: '';
          width: 20px;
          height: 20px;
          margin-left: 5px;
          display: inline-block;
          background: url('/genuine-accessories/icons/faq.svg') no-repeat center / contain;
        }
      }
    }

    .vertical-divider {
      width: 1px;
      height: 16px;
      background: var(--ui-divider-low);
      flex-shrink: 0;

      &:last-child {
        display: none;
      }
    }

    @media (width >= 768px) {
      justify-content: flex-start;
      padding: var(--sizing-s);
    }
  }

  .product-details__sticky {
    position: sticky;
    top: var(--nav-height);
  }

  .product-details__offer-container {
    align-self: center;
    display: flex;
    align-items: center;
    gap: var(--spacing-xxsmall);

    @media (width <= 500px) {
      flex-basis: 100%;
    }

    .product-details__offer-tag {
      display: flex;
      padding: var(--sizing-2xs, 4px) var(--spacing-xs, 8px);
      justify-content: center;
      align-items: center;
      color: var(--tertiary-color);
      background: var(--semantic-surface-flat-success);
      gap: 8px;
    }

    .product-details__offer-discount-info {
      background: transparent;
      border: 0;
      padding: 0;

      .tooltip-image {
        width: 16px;
        height: 16px;
        cursor: pointer;
      }

      .tooltip-box {
        right: -4px;
        min-width: 300px;

        @media (width <= 500px) {
          left: -60px;

          .tooltip-arrow {
            left: 55px;
            border-bottom-color: #f0e4e3;
          }
        }

        .tooltip-content {
          white-space: initial;

          ul {
            list-style: disc;
            padding: var(--spacing-xs);
          }
        }
      }
    }
  }

  .pdp-description {
    color: var(--text-grey);
    font-size: var(--fs-small);
    font-weight: var(--fw-400);
    line-height: var(--lh-medium);

    strong {
      display: block;
      margin-top: var(--sizing-xl);
      color: var(--text-black);
      margin-bottom: var(--sizing-m);
      font-weight: var(--fw-500);

      @media (width >= 768px) {
        font-size: var(--fs-medium);
        margin-top: var(--spacing-big);
      }
    }

    ul {
      display: flex;
      flex-direction: column;
      padding-left: var(--spacing-l);
      gap: var(--sizing-2xs);
      list-style-type: disc;
    }
  }

  .product-details__attributes {
    .product-details__attribute-container {
      display: flex;
      flex-direction: column;
      gap: var(--sizing-m);
      color: var(--ui-text-icon-medium);
      font-size: var(--fs-small);
      font-weight: var(--fw-700);
      line-height: var(--lh-medium);
      letter-spacing: 0.14px;

      .attribute-manufacturer_address {
        display: flex;
        flex-direction: column;
        gap: var(--sizing-2xs);

        .manufacturer-name {
          font-weight: var(--fw-500);
        }
      }

      .product-details__attribute-value {
        font-weight: var(--fw-400);
        display: inline-flex;
        gap: var(--sizing-2xs);
        flex-direction: column;

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

  .product-details__accordion {
    .accordion-item {
      border-top: 1px solid var(--ui-divider-high);
      cursor: text;
      user-select: auto;
    }

    .accordion-item:last-child {
      @media (width >= 768px) {
        border-bottom: 1px solid var(--ui-divider-high);
      }
    }
  }

  .accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sizing-m) var(--spacing-none);
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;

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

    &::after {
      content: '';
      width: 20px;
      height: 20px;
      background: url('/genuine-accessories/icons/down-arrow_dark.svg') no-repeat center / contain;
      position: absolute;
      right: var(--spacing-xsmall);
      transition: transform 0.3s ease;
    }

    h2,
    h3,
    h4,
    h5,
    h6 {
      color: var(--neutrals-sub-texts-paragraphs);
      font-size: var(--fs-medium);
      font-weight: var(--fw-500);
      line-height: var(--lh-normal);
      padding: 4px var(--spacing-none);

      @media (width >= 1024px) {
        font-size: var(--fs-xmedium);
        line-height: 21.6px;
      }
    }
  }

  .accordion-item[open] {
    .accordion-header {
      &::after {
        transform: rotate(180deg);
      }
    }
  }

  .accordion-item.is-open .accordion-header::after {
    transform: rotate(180deg);
  }

  .accordion-item .accordion-item-content {
    overflow: hidden;
    transition: height 0.2s ease;
    height: auto;

    .content-wrapper {
      padding-block: 0 var(--sizing-m);
    }
  }

  /* Right Column */
  .product-details__right-column {
    padding: var(--right-col-space);
    display: flex;
    flex-direction: column;
    padding-bottom: 0;

    .product-details__header-wrapper {
      display: flex;
      flex-direction: column;
      border-bottom: 1px solid var(--ui-divider-high);
      padding-bottom: var(--sizing-m);
      margin-bottom: var(--sizing-m);

      .product-details__header-top {
        display: flex;
        gap: var(--sizing-xs);
        padding-bottom: var(--sizing-s);
      }

      .product-details__tags {
        .product-details__tags-list {
          display: flex;
          flex-wrap: wrap;
          gap: var(--sizing-s);

          .product-details__tags-item {
            background: var(--tag-bg);
            color: var(--neutrals-headings);
            font: var(--text-small-regular);
            padding: var(--sizing-2xs) var(--spacing-xsmall);

            @media (width >= 768px) {
              font-size: var(--fs-xsmall);
              line-height: var(--lh-small);
            }

            &[data-attr='no_of_people_purchased'] {
              background: var(--gradient-sticky-bar-bg);
            }
          }
        }
      }

      .product-details__header {
        .pdp-header {
          .pdp-header__title {
            color: var(--neutrals-headings);
            font: var(--title-font);
            line-height: var(--lh-large);
            padding-bottom: var(--sizing-s);

            @media (width >= 768px) {
              font-size: var(--fs-xlarge);
              line-height: var(--lh-xlarge);
              padding-bottom: var(--sizing-m);
            }

            @media (width >=768px) and (width < 1024px) {
              line-height: 24px;
              padding-bottom: var(--sizing-s);
            }
          }
        }
      }

      .pdp-header__sku {
        color: var(--ui-text-icon-medium);
        font: var(--text-medium-medium);
        line-height: var(--lh-medium);
        letter-spacing: 0.14px;
        margin-bottom: var(--sizing-2xs);

        @media (width >= 768px) {
          font-size: var(--fs-small);
          font-weight: var(--fw-500);
        }

        @media (width >= 1024px) {
          font-weight: var(--fw-400);
        }
      }

      .product-details__short-description {
        margin-bottom: var(--sizing-2xs);

        .pdp-short-description {
          color: var(--text-grey);
          font: var(--text-medium-regular);
          font-size: var(--fs-small);
          line-height: var(--lh-medium);

          @media (width >= 1024px) {
            color: var(--ui-text-icon-medium);
          }
        }
      }

      .product-details__stock {
        display: none;
        color: var(--instock-green);
        font: var(--stock-font);

        @media (width >=768px) and (width < 1024px) {
          font-size: var(--fs-small);
        }

        @media (width >= 1024px) {
          font-weight: var(--fw-400);
          line-height: normal;
        }

        &.product-details__stock--oos {
          color: var(--out-of-stock-red);
        }
      }
    }

    .product-details__price {
      margin-bottom: var(--sizing-m);

      .product-details__price-container {
        div {
          word-break: keep-all;
          white-space: nowrap;
        }

        .product-details__price-final-container,
        .product-details__price-regular-container {
          display: flex;
          flex-flow: row wrap;
          align-items: baseline;
          gap: 5px;
        }

        .product-details__price-regular-container {
          gap: 9px;
          margin-top: var(--spacing-2xs);
        }

        .product-details__price-final {
          display: flex;
          flex-direction: row;
          align-items: center;
          font: var(--heading-semibold);
          font-size: var(--fs-xmedium);
          line-height: 30px;

          @media (width >= 1024px) {
            color: var(--neutrals-headings);
            font-size: var(--fs-xslarge);
            line-height: var(--lh-xlarge);
          }
        }

        .product-details__price-tax,
        .product-details__price-unit {
          color: var(--text-grey);
          font: var(--text-medium-regular);
          line-height: var(--lh-medium);

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

          @media (width >= 1024px) {
            font-size: var(--fs-small);
            letter-spacing: 0.14px;
            color: var(--ui-text-icon-medium);
          }
        }

        .product-details__price-regular {
          text-decoration: line-through;
          display: flex;
          flex-direction: row;
          align-items: center;
          color: var(--text-grey);
          font: var(--text-medium-regular);
          line-height: 20px;

          @media (width >= 768px) {
            font-size: var(--fs-small);
            letter-spacing: 0.14px;
          }
        }

        .product-details__price-discount {
          color: var(--discount-text);
          font: var(--text-medium-regular);
          font-weight: var(--fw-800);
          line-height: 23.4px;

          @media (width >= 768px) {
            font-size: var(--fs-small);
            line-height: 23.4px;
          }
        }

        .product-details__price-emi-container {
          margin-top: var(--spacing-2xs);

          .product-details__price-emi {
            display: flex;
            gap: var(--sizing-2xs);
            font: var(--text-medium-regular);
            line-height: var(--lh-medium);
            color: var(--text-grey);

            @media (width >= 768px) {
              color: var(--ui-text-icon-medium);
              letter-spacing: 0.14px;
            }

            strong {
              font-weight: var(--fw-700);
              letter-spacing: 0.14px;
              color: var(--ui-text-icon-high);

              @media (width >= 768px) {
                font-weight: var(--fw-400);
              }
            }
          }
        }

        .product-details__bnpl-eligibility-container {
          padding-bottom: var(--sizing-xs);
          padding-top: var(--spacing-2xs);

          .product-details__bnpl-eligibility {
            display: flex;
            width: 100%;
            padding: var(--sizing-2xs);
            align-items: center;
            gap: var(--sizing-2xs);
            background-color: var(--color-light-blue);

            @media (width >= 768px) {
              width: 70%;
            }

            .bnpl-eligibility-icon {
              display: block;
              width: 24px;
              height: 24px;
              background: url('/genuine-accessories/icons/info.svg') no-repeat center / contain;
              flex-shrink: 0;
              transform: rotate(180deg);
            }

            .bnpl-eligibility-text {
              color: var(--ui-text-icon-high);
              font-size: var(--fs-xsmall);
              font-style: normal;
              font-weight: var(--fw-400);
              line-height: var(--lh-medium);
              padding: var(--spacing-xxxsmall) 0;

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

    .product-details__offers-container {
      margin-bottom: var(--sizing-m);

      .product-details__offers-title {
        font: var(--text-large-medium);
        line-height: normal;

        @media (width >= 1024px) {
          font-size: var(--fs-xmedium);
          line-height: var(--lh-medium);
        }
      }

      .product-details__offers-card-container {
        margin-top: var(--sizing-xs);
        display: flex;
        align-items: stretch;
        gap: var(--spacing-xsmall);
        overflow-x: scroll;

        .product-details__offers-card {
          min-width: 189px;
          max-width: 189px;
          padding: var(--spacing-xs);
          color: var(--ui-text-icon-high);
          font-size: var(--fs-xsmall);
          font-weight: var(--fw-600);
          line-height: var(--lh-16);
          background-color: var(--color-light-blue);
          flex: 1;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          height: auto;
          align-items: flex-start;

          @media (width >= 1024px) {
            font-size: var(--fs-small);
            line-height: var(--lh-medium);
          }

          .product-details__offers-card-title {
            display: flex;
            align-items: center;
            gap: var(--spacing-xxsmall);
            margin-bottom: var(--spacing-xxsmall);

            .logo {
              width: 15px;
              height: 15px;

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

            span {
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
            }
          }

          .product-details__offers-card-description {
            font-weight: var(--fw-400);
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;

            @media (width < 1024px) {
              color: var(--neutrals-sub-texts-paragraphs);
            }
          }

          .product-details__offers-card-view-offer {
            padding: 0;
            text-decoration: none;
            font-size: var(--fs-xsmall);
            font-weight: var(--fw-500);
            line-height: var(--lh-medium);
            margin-top: var(--spacing-xsmall);

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

    .product-details__quantity-block {
      padding-bottom: var(--sizing-m);

      .product-details__quantity-label {
        font: var(--text-large-medium);
        line-height: normal;

        @media (width >= 1024px) {
          font-size: var(--fs-xmedium);
          line-height: var(--lh-medium);
        }
      }

      .product-details__quantity {
        width: fit-content;
        margin-top: var(--sizing-s);

        .dropin-incrementer__content {
          border: 1px solid var(--color-white);
          border-radius: 0;
          height: 44px;
          width: 152px;
          gap: 2px;
          grid-template-columns: var(--spacing-xbig) auto var(--spacing-xbig);

          .dropin-incrementer__button-container {
            padding: var(--spacing-xsmall);
            width: fit-content;
            display: inline;
          }
        }

        .dropin-incrementer__increase-button::before {
          background-image: url('/genuine-accessories/icons/increase.svg');
        }

        .dropin-incrementer__decrease-button::before {
          background-image: url('/genuine-accessories/icons/decrease.svg');
        }

        .dropin-incrementer__increase-button,
        .dropin-incrementer__decrease-button {
          width: 24px;
          height: 24px;
          position: relative;
          padding: 0;

          svg {
            display: none;
          }

          &::before {
            content: '';
            position: absolute;
            inset: 0;
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
          }
        }
      }

      .dropin-incrementer__input[type='number'] {
        font: var(--text-large-regular);
        line-height: var(--lh-medium);
      }
    }

    .fitment-detail {
      margin-bottom: var(--sizing-m);

      .fitment-title {
        display: none;

        @media (width >= 1024px) {
          display: block;
          color: var(--neutrals-sub-texts-paragraphs);
          font-size: var(--fs-xmedium);
          font-weight: var(--fw-500);
          line-height: 120%;
          margin-bottom: var(--sizing-xs);
        }
      }

      .fitment-box {
        background-color: var(--color-light-blue);
        padding: var(--sizing-m);
        backdrop-filter: blur(40px);

        .fitment-content {
          display: flex;
          align-items: center;
          gap: var(--spacing-xsmall);
          font-size: var(--fs-small);
          font-weight: var(--fw-400);
          line-height: var(--lh-medium);
          letter-spacing: 0.14px;

          .fitment-text {
            color: var(--ui-text-icon-high);
          }
        }

        .fitment-description {
          margin-block: var(--spacing-small) 0;
          font-size: var(--fs-small);
          font-weight: var(--fw-400);
          line-height: var(--lh-normal);
          color: var(--text-grey);

          @media (width >= 768px) {
            color: var(--ui-text-icon-medium);
            margin-block: 4px 0;
            line-height: var(--lh-medium);
          }
        }

        .fitment-icon {
          width: 24px;
          height: 24px;
          background-size: contain;
          background-repeat: no-repeat;
          background-position: center;
        }

        .fitment-icon--fitment-at-home-or-dealership {
          background-image: url('/genuine-accessories/icons/mechanic.svg');
        }

        .fitment-icon--do-it-yourself {
          background-image: url('/genuine-accessories/icons/grommet.svg');
        }

        .fitment-icon--fitment-at-dealer {
          background-image: url('/genuine-accessories/icons/dealership.svg');
        }

        @media (width >= 1024px) {
          .fitment-icon--fitment-at-home-or-dealership,
          .fitment-icon--do-it-yourself,
          .fitment-icon--fitment-at-dealer {
            width: 24px;
            height: 24px;
          }
        }
      }
    }

    .product-details__features {
      padding-block: 0 var(--spacing-medium);

      @media (width >= 1024px) {
        padding-block: 0 var(--spacing-big);
      }

      .product-details__features-title {
        font: var(--sub-heading-medium);

        @media (width >= 768px) {
          font-size: var(--fs-xmedium);
          line-height: var(--lh-medium);
        }
      }

      .product-details__features-list {
        display: flex;
        gap: var(--spacing-xsmall) var(--spacing-small);
        flex-wrap: wrap;

        @media (width >= 1024px) {
          gap: var(--spacing-small);
        }

        .product-details__feature-item {
          display: flex;
          flex-direction: column;

          .product-details__feature-label {
            padding: var(--spacing-12) var(--spacing-xsmall);
            border: 1px solid var(--color-white);
            background: var(--ui-border-color);

            @media (width >= 768px) {
              padding: 15px var(--spacing-12);
            }
          }
        }

        li {
          text-align: center;
          font: var(--text-small-regular);
          color: var(--text-black);
          line-height: var(--lh-medium);
          letter-spacing: var(--ls-014);
        }
      }
    }
  }

  @media screen and (width >= 768px) {
    --title-font: var(--sub-heading-bold);
    --right-col-space: var(--spacing-none);
    --stock-font: var(--text-small-medium);

    .product-details__container.g-container {
      padding: 40px 56px;
    }

    .product-details__wrapper {
      flex-wrap: nowrap;
    }

    .product-details__price {
      .product-details__price-container {
        .product-details__price-final {
          font-size: var(--fs-xlarge);
          gap: var(--spacing-2xs);
        }
      }
    }

    & .product-details__gallery {
      .dropin-button.pdp-carousel__button.pdp-carousel__button--prev,
      .dropin-button.pdp-carousel__button.pdp-carousel__button--next {
        display: block;
        position: absolute !important;
        top: calc(50% - 50px);
        padding: var(--spacing-2xs);
        background: var(--static-interactive-arrow);
        backdrop-filter: blur(12.151px);
      }

      .dropin-button.pdp-carousel__button.pdp-carousel__button--prev {
        left: 16px;
      }

      .dropin-button.pdp-carousel__button.pdp-carousel__button--next {
        right: 16px;
      }
    }
  }

  @media (width >=768px) and (width < 1024px) {
    .product-details__container.g-container {
      padding: var(--sizing-xl) var(--sizing-l);
    }

    .product-details__wrapper {
      gap: var(--sizing-m);
    }
  }
}

.product-details__cmc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xs);
  padding-bottom: var(--sizing-m);

  h2 {
    color: var(--neutrals-sub-texts-paragraphs);
    font-size: var(--sizing-m);
    font-weight: var(--fw-500);

    @media (width >= 1024px) {
      line-height: var(--lh-medium);
      font-size: var(--fs-xmedium);
    }
  }

  .product-details__cmc-universal {
    color: var(--view-all-card-text);
    font-size: var(--fs-xsmall);
    font-weight: var(--fw-400);
    line-height: var(--lh-12);
  }

  .product-details__cmc-list {
    overflow: auto;
    width: 100%;
    gap: var(--spacing-small);
    overflow-y: hidden;
    display: flex;

    .product-details__cmc-item {
      border: 1px solid var(--color-neutral-400);
      background-color: var(--ui-border-color);
      min-width: 96px;
      max-width: 96px;
      min-height: 136px;
      display: flex;
      flex-direction: column;

      @media (width >= 768px) {
        min-width: 110px;
        max-width: 110px;
      }

      &.hide-mobile {
        @media screen and (width < 1024px) {
          display: none;
        }
      }

      &.hide-desktop {
        @media screen and (width >= 1024px) {
          display: none;
        }
      }

      @media screen and (width >= 1024px) {
        width: 112px;
        min-height: 142px;
      }

      .product-details__cmc-mycar {
        width: 100%;
        background-color: var(--selected-item);
        color: var(--neutrals-headings);
        padding: 3px 0 2px;
        text-align: center;
        font-size: var(--fs-xxsmall);
        font-weight: var(--fw-500);
        justify-content: center;
        line-height: 1.63rem;

        @media screen and (width >= 768px) {
          padding: 2px 0;
          font-size: var(--fs-xsmall);
        }

        .product-details__cmc-error-icon-container {
          .icon {
            width: 16px;
            height: 16px;
          }
        }
      }

      .product-details__cmc-card {
        padding: var(--sizing-s) var(--spacing-xsmall) var(--spacing-xsmall);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;

        @media screen and (width >= 1024px) {
          padding-top: 9px;
        }

        &.view-all-cars {
          padding: var(--spacing-xxsmall) var(--spacing-none);
          background-color: var(--view-all-card-bg);
          justify-content: center;
        }

        .product-details__cmc-card-image {
          width: auto;
          height: 40px;
          margin-bottom: var(--sizing-2xs);
        }

        .product-details__cmc-card-content {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: var(--spacing-xxsmall);

          &.view-all-cars {
            padding: var(--sizing-xs);
            background-color: var(--view-all-card-bg);
            gap: 6px;
          }

          img {
            height: 16px;
            max-width: 100%;

            @media (width >=768px) and (width < 1024px) {
              height: 14px;
              margin-bottom: 4px;
            }
          }

          h5 {
            color: var(--text-black);
            font-size: var(--fs-xsmall);
            font-weight: var(--fw-700);
            margin-bottom: var(--sizing-2xs);
            text-align: center;
            line-height: 13.277px;

            @media (width >= 768px) {
              font-size: var(--fs-small);
              margin-bottom: var(--sizing-2xs);
            }
          }

          span {
            color: var(--text-black);
            font-size: var(--fs-xxsmall);
            font-weight: var(--fw-400);
            text-align: center;
            line-height: 13.277px;

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

          .product-details__cmc-card-content-number {
            display: flex;
            border-radius: 40px;
            background: rgb(23 28 143 / 10%);
            width: 34px;
            height: 34px;
            padding: var(--spacing-2xs);
            justify-content: center;
            align-items: center;
            gap: var(--spacing-xs);

            span {
              font-size: var(--fs-small);
              font-weight: var(--fw-600);
              color: var(--primary-color);
              text-align: center;
            }
          }

          .product-details__cmc-card-content-number-mobile {
            display: block;

            @media screen and (width >= 1024px) {
              display: none;
            }
          }

          .product-details__cmc-card-content-number-desktop {
            display: none;

            @media screen and (width >= 1024px) {
              display: block;
            }
          }

          .product-details__cmc-card-content-text {
            font-size: var(--fs-xxsmall);
            text-align: center;
            color: var(--view-all-card-text);
          }

          .product-details__cmc-card-content-button {
            font-size: var(--fs-xxsmall);
            text-align: center;
            color: var(--primary-color);
            font-weight: var(--fw-500);
            text-decoration-line: underline;
            text-decoration-style: solid;
            text-decoration-skip-ink: none;
            text-decoration-thickness: auto;
            text-underline-offset: auto;
            padding: var(--spacing-xxsmall);

            @media screen and (width >= 768px) {
              padding: var(--spacing-xs);
            }
          }
        }
      }

      &.product-details__cmc-item--add-vehicle {
        .add-vehicle {
          cursor: pointer;
          border: none;
          background: var(--tertiary-color);
          justify-content: center;
          padding-inline: var(--spacing-xsmall);
          gap: 15px;

          @media screen and (width >= 768px) {
            gap: 17px;
          }

          .add-vehicle__icon {
            border-radius: 50%;
            background: url('/genuine-accessories/icons/add_white.svg') no-repeat center / cover;
            background-color: var(--primary-color);
            width: 38px;
            height: 38px;
            background-size: 22px;
          }

          .product-details__cmc-card-content-text {
            font: var(--text-small-medium);
            color: var(--text-grey-2);
            font-weight: var(--fw-500);
          }
        }
      }
    }

    .product-details__cmc-item--mobile-hidden {
      display: none;

      @media screen and (width >= 1024px) {
        display: flex;
      }
    }

    .product-details__cmc-item--desktop-hidden {
      display: none;
    }
  }
}

.product-details__cmc-incompatible-banner {
  background: var(--warning-bg);
  color: var(--nexa-primary-main);
  font-size: var(--fs-xxsmall);
  text-align: center;
  padding: var(--spacing-6) var(--spacing-10);
  font-weight: var(--fw-600);

  @media screen and (width >= 1024px) {
    font-size: var(--fs-xsmall);
  }
}

.product-details__bodycoating {
  color: var(--view-all-card-text);
  font-size: var(--fs-xsmall);
  font-weight: var(--fw-400);
  line-height: var(--lh-12);
  padding: 16px 4px;
}

html:not(.no-scroll) {
  .product-details__sticky-bar-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-index-sticky);
    display: flex;
    flex-direction: column;
    justify-content: center;

    .toast--wishlist {
      position: static;
      transform: none;
    }

    .product-details__sticky-bar {
      order: 3;
      background: var(--gradient-sticky-bar);
      backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: var(--sizing-m) var(--spacing-l);
      gap: var(--sizing-s);

      .product-details__sticky-bar-wishlist-btn .icon {
        display: flex;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        padding: var(--spacing-xsmall);
        border-radius: 50%;
        background: var(--icon-bg);
      }

      .product-details__sticky-bar-info {
        display: none;
      }

      @media (width >= 768px) {
        padding: var(--sizing-s) var(--container-margin);
        justify-content: space-between;

        .product-details__sticky-bar-wishlist-btn {
          display: none;
        }

        .product-details__sticky-bar-info {
          display: flex;
          align-items: baseline;
          gap: var(--spacing-xsmall);

          .product-details__sticky-bar-unit {
            font: var(--text-medium-regular);
            font-size: var(--fs-small);
            color: var(--ui-text-icon-medium);
            line-height: var(--lh-medium);
            letter-spacing: 0.14px;
          }
        }
      }

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

      .product-details__sticky-bar-price {
        @media (width >= 768px) {
          font-weight: var(--fw-700);
          font-size: var(--fs-28);
          line-height: 34px;
          color: var(--ui-text-icon-high);
        }

        @media (width >=768px) and (width < 1024px) {
          font-size: var(--fs-large);
        }
      }

      .product-details__sticky-bar-actions {
        display: flex;
        gap: var(--spacing-xsmall);

        @media (width >=768px) and (width < 1024px) {
          gap: var(--sizing-m);
        }

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

        .product-details__sticky-bar-btn button {
          align-self: stretch;
          padding: var(--spacing-xsmall) var(--sizing-s);
          min-width: 130px;
          height: 40px;
          font-size: var(--fs-small);
          font-weight: var(--fw-400);
          line-height: var(--lh-small);

          @media (width >=768px) and (width < 1024px) {
            min-width: 170px;
            padding: var(--spacing-xsmall) var(--sizing-xl);
            line-height: var(--lh-medium);
          }

          @media (width >= 1024px) {
            min-width: 250px;
            font-size: var(--fs-medium);
            padding: var(--spacing-xsmall) var(--sizing-l);
          }

          &.dropin-button--primary--disabled {
            border: 1px solid var(--neutrals-bars-unselected);
            background-color: var(--neutrals-bars-unselected);
            color: var(--neutrals-unfilled-inactive);
            cursor: unset;
          }
        }
      }
    }
  }
}

.product-details__option {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-small);
  padding-bottom: var(--sizing-xl);

  h2 {
    font-size: var(--fs-medium);
    font-weight: var(--fw-500);
    line-height: var(--lh-normal);
    color: var(--neutrals-sub-texts-paragraphs);

    @media (width >= 768px) {
      line-height: var(--lh-medium);
      font-size: var(--fs-xmedium);
    }
  }

  .product-details__option-values {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-small);
    overflow-x: auto;

    li.product-details__option-value {
      min-width: 96px;
      max-width: 96px;
      border: 1.884px solid var(--ui-surface-glass-regular);
      background: var(--ui-surface-glass-regular);
      cursor: pointer;
      transition: border-color 0.3s ease;

      &:hover {
        border: 1px solid var(--primary-color);

        .product-details__option-value-image img {
          transform: scale(1.1);
        }
      }

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

      a {
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;

        .product-details__option-value-image {
          width: 100%;
          border-radius: 0;
          background: var(--tertiary-color);
          padding: var(--spacing-2xs) 11px 11px;
          overflow: hidden;
          position: relative;

          @media (width >= 1024px) {
            padding: 5px 11.5px var(--spacing-xs);
            border-radius: 0;
          }

          img {
            aspect-ratio: 1 / 1;
            width: 100%;
            height: auto;
            object-fit: contain;
            transition: transform 0.3s ease;
          }
        }

        .product-details__option-value-title {
          padding: 11px var(--spacing-xsmall);
          color: var(--neutrals-sub-texts-paragraphs);
          font-size: 13px;
          font-feature-settings: var(--font-settings);
          font-weight: var(--fw-500);
          line-height: 18px;
          flex-shrink: 0;
          width: 100%;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          overflow: hidden;
          max-height: 51px;

          @media (width >= 768px) {
            font-size: var(--fs-small);
            line-height: 2.2rem;
            max-height: 59px;
          }

          @media (width >= 1024px) {
            padding: var(--spacing-2xs) 9px;
            color: var(--ui-text-icon-high);
            letter-spacing: 0.151px;
          }
        }
      }

      &.current-product {
        border: 1px solid var(--primary-color);

        @media (width >= 1024px) {
          border: 1.62px solid var(--primary-color);
        }
      }
    }
  }
}

/* compatibility Modal */
.modal.pdp-modal-compatibility {
  .modal-container {
    border-radius: 0;
    padding-inline: var(--spacing-none) !important;

    .product-details__cmc-modal {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: var(--spacing-small);
      padding-left: var(--sizing-l);
      padding-right: 6px;
      max-height: 70vh;

      @media (width >= 768px) {
        max-height: 60vh;
      }

      h2 {
        text-align: start;
        width: 100%;
        font-size: var(--fs-large);
        font-weight: var(--fw-700);
        line-height: var(--lh-large);
        padding-right: 14px;
        color: var(--ui-text-icon-high);
      }

      .product-details__cmc-card {
        display: flex;
        justify-content: flex-start;
        flex-direction: column;

        .product-details__cmc-card-content {
          img {
            max-width: 100px;
            max-height: 16px;
          }
        }
      }

      .product-details__cmc-modal-search-input-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2px;
        padding: var(--spacing-none) var(--spacing-xsmall);
        background-color: var(--ui-surface-glass-regular);
        height: 44px;
        width: calc(100% - 14px);
        margin-right: auto;

        .icon.icon-search-dark {
          padding: var(--spacing-xsmall);
          width: fit-content;
          height: fit-content;

          img {
            width: 20px;
            height: 20px;
          }
        }

        input {
          border: none;
          outline: none;
          background-color: transparent;
          width: 100%;
          height: 100%;
          font-size: var(--fs-medium);
          font-weight: var(--fw-400);
          padding: 0;
          line-height: 22px;
          color: var(--neutrals-sub-texts-paragraphs);
        }
      }

      .product-details__cmc-list {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        gap: var(--spacing-small);
        overflow-y: auto;
        padding-right: 14px;
        padding-bottom: 20px;

        .product-details__cmc-item--add-vehicle {
          display: none;
        }

        .product-details__cmc-item {
          width: 100%;
          height: fit-content;
          background: var(--grey-bg);
          padding: var(--spacing-xsmall);
        }

        .product-details__cmc-mycar {
          display: none;
        }

        .product-details__cmc-item.product-details__cmc-item--hidden {
          display: none;
        }

        .product-details__cmc-card {
          width: 100%;
          flex-direction: row;

          .product-details__cmc-card-image {
            height: auto;
            width: 60px;
            object-fit: contain;
          }

          .product-details__cmc-card-content {
            display: grid;
            grid-template-columns: max-content auto;
            align-items: center;
            justify-content: start;
            margin-left: var(--sizing-xl);
            gap: var(--sizing-2xs) 6px;

            @media screen and (width >= 768px) {
              gap: var(--spacing-xsmall);
            }

            h5,
            .product-details__cmc-card-content-year {
              color: var(--schemes-on-surface);
              font-size: var(--fs-xsmall);
              font-weight: var(--fw-500);
              line-height: 14.4px;

              @media (width >= 768px) {
                line-height: 16.8px;
              }
            }

            h5 {
              @media (width >= 768px) {
                font-size: var(--fs-small);
              }
            }

            .product-details__cmc-card-content-year {
              font-weight: var(--fw-400);
            }

            .product-details__cmc-card-content-year::before {
              content: '|';
              display: inline-block;
              color: var(--neutrals-unfilled-inactive);
              margin-right: 6px;
            }

            .product-details__cmc-card-content-variant-code {
              color: var(--neutrals-unfilled-inactive);
              font-size: var(--fs-xsmall);
              font-weight: var(--fw-400);
              line-height: 14.4px;
              padding-left: 5px;
            }
          }
        }
      }
    }
  }
}

.product-details__cmc-error-icon {
  vertical-align: middle;
  width: 16px;
  height: 16px;
}

.product-details__cmc-mycar--incompatible {
  display: flex;
  align-items: center;
  gap: 3px;
}

.product-details .product-details__cmc .tooltip-wrapper .tooltip-box {
  left: calc(100% - 18px);

  .tooltip-arrow {
    left: 0;
  }
}

.modal dialog .modal-container.offer-modal-container {
  border-radius: 0;

  @media (width <= 1024px) {
    padding-bottom: var(--spacing-3xl);
  }

  .modal-content {
    @media (width >= 1024px) {
      padding: 0 var(--spacing-3xl) var(--spacing-3xl);
    }

    .offer__modal-content-wrapper {
      display: flex;
      flex-direction: column;
      gap: var(--spacing-small);
      color: var(--neutrals-sub-texts-paragraphs);
      font-size: var(--fs-small);
      font-weight: var(--fw-400);
      line-height: var(--lh-medium);

      @media (width >= 1024px) {
        color: var(--ui-text-icon-high);
      }

      .offer-modal__title {
        display: flex;
        align-items: center;
        gap: var(--spacing-xsmall);
        font-size: var(--fs-large);
        margin-bottom: var(--spacing-xxsmall);
        font-weight: var(--fw-700);
        color: var(--neutrals-headings);

        @media (width >= 1024px) {
          color: var(--ui-text-icon-high);
          line-height: var(--lh-large);
        }

        .logo {
          width: 20px;
          height: 20px;
        }
      }

      .offer-modal__how-to-avail-title {
        padding-bottom: var(--spacing-small);
        font-weight: var(--fw-600);
      }

      .offer-modal__how-to-avail-item-list {
        list-style: disc;
        padding-left: var(--spacing-medium);

        .offer-modal__how-to-avail-item:not(:last-child) {
          padding-bottom: var(--spacing-xsmall);
        }
      }
    }
  }
}

/* Product Gallery Styles */
.product-gallery,
.product-gallery-modal {
  position: relative;
  width: 100%;

  .splide__pagination {
    position: absolute;
    border-radius: 30px;
    background: var(--gallery-arrow-bg);

    .splide__pagination__page {
      background: var(--border-light-gray);
      box-shadow: var(--shadow-elevation);

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

      @media screen and (width >= 1024px) {
        height: 11px;
        width: 11px;
      }
    }

    .splide__pagination__page.is-active {
      background: var(--tertiary-color);

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

      @media screen and (width >= 1024px) {
        height: 11px;
        width: 22px;
      }
    }
  }

  .thumbnail-slider {
    .splide__list {
      justify-content: center;
    }

    &.is-overflow {
      .splide__list {
        justify-content: left;
      }
    }

    .splide__slide {
      width: 60px;
      height: 60px;
      padding: var(--sizing-2xs);
      display: flex;
      transition:
        opacity 0.3s,
        background-color 0.3s;
      cursor: pointer;
      background: var(--nexa-tertiary-light-grey);

      img {
        align-self: center;
      }
    }

    .splide__slide.is-active {
      border: 1.5px solid var(--primary-color);
    }
  }
}

/* Base splide styles */
.product-gallery .splide__list,
.product-gallery-modal .splide__list {
  display: flex;
}

.product-gallery .splide__list .splide__slide,
.product-gallery-modal .splide__list .splide__slide {
  flex: 0 0 auto;
}

.product-gallery__image {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 360 / 238;

  @media (width >=768px) and (width < 1024px) {
    aspect-ratio: 356 / 235;
  }

  @media screen and (width >= 1024px) {
    aspect-ratio: 609 / 403;
  }
}

.product-gallery__main-slider {
  margin-bottom: var(--sizing-m);
  overflow: hidden;
  position: relative;

  .splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--tertiary-color);
  }

  .splide__arrows {
    display: none;

    @media (width >= 1024px) {
      display: block;
    }
  }
}

/* Thumbnail slider styles */
.product-gallery__thumbnail-slider {
  margin-bottom: var(--sizing-m);
  padding: var(--spacing-none) var(--sizing-l);

  @media (width >=768px) and (width < 1024px) {
    padding: var(--spacing-none) var(--sizing-m);
  }
}

.product-gallery__thumbnail-slider .splide__track {
  padding: var(--spacing-none);
  overflow: hidden;
}

.product-gallery__thumbnail-slider .splide__list {
  justify-content: flex-start;
  gap: 4px;

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

/* Splide arrow customization */
.product-gallery .splide__arrow {
  opacity: 0.8;
  border: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background: url('/genuine-accessories/icons/chevron-right-blue.svg') no-repeat center center;
  width: 40px;
  height: 40px;
  background-size: 40px;
  background-color: var(--gallery-arrow-bg);
  backdrop-filter: blur(12.04px);

  &.splide__arrow--next {
    right: 16px;
  }

  &.splide__arrow--prev {
    left: 16px;
    transform: translateY(-50%) rotate(180deg);
  }
}

/* Thumbnails below main slider */
.product-gallery__thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.product-gallery__thumbnails .thumbnail {
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.product-gallery__thumbnails .thumbnail.active {
  border-color: var(--primary-color);
  opacity: 1;
}

.product-gallery__thumbnails .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal styles */

.modal dialog.product-gallery-modal-container {
  &::backdrop {
    --ui-scrim-default: rgb(24 23 26 / 30%);
  }

  .close-button-container {
    padding-bottom: 7px;

    @media screen and (width >= 768px) {
      position: absolute;
      top: 12px;
      right: 0;
    }

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

  .close-button {
    left: unset;
    right: 0;
    top: -40px;

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

    @media screen and (width >= 768px) {
      background: var(--neutrals-unfilled-inactive);
    }
  }

  .modal-container {
    --close-icon: url('/genuine-accessories/icons/close-light.svg');

    background-color: transparent;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    padding: 0 20px;

    .modal-content {
      overflow-x: hidden;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    @media screen and (width >= 768px) {
      width: 356px;
      max-height: 100%;
      padding: 0;
    }

    @media screen and (width >= 1024px) {
      width: 803px;
    }
  }
}

/* Class to show content when ready */
.modal-content-ready {
  opacity: 1 !important;
}

.product-gallery-modal__main-slider .splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--tertiary-color);
}

.product-gallery-modal__thumbnail__container {
  position: relative;
}

.product-gallery-modal__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Modal close button customization */
.product-gallery-modal-container .close-button {
  background-color: var(--tertiary-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
  left: 0;
  z-index: 20;
}

.product-gallery-modal-container .close-button .icon {
  width: 20px;
  height: 20px;
}

/* Modal arrow customization to match main carousel */
.product-gallery-modal .splide__arrow {
  opacity: 0.8;
  border: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background: url('/genuine-accessories/icons/chevron-right-blue.svg') no-repeat center center;
  width: 40px;
  height: 40px;
  background-size: 40px;
  background-color: var(--gallery-arrow-bg);
  backdrop-filter: blur(12.04px);

  &.splide__arrow--next {
    right: 16px;
  }

  &.splide__arrow--prev {
    left: 16px;
    transform: translateY(-50%) rotate(180deg);
  }
}

.product-gallery-modal {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  margin-bottom: 0;

  .product-gallery-modal__main-slider {
    margin-bottom: 12px;
    position: relative;
    flex: 1;

    .product-gallery-modal__image {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;

      @media screen and (width >= 768px) {
        width: 100%;
        height: auto;
        aspect-ratio: 803/531;
      }
    }

    .splide__pagination {
      @media screen and (width < 768px) {
        display: none;
      }
    }
  }

  .product-gallery-modal__thumbnail-slider {
    .splide__arrows {
      display: none;
    }

    .splide__list {
      gap: 5px;
    }

    @media screen and (width >= 768px) {
      display: inline-flex;
      justify-content: center;
      padding: 0;

      .splide__arrows {
        display: block;
      }

      .splide__arrow--prev {
        left: -56px !important;
      }

      .splide__arrow--next {
        right: -56px !important;
      }
    }
  }
}
