.cart-drawer__dialog {
  --color-background: var(--beige);
  background-color: var(--beige);
}

.cart-drawer__dialog .drawer__heading {
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  color: var(--black, #251E1B);
  text-transform: none;

  @media screen and (min-width: 990px) {
    font-size: 20px;
  }
}

.cart-drawer__dialog .cart-drawer__heading {
  margin-inline: auto;
  max-width: 280px;
  width: 100%;
  display: flex;
  justify-content: center;
  font-family: var(--font-body-family-custom) !important;
  font-size: 24px;
  font-weight: 500 !important;
  line-height: normal;
  color: var(--black, #251E1B);
  text-align: center;

  &.cart-drawer__heading--empty {
    font-size: 20px;
    text-transform: uppercase;

    @media screen and (min-width: 990px) {
      font-size: 24px;
    }
  }
}

.cart-drawer__dialog .cart-drawer__items {
  padding-top: 16px;
  padding-inline: 16px;
  mask-image: none !important;
}

.cart-drawer__dialog .cart-title-price {
  gap: 10px;
}

@media screen and (min-width: 990px) {
  .cart-drawer__dialog .cart-drawer__items {
    padding-top: 24px;
    padding-inline: 24px;
  }
}

.cart-drawer__dialog .cart-drawer__items .cart-items__table-row {
  margin-top: 16px;
  padding-top: 0;
  padding-bottom: 16px;
  border-top: 0;
  border-bottom: 1px solid var(--black-10, rgba(37, 30, 27, 0.10));
  gap: 12px;
  align-items: normal;

  &:first-child {
    margin-top: 0;
  }

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

.cart-drawer__dialog .cart-drawer__items .cart-items__table-row .cart-items__media {
  width: 93px;
  min-width: auto;
  height: 96px;
  flex-shrink: 0;
}

@media screen and (min-width: 990px) {
  .cart-drawer__dialog .cart-drawer__items .cart-items__table-row .cart-items__media {
    width: 123px;
    height: 128px;
  }
}

.cart-drawer__dialog .cart-drawer__items .cart-items__table-row .cart-items__details {
  display: flex;
  flex-direction: column;
}

.cart-drawer__dialog .cart-drawer__items .cart-items__table-row .cart-items__title {
  max-width: 200px;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  color: var(--black, #251E1B);
}

.cart-drawer__dialog .cart-drawer__items .cart-items__table-row .cart-title-price text-component {
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  color: var(--black-80-1);
}

.cart-drawer__dialog .cart-drawer__items .cart-items__table-row .cart-title-price .cart-items__price-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: 0;
  white-space: nowrap;

  &:has(.compare-at-price) {
    flex-direction: row-reverse;

    .price {
      color: var(--red);
    }
  }

  .compare-at-price {
    color: var(--black-50);
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    text-decoration-line: line-through;
    text-decoration-thickness: 1px;
    opacity: 1;
  }

  .price {
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    color: var(--black-80-1);
  }
}

.cart-drawer__dialog .cart-drawer__items .cart-items__table-row .cart-items__variants {
  margin-top: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-drawer__dialog .cart-drawer__items .cart-items__bundle {
  margin-top: 12px;
}

.cart-drawer__dialog .cart-drawer__items .cart-items__bundle li {
  font-family: var(--font-family-custom);
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  margin: 0;

  &:first-child {
    display: none;

    &+li {
      margin-top: 0;
    }
  }

  &+li {
    margin-top: 8px;
  }
}

.cart-drawer__dialog .cart-drawer__items .cart-items__table-row .cart-items__variant dd {
  display: flex;
  gap: 4px;

  span {
    /*display: block;*/
    font-family: var(--font-family-custom);
    font-size: 12px;
    font-weight: 500;
    line-height: normal;

    &:first-child {
      color: var(--black-50, rgba(37, 30, 27, 0.50));
    }

    &:last-child {
      color: var(--black, #251e1b);
    }
  }
}

.cart-drawer__dialog .cart-drawer__items .cart-items__table-row .qnt-remove {
  margin-top: auto;
}

.cart-drawer__dialog .cart-drawer__items .cart-items__table-row .qnt-remove .quantity-selector {
  max-width: 53px;
  height: auto;
  border: none;
  background-color: transparent;
  border-radius: 0 !important;
}

.cart-drawer__dialog .cart-drawer__items .cart-items__table-row .qnt-remove .quantity-selector :is(.quantity-minus, .quantity-plus) {
  width: 16px;
  height: 16px;
  padding: 2px;
  transition: background-color .3s ease;
  border-radius: 0 !important;

  @media (hover:hover) {
    &:hover {
      background-color: var(--black-70);

      svg path {
        fill: var(--white);
        fill-opacity: 1;
      }
    }
  }
}

.cart-drawer__dialog .cart-drawer__items .cart-items__table-row .qnt-remove .quantity-selector input[type=number] {
  min-width: auto;
  width: 12px;
  color: var(--black, #251E1B);
  font-family: var(--font-body-family-custom);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding: 0;
}

.cart-drawer__dialog .cart-drawer__items .cart-items__table-row .qnt-remove .cart-items__remove {
  margin-left: auto;
  width: auto;
  height: auto;
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  color: var(--black-50, rgba(37, 30, 27, 0.50));
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: text-decoration-color .3s, color .3s ease;
}

.cart-drawer__dialog .cart-drawer__items .cart-items__table-row .qnt-remove .cart-items__remove {
  @media (hover: hover) {
    &:hover {
      text-decoration-color: transparent;
      color: var(--black);
    }
  }
}

.cart-drawer__dialog .cart-drawer__items .cart-items__table-row .qnt-remove .product-card-wishlist-button {
  position: static;
  margin-left: 16px;
  width: 16px;
  height: 16px;
  background-color: transparent;

  .wishlist-icon {
    align-items: center;
    justify-content: center;
  }

  .wishlist-icon--off {
    display: flex;
  }

  .wishlist-icon--on {
    display: none;
  }

  &.is-active {
    .wishlist-icon--off {
      display: none;
    }

    .wishlist-icon--on {
      display: flex;
    }
  }

  @media (hover: hover) {
    &:not(.is-active):is(:hover, :focus-visible) {
      .wishlist-icon--off {
        display: none;
      }

      .wishlist-icon--on {
        display: flex;
      }
    }

    &.is-active:is(:hover, :focus-visible) {
      .wishlist-icon--off {
        display: flex;
      }

      .wishlist-icon--on {
        display: none;
      }
    }
  }
}

/* summary block */

.cart-drawer__dialog .cart-drawer__summary {
  padding: 16px;
  gap: 20px;
  border-top: 1px solid var(--black-10, rgba(37, 30, 27, 0.10));
  mask-image: none;
}

@media screen and (min-width: 990px) {
  .cart-drawer__dialog .cart-drawer__summary {
    padding: 24px;
  }
}

.cart-drawer__dialog .cart-drawer__summary .cart__summary-totals {
  padding: 0;
  margin: 0;
  border: 0;
}

.cart-drawer__dialog .cart-drawer__summary .cart__summary-totals .cart__summary-item.cart__total {
  padding: 0;
  border: 0;
}

.cart-drawer__dialog .cart-drawer__summary .cart__summary-totals .cart__summary-item.cart__total .cart__total-label {
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: var(--black-50, rgba(37, 30, 27, 0.50));
  text-transform: none;
}

.cart-drawer__dialog .cart-drawer__summary .cart__summary-totals .cart__summary-item.cart__total .cart__total-value {
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: var(--black, #251E1B);
}

.cart-drawer__dialog .cart-drawer__summary .cart__checkout-button {
  padding: 12px 24px;
  height: auto;
  font-family: var(--font-family-custom);
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: var(--white, #FFF);
  text-transform: none;
}