.comparable-btn {
  display: none !important;
}

.cart-notification-wrapper {
  position: relative;
}

.cart-notification-wrapper .cart-notification {
  display: block;
  z-index: 8;
}

.cart-notification {
  padding: 2rem;
  max-width: 48rem;
  max-height: calc(100vh - 8rem);
  overflow: auto;
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  visibility: hidden;
  width: 100%;
  box-shadow: var(--popup-shadow-horizontal-offset) var(--popup-shadow-vertical-offset) var(--popup-shadow-blur-radius)
    rgba(var(--color-shadow), var(--popup-shadow-opacity));
  z-index: -1;
  --duration-short: 0.3s;
  transition: transform var(--duration-short) ease;
}

.cart-notification.focused {
  box-shadow: 0 0 0.2rem 0 rgba(var(--color-foreground), 0.3),
    var(--popup-shadow-horizontal-offset) var(--popup-shadow-vertical-offset) var(--popup-shadow-blur-radius)
      rgba(var(--color-shadow), var(--popup-shadow-opacity));
}

.cart-notification:focus-visible {
  box-shadow: 0 0 0.2rem 0 rgba(var(--color-foreground), 0.3),
    var(--popup-shadow-horizontal-offset) var(--popup-shadow-vertical-offset) var(--popup-shadow-blur-radius)
      rgba(var(--color-shadow), var(--popup-shadow-opacity));
}

@media screen and (min-width: 1200px) {
  .header-wrapper:not(.header-wrapper--border-bottom) + cart-notification .cart-notification {
    border-top-width: var(--popup-border-width);
  }
}

.cart-notification-wrapper:is(.page-width) > .cart-notification.active {
  visibility: visible;
  bottom: 4rem;
  transform: translateX(-50%) translateY(0);
}

@media screen and (min-width: 768px) {
  .cart-notification {
    transform: translateX(0) translateY(100%);
    bottom: 0;
  }
  .cart-notification-wrapper:is(.page-width) > .cart-notification.active {
    position: fixed;
    left: auto;
    right: 4rem;
    bottom: 4rem;
    transform: translateX(0) translateY(0);
  }
}

.cart-notification.animate {
  transition: transform var(--duration-short) ease;
}

.cart-notification__heading {
  align-items: center;
  display: flex;
  flex-grow: 1;
  margin-bottom: 0;
  margin-top: 0;
  &:before {
    content: '';
    background: var(--color-gold) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="14" viewBox="0 0 17 14" fill="none"><path d="M1.41357 7.63241L5.58024 12.0769L14.7469 1.41019" stroke="%23181818" stroke-width="2" stroke-miterlimit="10" stroke-linecap="square"/></svg>') no-repeat center center;
    background-size: 1.4rem;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1.2rem;
    @media screen and (min-width: 768px) {
      width: 3.2rem;
      height: 3.2rem;
      background-size: 2rem;
    }
  }
}

.cart-notification__close.modal__close-button {
  width: 3.2rem;
  height: 3.2rem;
  .icon {
    width: 100%;
    height: 100%;
  }
  .svg-wrapper,
  .modal__close-button .icon{
    width: 3.2rem;
    height: 3.2rem;
    @media screen and (min-width: 768px) {
      width: 4rem;
      height: 4rem;
    }
  }
  @media screen and (min-width: 768px) {
    width: 4rem;
    height: 4rem;
  }
}

.cart-notification-product__details {
  flex: 1 1 0%;
}

.cart-notification-product__image:after {
  content: none;
}

@media screen and (min-width: 1200px) {
  .cart-notification-product__image {
    margin-top: 0.5rem;
  }
}

cart-notification .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 7;
  height: 100vh;

  &.show::after {
    top: unset;
  }
}

/* Slider adjustments for cart notification upsell */

cart-notification .slider-component-full-width .contains-card {
  --grid-desktop-horizontal-spacing: 0.5rem;
  margin: 0;
}

cart-notification .arrows-on-tiles .slider-button.tile-arrow.slider-button--prev {
  left: 0;
}

cart-notification .arrows-on-tiles .slider-button.tile-arrow.slider-button--next {
  right: 0;
}

.cart-notification__upsell {
  .product-card-wrapper {
    background: #F5F5F5;
    padding: 0.8rem;
    .card:not(.ratio) {
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
    }
    .card--standard .card__inner {
      background: transparent;
    }
    .card__information {
      padding: 0;
      .card__heading {
        font-size: var(--text-base);
        line-height: 1.2;
        font-weight: var(--font-weight-semibold);
        text-align: left;
        margin: 0;
        a {
          line-height: inherit;
          text-decoration: none;
        }
      }
      .price__container {
        margin-top: 0.8rem;
      }
      .price__regular .price-item--regular{
        font-size: var(--text-base);
        line-height: var(--text-base--line-height);
        font-weight: var(--font-weight-semibold);
      }
    }
    .card-information {
      > *:empty{
        display: none;
      }
      > *:not(.visually-hidden:first-child) + *:not(.rating):not(.card__information-volume-pricing-note) {
        margin-top: 0;
      }
      .colors-count {
        margin-top: 0.2rem!important;
      }
    }
    .quick-add__submit {
      margin: 0 !important;
      padding: 0.4rem 0.85rem;
      min-height: 27px;
      border-radius: var(--radius-32);
    }
  }
  product-recommendations {
    .slider {
      scrollbar-width: unset;
      scrollbar-color: unset;
      &::-webkit-scrollbar {
        height: 0.4rem;
        width: 0.4rem;
        display: block;
      }

      &::-webkit-scrollbar-thumb {
        background-color: color-mix(in srgb, var(--color-black), transparent 40%);
        border-radius: 0.4rem;
        border: 0;
      }

      &::-webkit-scrollbar-track {
        background: color-mix(in srgb, var(--color-black), transparent 80%);
        border-radius: 0.4rem;
      }
    }
  }
  product-recommendations .collection__title {
    padding: 0;
    margin-top: 0;
    margin-bottom: 1.6rem;
    h3.title {
      margin: 0;
      font-size: var(--text-h6);
      line-height: var(--text-h6--line-height);
      font-weight: var(--font-weight-semibold);
      text-align: left;
    }
  }
  product-recommendations .slider-buttons {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: -16px;
    transform: translateY(-100%);
    gap: 0.8rem;
    .slider-button.tile-arrow {
      position: relative;
      display: block;
      top: auto;
      left: auto;
      transform: none;
      width: 2rem;
      height: 2rem;
      &:focus {
        box-shadow: none;
      }
      &[disabled] {
        color: color-mix(in srgb, var(--color-black), transparent 60%);
        opacity: 0.6;
        cursor: not-allowed;
      }
      &.slider-button--prev {
        &:before {
          content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M17.5 10H2.5H2.91667" stroke="%23181818" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="square"/><path d="M8.33333 15.8333L2.5 10L8.33333 4.16667" stroke="%23181818" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="square"/></svg>');
          background: none;
          right: 0;
        }
      }
      &.slider-button--next {
        &:before {
          content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M2.5 10H17.5H17.0833" stroke="%23181818" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="square"/><path d="M11.6667 15.8333L17.5001 10L11.6667 4.16667" stroke="%23181818" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="square"/></svg>');
          background: none;
          left: 0;
        }
      }
    }
  }
  @media screen and (max-width: 767px) {
    product-recommendations:not(.is-accordion) slider-component.slider-component-full-width {
      margin-right: -2rem;
    }
    product-recommendations:not(.is-accordion) .slider-buttons{
      padding-right: 2rem;
    }
  }
}