/* stylelint-disable no-descending-specificity */
@import url('../../styles/product-list-product-item-card.css');
@import url('/genuine-accessories/blocks/forms/default-forms.css');

/* Mobile Actions Styles */
.search__mobile-actions {
  min-height: 55px;

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

.mobile-actions {
  display: flex;
  width: 100%;
  background-color: var(--tertiary-color);
  border-top: 1px solid rgb(12 58 146 / 2%);
  box-shadow: 0 2px 4px 0 rgb(0 0 0 / 10%);
  backdrop-filter: blur(40px);

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

  &.mobile-actions--clp .mobile-actions__button {
    width: calc(100% / 2);
  }
}

.mobile-actions__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sizing-s) var(--sizing-s) var(--sizing-s) var(--spacing-l);
  background: transparent;
  border: none;
  cursor: pointer;
  width: calc(100% / 3);
  border-right: 0.2px solid rgba(121 121 121 / 20%);

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

  &:last-child {
    border-right: none;
  }
}

/* Disabled state for mobile actions */
.mobile-actions button[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.mobile-actions__button-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: calc(100% - 24px);

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

.mobile-actions__button-label {
  color: var(--neutrals-sub-texts-paragraphs);
  font: var(--text-small-medium);
  font-feature-settings: var(--font-settings);

  &[data-filter-value] {
    position: relative;

    &::after {
      position: absolute;
      top: -4px;
      right: -25px;
      content: attr(data-filter-value);
      background-color: var(--ui-surface-accent-accent-1);
      color: var(--tertiary-color);
      border-radius: 50%;
      width: 2rem;
      height: 2rem;
      display: flex;
      align-items: center;
      font-size: var(--fs-small);
      font-weight: var(--fw-700);
      font-feature-settings: var(--font-settings);
      justify-content: center;
    }
  }
}

.mobile-actions__button-value {
  font-weight: var(--fw-400);
  color: var(--neutrals-unfilled-inactive);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.mobile-actions__button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* Modal Styles */
.modal .mobile-actions-modal {
  width: 100%;
  max-width: 100%;
  border-radius: var(--shape-border-radius-2) var(--shape-border-radius-2) 0 0;
  bottom: 0;
  top: auto;
  transform: translateY(0);

  .close-button-container .close-button {
    top: -50px;
    width: 38px;
    height: 38px;
    padding: 8px;

    .icon.icon-close {
      width: 19px;
      height: 19px;

      @media (width>=768px) and (width < 1024px) {
        background: url('/genuine-accessories/icons/akar-icons_cross.svg') center / 24px 24px no-repeat;
        width: 24px;
        height: 24px;
      }

      @media (width>=1024px) {
        top: -20px;
        position: absolute;
      }
    }

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

  .mobile-actions-modal__footer {
    .button--primary {
      border: 0;
    }
  }

  @media screen and (width >= 768px) and (width < 1024px) {
    width: 376px !important;
    height: 100vh !important;
    position: fixed;
    inset: 0 0 0 auto;
    border-radius: 0;
    margin: 0 !important;
    transform: none;
    inset-inline-end: 0;
  }
}

.mobile-actions-modal .modal-content {
  padding: var(--spacing-xsmall) 0 23px;

  @media screen and (width >= 768px) and (width < 1024px) {
    padding: 0 0 var(--sizing-l);
  }

  .car-variants-wrapper {
    .car-selected-text {
      font-size: var(--fs-xsmall);
      color: var(--ui-text-icon-high);
      font-weight: var(--fw-500);
      line-height: var(--lh-medium);
      letter-spacing: 0.14px;
      padding: 2px 0;
      margin-bottom: var(--sizing-m);
    }
  }
}

.modal {
  dialog.mobile-actions-modal {
    .modal-container {
      border-radius: 0;
      padding: 0;

      @media screen and (width >= 768px) and (width < 1024px) {
        min-height: 100%;
        padding-top: 0;
      }

      .modal-header {
        padding: 60px var(--spacing-l) var(--sizing-m);

        @media screen and (width >= 768px) {
          padding-top: var(--sizing-m);
        }

        h2 {
          color: #1d1d1d;
          display: none;

          @media screen and (width >= 768px) {
            display: flex;
            line-height: 23.054px;
          }
        }
      }

      .modal-content {
        padding: 0 0 24px;
        margin: 0 8px 0 var(--spacing-l);
      }

      .modal-footer {
        padding: 22px var(--spacing-l);
        box-shadow:
          0 7px 10px 0 rgba(0 0 0 / 9%),
          0 20px 50px 0 rgba(0 0 0 / 20%);
      }
    }

    &.mobile-actions-sort-modal {
      .mobile-actions-modal__apply-button {
        width: 100%;
      }

      .form-radio__container {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-xsmall);
      }

      .form-radio__item {
        --border-color: var(--neutrals-bars-unselected);

        padding: var(--sizing-s) var(--sizing-m);

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

        &:has(input[type='radio']:checked) {
          background: var(--interactive-surface-enabled-tonal-accent);

          @media (width>=768px) and (width < 1024px) {
            background: var(--radio-selected-bg);
          }
        }

        .form-radio__label {
          line-height: var(--lh-16);
          padding-left: 36px;
          min-height: 20px;

          @media (width>=768px) and (width < 1024px) {
            padding-left: 28px;
          }

          &::before {
            border-color: var(--border-color);
            width: 20px;
            height: 20px;
          }
        }

        & input[type='radio'] {
          &:checked + .form-radio__label::after {
            left: 2px;
          }
        }
      }

      .modal-header {
        padding: 15px 0;

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

        h2 {
          line-height: 2.304rem;
        }
      }
    }

    &.mobile-actions-filter-modal {
      .modal-container {
        height: calc(100% - 60px);
      }

      .modal-header {
        padding: var(--sizing-m) var(--spacing-l);
        line-height: 2.3rem;

        @media (width<768px) {
          margin-top: var(--spacing-3xl);
        }

        h2 {
          color: var(--ui-text-icon-high);
          font-size: var(--fs-large);
          font-style: normal;
          font-weight: var(--fw-700);
          line-height: 2.304rem;
        }
      }

      .modal-footer {
        padding-inline: var(--spacing-l);
      }
    }

    .mobile-actions-modal__footer {
      display: flex;
      gap: 8px;

      button {
        flex: 1;
        min-height: 40px;
        padding: 0 var(--sizing-m);

        @media (width>=768px) and (width < 1024px) {
          min-height: 50px;
          padding: var(--spacing-xsmall) var(--sizing-s);
          font-weight: var(--fw-500);
          line-height: var(--lh-medium);
          letter-spacing: 0.14px;
        }
      }
    }
  }
}

/* Filter Styles */
.mobile-actions-filter-container {
  height: 100%;
  overflow-y: auto;
}

.saved-cars-section {
  .saved-cars__header {
    font-size: var(--fs-xsmall);
    letter-spacing: 0.14px;
    font-weight: var(--fw-500);
    line-height: var(--lh-medium);
    color: var(--ui-text-icon-high);
    padding: var(--spacing-xxxsmall) 0;
    margin-bottom: var(--sizing-m);

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

  .saved-cars__list {
    display: flex;
    gap: var(--sizing-m);
    flex-direction: row;

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

    .saved-cars__item {
      display: flex;
      flex-direction: column;
      cursor: pointer;
      border: 1px solid var(--border-color-2);
      background: var(--ui-border-color);
      padding: var(--sizing-2xs) 0 7px;
      min-width: 97px;

      @media (width >= 1024px) {
        background-color: transparent;
        border: none;
        flex-direction: row;
        padding: 0;
        align-items: center;
      }

      .saved-cars__radio {
        display: none;
      }

      .saved-cars__radio-custom {
        --check-size: 24px;
        --selection-size: 16px;

        width: var(--check-size);
        height: var(--check-size);
        border: 1px solid var(--neutrals-bars-unselected);
        display: inline-block;
        margin-left: var(--sizing-2xs);
        position: relative;

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

        @media (width >= 1024px) {
          --check-size: 24px;
          --selection-size: 16px;

          margin-left: 0;
          margin-right: var(--sizing-m);
        }
      }

      .saved-cars__radio[checked] + .saved-cars__radio-custom {
        background: var(--ui-border-color);
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .saved-cars__radio[checked] + .saved-cars__radio-custom::after {
        background: var(--primary-color);
        content: '';
        width: var(--selection-size);
        height: var(--selection-size);
        position: absolute;
      }

      .saved-cars__image-wrapper {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 6px;

        @media (width >= 1024px) {
          gap: 3px;
        }

        .saved-cars__image {
          width: 65px;
          height: auto;
          object-fit: contain;
        }

        .saved-cars__logo-image {
          width: 58px;
        }
      }

      .saved-cars__details {
        display: flex;
        align-items: center;
        flex-direction: column;
        padding: 1px var(--sizing-m) 0;

        @media (width >= 1024px) {
          padding: 0 0 0 var(--sizing-xl);
          align-items: flex-start;
        }

        span {
          color: var(--neutrals-sub-texts-grey);
          font-size: var(--fs-xxsmall);
          font-weight: var(--fw-400);
          line-height: var(--lh-normal);

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

  .separator {
    color: var(--ui-text-icon-high);
    font-size: var(--fs-xsmall);
    font-weight: var(--fw-500);
    line-height: var(--lh-medium);
    letter-spacing: 0.14px;
    margin: var(--sizing-m) 0;
  }
}

/* Mobile Actions Styles Ends */

/* Filter Facets Styles */
.filter-tabs__content .checkbox-facet .icon {
  @media (width < 1024px) {
    display: none;
  }
}

.filter-facets {
  display: flex;
  flex-direction: column;
  gap: var(--sizing-s);
  width: 100%;

  .filter-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;

    .filter-title {
      color: var(--primary-variations-primary);
      font-feature-settings: var(--font-settings);
      font-size: var(--fs-medium);
      font-style: normal;
      font-weight: var(--fw-600);
      line-height: var(--lh-20);
    }

    .filter-clear-all {
      padding: var(--sizing-s) var(--sizing-xl);
      font-size: var(--fs-small);
    }
  }
}

.filter-facets,
.filter-modal__content {
  .form-checkbox {
    & .form-checkbox__container {
      gap: var(--sizing-m);

      input[type='checkbox'] {
        border: 0.714px solid var(--neutrals-unfilled-inactive);

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

      .icon {
        height: 16px;
        width: 16px;
      }

      .swatch {
        height: 16px;
        width: 16px;
        border-radius: 50%;
        display: flex;
      }

      .swatch-border {
        border: 1px solid var(--border-color);
      }

      label {
        font-size: var(--fs-xsmall);
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        line-height: normal;
      }
    }
  }

  /* Specific styles for categories and color facets */
  [data-facet='categories'],
  [data-facet='color'],
  [data-tab='color'] {
    .form-checkbox__container {
      gap: 0 !important;

      .icon,
      .swatch {
        margin: 2px var(--spacing-xsmall) 2px 4px;
      }
    }
  }
}

.filter-facet {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 0.5px solid var(--neutrals-bars-unselected);
  padding: var(--spacing-xsmall) var(--sizing-m);

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

  .filter-facet__header {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-feature-settings: var(--font-settings);
    font-style: normal;

    .filter-facet__title {
      color: var(--primary-variations-primary);
      font-size: var(--fs-small);
      font-weight: var(--fw-500);
      line-height: var(--lh-medium);
    }

    .filter-facet__selected-filter {
      color: var(--color-sort-label);
      font-size: var(--fs-xxsmall);
      font-weight: var(--fw-400);
      line-height: var(--lh-medium);
    }
  }

  &.is-expanded {
    padding: 14px var(--sizing-m) var(--sizing-m);

    .filter-facet__selected-filter {
      display: none;
    }

    .filter-facet__header {
      margin-bottom: var(--spacing-2xs);
    }
  }

  .selected-car-row {
    .selected-car-wrapper {
      .selected-car-title {
        color: var(--neutrals-headings);
        font-size: var(--fs-small);
        font-weight: var(--fw-500);
        line-height: var(--lh-medium);
        margin-bottom: var(--sizing-m);
        margin-top: 14px;
      }

      .selected-car-row__details {
        display: flex;
        gap: 24px;
        align-items: center;

        .selected-car-row__image-wrapper {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 3px;

          .selected-car-row__image {
            width: 65px;
            height: auto;
            object-fit: contain;
          }

          .selected-car-row__logo {
            width: 45px;
          }
        }

        .selected-car-row__content {
          display: flex;
          flex-direction: column;

          span {
            color: #565656;
            font-size: 14px;
            font-weight: 400;
            line-height: 20px;
          }
        }
      }
    }

    .selected-car-row__separator {
      margin-top: 24px;
      margin-bottom: 12px;
      font-size: 14px;
      font-weight: 500;
      line-height: 20px;
      color: #1d1d1d;
    }
  }
}

.filter-facet__no-results {
  text-align: center;
  color: var(--neutrals-unfilled-inactive);
  font: var(--text-small-regular);
  padding: var(--spacing-medium);
}

.filter-facet__toggle {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.3s ease;
}

.filter-facet__toggle--expanded {
  transform: rotate(180deg);
}

.filter-facet__content {
  display: flex;
  flex-direction: column;
  gap: var(--sizing-s);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  padding-right: 4px;
  scrollbar-gutter: stable;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

.filter-facet__content--expanded {
  max-height: 1000px; /* Increased to accommodate more content */
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease,
    visibility 0s linear;
}

.filter-facet__checkbox-item {
  margin-bottom: var(--spacing-xsmall);
  display: flex;
  align-items: center;
  justify-content: space-between;

  @media (width >= 1024px) {
    margin-bottom: var(--sizing-s);
  }
}

.filter-facet__checkbox-count {
  color: var(--ui-text-icon-medium);
  font-size: var(--fs-xsmall);
  line-height: var(--line-height-body-low); /* 133.333% */
  letter-spacing: 0.24px;
  padding-left: 4px;

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

/* Hierarchical checkbox styles for L2/L3 relationship */
.filter-facet__checkbox-wrapper {
  display: flex;
  flex-direction: column;
}

.filter-facet__checkbox-wrapper--child {
  padding-left: var(--sizing-xl);

  @media (width >= 1024px) {
    padding-left: 32px;
  }
}

.filter-facet__children {
  display: flex;
  flex-direction: column;
  margin-top: var(--spacing-xsmall);

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

.filter-facet__checkbox-item.has-children {
  margin-bottom: 0;
}

/* Mobile filter modal styles */
.filter-modal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Filter tabs styles for mobile vertical tabs */
.filter-tabs {
  display: flex;
  width: 100%;
  height: 100%;
}

.filter-tabs__nav {
  display: flex;
  flex-direction: column;
  width: 36%;
  border-right: 0.96px solid var(--ui-divider-low);
  overflow-y: auto;

  @media (width>=768px) and (width < 1024px) {
    width: 128px;
    border-right: 1px solid var(--ui-divider-low);
  }
}

.filter-tabs__tab {
  display: flex;
  align-items: center;
  padding: var(--sizing-m) var(--spacing-l);
  background: transparent;
  justify-content: space-between;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-height: 42px;

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

.filter-tabs__title {
  overflow: hidden;
  color: var(--neutrals-sub-texts-grey);
  text-overflow: ellipsis;
  font-size: var(--fs-small);
  font-style: normal;
  font-weight: var(--fw-500);
  line-height: 19.2px;
  letter-spacing: 0.134px;
}

.filter-tabs__count {
  color: var(--ui-text-icon-medium);
  font-size: var(--fs-xsmall);
  font-style: normal;
  font-weight: var(--fw-400);
  line-height: var(--line-height-body-low); /* 133.333% */
  letter-spacing: 0.24px;
}

.filter-tabs__tab--active {
  border-left: 2px solid var(--primary-variations-primary);
  background: var(--ui-surface-glass-thin);
  backdrop-filter: blur(calc(80px / 2));

  .filter-tabs__title {
    color: var(--neutrals-sub-texts-paragraphs);
  }
}

.filter-tabs__content {
  flex: 1;
  padding: 0 var(--spacing-l) 0 var(--sizing-s);
  overflow-y: auto;

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

.filter-tabs__panel {
  display: none;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

.filter-tabs__panel--active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.3s ease,
    visibility 0s linear;

  .filter-facet__checkbox-item {
    padding: var(--sizing-s);
    background: var(--ui-surface-glass-thin);

    &.is-checked {
      background: var(--interactive-surface-enabled-tonal-accent);
    }

    .form-checkbox__container {
      gap: var(--spacing-xsmall);

      label {
        align-items: center;
        justify-content: space-between;
        flex: 1;
        font-size: var(--fs-small);
        color: var(--neutrals-sub-texts-paragraphs);
        font-feature-settings: var(--font-settings);
        line-height: var(--lh-medium);
        letter-spacing: 0.017px;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
      }
    }
  }
}

.filter-modal__title {
  font-size: var(--fs-medium);
  font-weight: var(--fw-500);
  color: var(--neutrals-headings);
}

.filter-modal__close {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.filter-modal__content {
  flex: 1;
  overflow-y: auto;
  padding: var(--sizing-m);
}

.filter-modal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sizing-m);
  border-top: 1px solid var(--border-gray, #e0e0e0);
  background: var(--tertiary-color);
}

.filter-modal__footer-button {
  flex: 1;
  padding: var(--sizing-s);
  border-radius: 4px;
  font-size: var(--fs-small);
  font-weight: var(--fw-500);
  text-align: center;
  cursor: pointer;
}

.filter-modal__clear {
  background: transparent;
  border: 1px solid var(--border-gray, #e0e0e0);
  color: var(--neutrals-headings);
  margin-right: var(--spacing-xsmall);
}

.filter-modal__apply {
  background: var(--primary-variations-primary);
  border: none;
  color: white;
}

/* Responsive styles */
@media screen and (width < 1024px) {
  .filter-facets {
    display: none;
  }

  .filter-facets--mobile {
    display: flex;
  }
}

/* Filter section styles for mobile - keeping for backward compatibility */
.filter-sections {
  display: none; /* Hide accordion in mobile view */
}

@media screen and (width >= 1024px) {
  .filter-sections {
    display: flex;
    flex-direction: column;
    gap: var(--sizing-m);
    width: 100%;
  }

  .filter-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xsmall);
    width: 100%;
  }

  .filter-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sizing-s) var(--sizing-m);
    background: var(--ui-surface-glass-thin);
    border-radius: 4px;
    cursor: pointer;
  }

  .filter-section__title {
    font-size: var(--fs-small);
    font-weight: var(--fw-500);
    color: var(--neutrals-headings);
  }

  .filter-section__icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
  }

  .filter-section__icon--expanded {
    transform: rotate(180deg);
  }

  .filter-section__content {
    display: none;
    padding: 0 var(--sizing-m);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0s linear 0.3s;
  }

  .filter-section__content--expanded {
    display: block;
    opacity: 1;
    visibility: visible;
    transition:
      opacity 0.3s ease,
      visibility 0s linear;
  }
}

.checkbox-facet.contains-search {
  @media (width >= 1024px) {
    height: 240px;
  }
}

.filter-facet__search-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: var(--sizing-s);
  background-color: var(--secondary-color);
  border-radius: 0;

  .filter-facet__search-icon {
    position: absolute;
    right: 0;
    width: 24px;
    height: 24px;
    background: url('/genuine-accessories/icons/search-gray.svg') no-repeat center center;
    background-size: contain;

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

  .filter-facet__search-input {
    width: 100%;
    height: 42px;
    border: 0;
    padding: var(--spacing-xsmall) 0;
    font-size: 1.4rem;
    line-height: normal;
    font-weight: var(--fw-400);
    color: var(--neutrals-unfilled-inactive);
    border-bottom: 0.5px solid var(--neutrals-unfilled-inactive);

    @media (width >= 768px) and (width < 1024px) {
      border: none;
      background-color: transparent;
      padding: var(--sizing-m) var(--spacing-xsmall) var(--sizing-m) 44px;
      font-size: 1.5rem;
      line-height: 2.1rem;
    }

    &:focus {
      outline: none;
    }
  }
}

.filter-facet__toggle-more {
  color: #2d3494;
  font-feature-settings: var(--font-settings);
  font-size: var(--fs-xsmall);
  font-style: normal;
  font-weight: var(--fw-400);
  line-height: var(--fs-xlarge);
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  background: none;
  border: none;
}

/* View By Selector Inline Styles */
.view-by-facet {
  width: 100%;
}

.view-by-selector__search {
  margin-bottom: var(--sizing-s);
  position: relative;

  &::after {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: center / contain no-repeat url('/genuine-accessories/icons/search-gray.svg');
  }

  .view-by-selector__search-icon {
    display: none;
  }
}

.view-by-selector__search-input {
  height: 40px;
  padding: var(--sizing-xs) 0;
  width: 100%;
  outline: none;
  border: none;
  border-bottom: 1px solid var(--neutrals-unfilled-inactive);
  font-size: var(--fs-small);
  font-weight: var(--fw-400);
  box-sizing: border-box;
  color: var(--neutrals-unfilled-inactive);

  &::placeholder {
    color: var(--neutrals-unfilled-inactive);
  }
}

.view-by-selector__tabs {
  display: flex;
  border-bottom: 1px solid var(--neutrals-bars-unselected);
  margin-bottom: var(--spacing-small);
  gap: 30px;
}

.view-by-selector__tab {
  text-align: center;
  cursor: pointer;

  button {
    background: none;
    border: none;
    color: var(--neutrals-sub-texts-paragraphs);
    cursor: pointer;
    padding: var(--spacing-xsmall) 0 var(--spacing-xs);
    font-size: var(--fs-xsmall);
    line-height: 16px;
    font-weight: var(--fw-400);
    text-transform: uppercase;
  }

  &.view-by-selector__tab--active {
    font-weight: var(--fw-700);
    border-bottom: 2px solid var(--primary-variations-primary);

    button {
      color: var(--primary-variations-primary);
      font: var(--text-small-bold);
      font-size: var(--fs-xsmall);
      line-height: var(--lh-12);
      padding-top: var(--spacing-10);
    }
  }
}

.view-by-selector__car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sizing-m) var(--sizing-s);
  max-height: 300px;
  overflow-y: auto;
  position: relative;
}

.view-by-selector__car-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-xsmall) 6px 7px;
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    background-color: var(--color-seashell-gray);
  }

  &:focus {
    border: 1px solid var(--primary-variations-primary);
  }

  &.active-selectedCar {
    border: 1px solid var(--primary-color);
    border-radius: 0;
  }
}

.view-by-selector__car-image {
  width: 68px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 6px;
}

.view-by-selector__car-name {
  font: var(--text-small-medium);
  color: var(--neutrals-sub-texts-paragraphs);
  text-align: center;
  text-transform: capitalize;
  font-size: var(--fs-xxsmall);
}

.view-by-selector__car-logo {
  max-width: 60px;
  max-height: 15px;
  height: 12px;
  object-fit: contain;
}

.view-by-selector__car-item--nexa .view-by-selector__car-name {
  font-family: var(--nexa-font);
  color: var(--nexa-primary-main);
}

.view-by-selector__no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--neutrals-unfilled-inactive);
  font: var(--text-small-regular);
  padding: var(--spacing-medium);
}

/* Tooltip styles for variant selection within filter facets */
.filter-facets .variant-selection {
  display: flex;

  .variant-selection__variant-year-list {
    display: flex;
    flex-direction: column;
    gap: var(--sizing-m);

    .variant-selection__variant-year {
      color: var(--ui-text-icon-high);
      font-size: 10.667px;
      font-weight: var(--fw-500);
      line-height: 14.222px;
      margin-bottom: var(--sizing-xs);
    }

    .variant-selection__variant-list {
      display: flex;
      flex-wrap: wrap;
      gap: var(--spacing-xsmall);

      .variant-selection__variant-name {
        padding: var(--sizing-2xs);
        min-width: 74px;
        background: transparent;
        border: 0.5px solid var(--neutrals-bars-unselected);
        cursor: pointer;
        font-size: 9px;
        font-weight: var(--fw-400);
        line-height: 12.469px;
        transition: all 0.2s ease;

        @media (width >= 768px) {
          padding: var(--sizing-2xs) var(--sizing-s);
          border-color: var(--primary-color);
        }

        &:hover {
          border-color: var(--primary-color);
          background-color: var(--primary-color-hover);
        }

        &.variant-selection__variant-name--selected {
          border: 1px solid var(--primary-color);
          background: var(--semantics-background-info-link);
          color: var(--primary-color);
        }
      }
    }
  }
}

.filter-facets .variant-tooltip-container {
  position: absolute;
  z-index: 1000;
  margin-top: var(--spacing-2xs);
  left: 0 !important;
  width: 100%;

  @media screen and (width >=768px) {
    margin-top: var(--spacing-xxxsmall);
    width: 100%;
  }
}

.filter-facets .variant-tooltip {
  position: relative;
  z-index: 1000;
  background: linear-gradient(90deg, var(--tooltip-bg-color-light), var(--tooltip-bg-color-dark));
  padding: var(--sizing-m);

  @media (width >=768px) {
    padding: var(--sizing-m) 19px;
  }
}

.filter-facets .variant-tooltip__content {
  position: relative;
  z-index: 2;
}

/* End of Filter Facets Styles */

/* Filter Tags Styles */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.filter-tags__container {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  grid-gap: 8px 16px;

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

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

.filter-tag {
  display: flex;
  align-items: center;
  background: #e0ecff;
  padding: 6px;
  font-size: var(--fs-xsmall);
  font-feature-settings: var(--font-settings);
  line-height: var(--lh-medium);
  color: var(--neutrals-headings);
  justify-content: space-between;

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

  @media screen and (width >= 1024px) {
    padding: 8px;
    line-height: normal;
    gap: 8px;
  }
}

.filter-tag__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: calc(100% - 16px);
  font-weight: var(--fw-400);
}

.filter-tag__remove {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 16px;
  height: 16px;
  background-image: url('/genuine-accessories/icons/close_blue.svg');
}

.filter-tag__remove-icon {
  font-size: 16px;
  line-height: 1;
}

.plp {
  .breadcrumb-wrapper {
    min-height: 93px;

    @media (width>=768px) {
      min-height: 120px;
    }
  }
}

.search {
  .breadcrumb-wrapper {
    min-height: 70px;

    @media (width>=768px) {
      min-height: 84px;
    }

    @media (width>=1024px) {
      min-height: 92px;
    }
  }
}

.dropin-product-item-card.dropin-product-item-card-skeleton {
  .dropin-skeleton {
    gap: 0;
    width: 100%;
    display: flex;
    flex-direction: row;

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

  .dropin-skeleton-row {
    width: 100%;
    height: 40px;
    background-position-x: 0 !important;
    border-radius: 0 !important;

    &.dropin-product-item-card__skeleton__image {
      aspect-ratio: 132/148 !important;
      height: unset !important;
      width: 118px;

      @media (width>=768px) {
        aspect-ratio: 382/254 !important;
        width: 100%;
      }
    }
  }
}

.product-list-page-container {
  margin: 0 !important;
  display: block !important;
  min-height: 264px;

  @media (width>=768px) {
    min-height: 308px;
  }
}

/* Desktop Sort Options */
.product-discovery-product-list__header {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;

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

.sort-container {
  display: none;

  &.sort-container--hidden {
    display: none !important;
  }
}

.desktop-sort-options-container {
  width: 100%;
}

.desktop-sort-options {
  display: none;
}

.is-not-rendered {
  min-height: 100vh;

  .dropin-skeleton-row,
  .dropin-product-item-card__skeleton__content {
    width: 100%;
  }

  .dropin-skeleton-row {
    background: var(--color-neutral-300);
    height: 32px;
  }
}

@media screen and (width >= 1024px) {
  .sort-container {
    display: block;
    min-height: 40px;
    width: 196px !important;
  }

  .desktop-sort-options {
    display: flex;
  }

  .sort-container .form-dropdown {
    min-width: 196px;

    .form-dropdown__placeholder {
      padding-right: 30px;
      height: auto;
      min-height: 40px;
      line-height: 2rem;
      font-size: var(--fs-small);
      font-weight: var(--fw-400);

      .dropdown-label {
        color: var(--color-sort-label);
        margin-right: 2px;
      }

      &::before {
        color: var(--neutrals-sub-texts-paragraphs);
        top: 50%;
        transform: translateY(-50%);
      }
    }

    .form-dropdown__menu {
      padding: var(--sizing-m) var(--spacing-xsmall);
      min-width: 189px;
      top: calc(100% + 0px);

      .form-dropdown_item {
        padding: var(--sizing-2xs) 0 var(--sizing-2xs) var(--spacing-3xl);
        margin-bottom: var(--sizing-m);

        &:last-child {
          margin-bottom: 0;
        }

        &[data-selected='true'] {
          color: var(--neutrals-sub-texts-paragraphs);
        }

        &::before {
          left: 0;
        }
      }
    }
  }
}

.search__wrapper {
  padding: 16px 0;

  .search__left-column {
    > .search__facets {
      display: none;

      @media screen and (width >= 1024px) {
        display: block;
        position: sticky;
        top: var(--nav-height);
      }
    }

    &.search__left-column--hidden {
      display: none;
    }
  }

  .search__right-column {
    &.search__right-column--full-width {
      @media screen and (width >= 1024px) {
        flex: 0 0 100%;
        max-width: 100%;
      }
    }
  }

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

  @media screen and (width >= 1024px) {
    flex-wrap: nowrap !important;
    padding: var(--spacing-3xl) 0 var(--spacing-big);
    position: relative;
  }
}

/* Custom filters container */
.custom-filters-container {
  width: 100%;
  margin-bottom: var(--sizing-xl);
}

.search__product-list {
  width: 100%;
  margin-top: 24px;
}

.dropin-pagination-arrow svg {
  display: none;
}

.product-discovery-product-actions {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 8px;
  align-items: center;

  .product-discovery-product-actions__wishlist-toggle {
    /* padding-right: 5px; */
    border-radius: 87.142px;
    background: var(--icon-bg);
    display: flex;
    width: 34px;
    height: 34px;
    padding: 7px;

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

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

.product-discovery-product-actions__wishlist-toggle {
  .dropin-iconButton {
    padding: 0;
    width: 34px;
    height: 34px;
    background: #dadaea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    svg {
      width: 20px;
      height: 20px;

      path {
        stroke: var(--primary-color);
      }
    }
  }
}

.product-discovery-product-actions__add-to-cart {
  width: 100%;

  .dropin-button {
    padding: var(--spacing-xsmall) var(--sizing-m);
    white-space: nowrap;

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

    &:focus {
      background-color: transparent !important;
      color: var(--primary-variations-primary) !important;
    }
  }
}

.product-discovery-product-actions__add-to-cart button {
  width: 100%;
  padding: var(--spacing-xsmall) var(--spacing-xxsmall);
}

.product-discovery-product-list__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 8px;

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

  @media only screen and (width >= 1024px) {
    gap: var(--grid-gutter-width);
  }

  .plp-banner-wrapper {
    grid-column: 1 / 2;
    grid-row: 2;
  }
}

.product-discovery-product-list__grid .dropin-product-item-card:hover {
  border: 0;
  box-shadow: unset;
  padding: 0;
  cursor: pointer;

  .dropin-product-item-card__image-container .dropin-product-item-card__image img {
    transform: scale(1.1);
    transition: transform 0.4s ease;
  }

  .dropin-product-item-card__content {
    background: var(--color-neutral-150);
  }
}

.product-discovery-facet__car-model-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
}

hr.dropin-divider--secondary {
  display: none;
}

.product-discovery-facet-list {
  .product-discovery-facet-list__selected-filters {
    display: none;
  }
}

.product-discovery-product-price__discount {
  color: var(--discount-text);
  font-size: var(--fs-small);
  font-weight: var(--fw-800);
  line-height: 2.34rem;
}

/* Vertical tabs filter modal styles */
.filter-modal-vertical-tabs {
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.filter-modal-vertical-tabs .mobile-actions-filter-container {
  height: 100%;
  padding: 0;
}

.filter-modal-vertical-tabs .filter-modal {
  height: 100%;
}

.filter-modal-vertical-tabs .filter-modal__content {
  padding: 0;
}

.product-discovery-facet-list__facet-options {
  display: flex;
  flex-direction: column;
  gap: 10px;

  .product-discovery-facet__header {
    display: none;
  }

  .product-discovery-facet__title {
    font: var(--type-headline-2-default-font);
  }

  .product-discovery-facet-search {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    position: relative;

    input {
      width: 100%;
      border: 0;
      padding: 0;
      background: transparent;
      border-bottom: 1px solid var(--border-gray);
      padding-bottom: 5px;
      font-size: 1.4rem;
      color: var(--text-gray);
    }

    .icon {
      position: absolute;
      right: 0;
      top: 0;
      transform: translateY(-25%);
      color: var(--text-gray);
    }
  }

  > div {
    border: 1px solid var(--border-gray);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;

    > div {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
  }

  > div:has(> .product-discovery-facet-search) {
    flex: 1;
  }
}

.product-discovery-facet-list__facet-options--hidden {
  display: none;
}

.product-discovery-search-alert-message__content .dropin-in-line-alert.dropin-in-line-alert--warning.dropin-in-line-alert--primary {
  display: none;
}

.custom-no-results-alert__icon {
  width: 176.55px;
  height: 132px;
  flex-shrink: 0;
  background: url('/genuine-accessories/icons/Illustration.svg') no-repeat center / contain;
  display: block;
}

.search__product-list .custom-no-results-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sizing-xl);

  .custom-no-results-message__text {
    font-size: var(--fs-medium);
    font-style: normal;
    font-weight: var(--fw-600);
    line-height: var(--fs-large);
  }
}

.product-discovery-product-list .product-discovery-product-list__header {
  display: none;
}

@media only screen and (width >= 768px) {
  .product-discovery-facet-list__facet-options--hidden {
    display: flex;
  }
}

@media only screen and (width >= 768px) {
  .product-discovery-product-list__grid {
    grid-template-columns: repeat(3, 1fr);

    .plp-banner-wrapper {
      grid-column: 1 / 4;
      grid-row: 3;
    }

    .dropin-product-item-card {
      flex-direction: column;
    }
  }
}

/* Dropin pagination styles */
.dropin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xsmall);
  margin-top: var(--sizing-xl);

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

  &:has(.dropin-pagination_list-item:only-child) {
    display: none;
  }
}

.search__right-column:has(.custom-no-results-message) .search__pagination {
  display: none;
}

.dropin-pagination_list {
  display: flex;
  align-items: center;
  gap: var(--spacing-xsmall);
  margin: 0;
  padding: 0;
  list-style: none;

  li:only-child {
    display: none;
  }
}

.dropin-pagination-arrow {
  width: 32px;
  height: 32px;
  padding: var(--spacing-xsmall);
  border: 1px solid var(--color-neutral-200);
  background: transparent url('/genuine-accessories/icons/arrow_forward_FILL_black.svg') center/16px no-repeat;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.dropin-pagination-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--neutrals-bars-unselected);
}

.dropin-pagination-arrow--backward {
  transform: rotate(180deg);
}

.dropin-pagination_list-item {
  display: flex;
  width: 32px;
  height: 32px;
  padding: 5px 4px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  background: var(--tertiary-color);
  border: 1px solid var(--color-neutral-200);
  border-radius: 0;
}

.dropin-pagination_list-item button {
  color: var(--neutrals-sub-texts-paragraphs);
  text-align: center;
  font-size: var(--fs-small);
  font-style: normal;
  font-weight: var(--fw-500);
  line-height: var(--lh-20);
}

.dropin-pagination button:not(:disabled) {
  color: var(--neutrals-sub-texts-paragraphs);
}

.dropin-pagination_list-item--active {
  border: 1px solid var(--primary-variations-primary);
}

.dropin-pagination .dropin-pagination_list-item--active button {
  color: var(--primary-variations-primary);
}
