.cart-drawer-upsell-list {
  padding: 0 1rem;
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;

  .cart-drawer-upsell-btn {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;

    .cart-drawer-upsell-icon {
      opacity: 0;
    }

    &:has(.loading__spinner.hidden) {
      .cart-drawer-upsell-icon {
        opacity: 1;
      }
    }
  }

  .cart-drawer-upsell-btn-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  @media screen and (max-width: 990px) {
    flex-direction: row;
    overflow-x: scroll;
    padding: 0 2rem;
  }

  .cart-drawer-upsell-list-item  {
    padding: 1rem;
    display: flex;
    max-width: 300px;
    gap: 1rem;
    width: 100%;

    @media screen and (max-width: 990px) {
      min-width: 300px;
    }

    .product-option {
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }

    .lumin-wrapper {
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
    }

    .cart-item__name {
      margin-bottom: 0.6rem;
    }

    .cart-drawer-upsell-list-item-left {
      flex: 0.5;
    }

    .cart-drawer-upsell-list-item-right {
      flex: 1;
      gap: 1.6rem;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
  }

  button.button--primary {
    width: fit-content;
    min-width: fit-content;
  }
}

.upsell-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;

  &:has(.cart-drawer-upsell-list:empty) {
    .loading__spinner-main {
      display: block;
    }
  }

  .loading__spinner-main {
    display: none;
    height: auto;
    width: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    @media screen and (max-width: 990px) {
      position: relative;
      transform: translate(-100%, -100%);
    }
  }
}

.drawer__inner-upsell {
  overflow-y: scroll;

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

.drawer__inner-mobile-upsell {
  display: none;

  @media screen and (max-width: 990px) {
    display: block;
    margin-top: auto;
  }
}

.is-empty .drawer__inner-upsell,
.is-empty .drawer__inner-mobile-upsell {
  display: none;
}