.compare {
  max-width: 100%;
  padding-right: 0;

  @media screen and (min-width: 990px) {
    padding-inline: 8rem 0;
  }
}

.product-compare-slider {
  display: block;
  width: 100%;
  position: relative;
}

/* Header */
.compare-header {
  margin-bottom: 21px;

  @media screen and (min-width: 750px) {
    padding-right: 8rem;
  }

  @media screen and (min-width: 990px) {
    margin-bottom: 26px;
  }

  .compare-title {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.048rem;
    text-wrap: balance;
  }
}

/* Slider */
.compare-slider.slider {
  gap: 11px;
  margin-block: 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;

  @media screen and (min-width: 750px) {
    margin: 0;
  }

  @media screen and (min-width: 990px) {
    display: flex;
    gap: 16px;
    scroll-snap-type: none !important;
  }

  * {
    user-select: none;
  }
 
  &:active {
    cursor: grabbing;
  }

  .compare-product {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 80%;
    padding-inline: 12px;
    padding-bottom: 20px;
    background-color: var(--color-background, #FFF);

    @media screen and (min-width: 990px) {
      width: calc(33.333333% - 4rem);
      max-width: calc(33.333333% - 4rem);
    }

    &.this-product {
      border: 1px solid var(--philips-blue, #3271D9);

      .product-badge {
        background-color: var(--color-styleguide-background-light, #F5F6F7);
      }
    }

    .slider.slider--mobile &.slider__slide {
      padding-bottom: 20px;
    }

    .product-header {
      flex: 1;

      .product-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 17px;
        color: var(--philips-blue, #3271D9);
        font-size: 1.2rem;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
        text-transform: uppercase;

        @media screen and (min-width: 990px) {
          padding-inline: 23px;
        }
      }
    }

    .product-img-link {
      display: block;
    }

    .product-img {
      margin-bottom: 14px;
      background-color: var(--color-styleguide-background-light, #F5F6F7);

      img {
        display: block;
        width: 100%;
        height: auto;
      }
    }

    .compare-product-title {
      margin-bottom: 14px;

      .product-title {
        margin-block: 0 10px;
        line-height: 1.2;
      }
    }

    /* Attributes */
    .product-attributes {
      border-bottom: 1px solid var(--philips-light-stroke, #CCC);

      .product-attribute-title {
        padding-top: 8px;
        border-top: 1px solid var(--philips-light-stroke, #CCC);
        margin: 0;
        color: var(--philips-text-secondary, #6C7584);
        font-size: 1.2rem;
        font-weight: 500;
        line-height: 1.2;
        text-transform: uppercase;
      }

      .product-attribute-value {
        padding-bottom: 8px;
        margin: 0;
        color: var(--philips-text-primary, #343434);
        font-size: 1.6rem;
        font-weight: 400;
        line-height: 1.6;
      }

      .product-attribute-price-value {
        display: flex;
        gap: 8px;

        .compare-at {
          color: var(--philips-text-secondary, #6C7584);
        }
      }
    }

    a,
    button {
      pointer-events: auto;
      user-select: auto;
      -webkit-user-select: auto;
    }

    a {
      color: var(--philips-blue, #3271D9);
      font-weight: 400;
      text-decoration: underline;
    }

    .compare-all-features {
      margin-top: 14px;
    }
  }
}

/* Dots navigation */
.compare-slider-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;

  @media screen and (min-width: 990px) {
    display: none;
  }

  .slider-button {
    &[disabled] {
      cursor: not-allowed;
    }
  }

  .slider-counter {
    display: flex;
    gap: 10px;
    min-width: unset;
    margin: 0;
  }

  .slider-dot {
    width: 0.8rem;
    height: 0.8rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--philips-light-stroke);
    transition: background-color 0.3s ease;

    &:hover {
      cursor: pointer;

      @media screen and (hover: hover) and (min-width: 990px) {
        opacity: 0.7;
      }
    }

    &.slider-dot--active,
    &[aria-current] {
      background: var(--philips-text-primary);
    }
  }
}

/* Arrow Navigation */
.compare .slider-controls {
  display: none;

  @media screen and (min-width: 990px) {
    display: block;
  }

  .slider-control--prev {
    left: -35px;
  }
}
