/* Cart drawer and checkout order summary. */
@media screen and (min-width: 768px) {
  .modal--cart .modal__container {
    width: 50vw;
  }
}

.modal--cart .cart_item,
.order .cart__list .cart_item {
  position: relative;
}

.modal--cart .cart_item__image,
.order .cart__list .cart_item__image {
  background: #f7f7f7;
}

.cart_item__actions {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  display: flex;
  gap: 1rem;
}

.cart_item__action {
  display: flex;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  color: #242c34;
}

.cart_item__action svg {
  display: block;
  width: 2.6rem;
  height: 2.6rem;
}

.cart_item__action:hover,
.cart_item__action.is-active {
  color: #874def;
}

.cart_item__action:hover circle,
.cart_item__action.is-active circle {
  fill: #f1ebff;
}

.cart_item__action.is-active path {
  fill: #874def;
  stroke: #874def;
}

.cart_item__meta {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

.cart_item__category {
  color: #242c34;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5rem;
  text-transform: uppercase;
}

.cart_item__preorder {
  margin: 0;
  color: #ff01a1;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5rem;
  text-transform: uppercase;
}

.cart_item__preorder::before {
  margin-right: 0.6rem;
  color: #242c34;
  content: '•';
}

.cart_loyalty,
.order_total__loyalty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.4rem 0;
  padding-top: 2.4rem;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 2rem;
}

/* Keep the rewards row on the same vertical grid as the cart summary. */
.modal--cart .cart_loyalty {
  margin: 0 4rem 2.4rem;
  padding-top: 0;
}

.modal--cart .cart_info {
  margin-bottom: 2.4rem;
}

.cart_loyalty__label,
.order_total__loyalty-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.cart_loyalty__icon,
.order_total__loyalty-icon {
  width: 1.6rem;
  height: 1.6rem;
}

.cart_loyalty__value,
.order_total__loyalty-value {
  color: #242c34;
}

.modal--cart .related .catalog_item__category {
  margin-bottom: 0.3rem;
  font-size: 1rem;
  line-height: 1.3rem;
}

.modal--cart .related .catalog_item__price {
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.modal--cart .related .catalog_item__discount {
  padding: 0.1rem 0.3rem;
  font-size: 1rem;
  line-height: 1.4rem;
}

@media screen and (max-width: 767px) {
  .modal--cart .cart_loyalty {
    margin-right: 2rem;
    margin-left: 2rem;
  }

  .cart_item__actions {
    gap: 0.5rem;
  }
}
