/**
 * Incremental cart layer.
 * Approved: cart heading and item count.
 * Manager preview: each next element is isolated behind its step body class.
 */
body.merchlist-cart-header-approved .ml-cart-intro {
  margin: -24px 0 22px;
  padding: 0;
}

body.merchlist-cart-header-approved .ml-cart-intro h1 {
  margin: 0;
  color: #111;
  font-family: "Rey Primary", Arial, sans-serif;
  font-size: clamp(30px, calc(3vw - 4px), 42px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1;
}

body.merchlist-cart-header-approved .ml-cart-count {
  margin: 9px 0 0;
  color: #666a70;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

@media (max-width: 767px) {
  body.merchlist-cart-header-approved .ml-cart-intro {
    margin: -16px 0 16px;
  }

  body.merchlist-cart-header-approved .ml-cart-intro h1 {
    font-size: 28px;
  }

  body.merchlist-cart-header-approved .ml-cart-count {
    font-size: 13px;
  }
}

/* Step 2 preview: preserve YITH's design; refine type and desktop width only. */
body.merchlist-cart-cashback-approved #yith-par-message-cart {
  font-family: "Rey Primary", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.4;
}

body.merchlist-cart-cashback-approved #yith-par-message-cart strong {
  font-weight: 650;
}

@media (min-width: 1025px) {
  body.merchlist-cart-cashback-approved #yith-par-message-cart {
    width: calc(65% - 50px);
  }
}

@media (max-width: 767px) {
  body.merchlist-cart-cashback-approved #yith-par-message-cart {
    font-size: 13px;
  }
}

/* Step 3 preview: refine only Rey's existing price stack. */
body.merchlist-cart-pricing-approved .woocommerce-cart-form .cart_item > .product-price,
body.merchlist-cart-pricing-approved .woocommerce-cart-form .cart_item > .product-quantity,
body.merchlist-cart-pricing-approved .woocommerce-cart-form .cart_item > .product-subtotal {
  transform: translateY(20px);
}

body.merchlist-cart-pricing-approved .woocommerce-cart-form .product-price::before {
  content: "Unit price: ";
}

body.merchlist-cart-pricing-approved .woocommerce-cart-form .product-quantity::before {
  content: "Qty: ";
}

body.merchlist-cart-pricing-approved .woocommerce-cart-form .product-subtotal::before {
  content: "Total: ";
}

body.merchlist-cart-pricing-approved .woocommerce-cart-form .product-price::before,
body.merchlist-cart-pricing-approved .woocommerce-cart-form .product-quantity::before,
body.merchlist-cart-pricing-approved .woocommerce-cart-form .product-subtotal::before {
  color: #6a6e73;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.01em;
}

body.merchlist-cart-pricing-approved .woocommerce-cart-form .product-subtotal {
  font-size: 15px;
  font-weight: 650;
}

@media (max-width: 767px) {
  body.merchlist-cart-pricing-approved .woocommerce-cart-form .cart_item > .product-price,
  body.merchlist-cart-pricing-approved .woocommerce-cart-form .cart_item > .product-quantity,
  body.merchlist-cart-pricing-approved .woocommerce-cart-form .cart_item > .product-subtotal {
    transform: none;
  }
}

/* Step 4 preview: simplify only the cart-row container. */
body.merchlist-cart-cards-approved .woocommerce-cart-form .cart_item {
  box-sizing: border-box;
  margin-bottom: 14px !important;
  border: 1px solid #e4e7ea !important;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(18, 21, 25, .04) !important;
}

/* Step 5 preview: simplify only the Order Summary shell. */
body.merchlist-cart-summary-shell-approved .rey-cartPage .cart_totals {
  border: 1px solid #e4e7ea !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(18, 21, 25, .04) !important;
}

@media (max-width: 767px) {
  body.merchlist-cart-summary-shell-approved .rey-cartPage .cart_totals {
    border-radius: 6px !important;
  }
}

/* Step 6 preview: simplify only the summary typography. */
body.merchlist-cart-summary-type-approved .rey-cartPage .cart_totals > h2::before {
  font-family: "Rey Primary", Arial, sans-serif;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.15;
}

body.merchlist-cart-summary-type-approved .rey-cartPage .cart_totals .cart-subtotal th,
body.merchlist-cart-summary-type-approved .rey-cartPage .cart_totals .estimated-delivery th::before {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: none;
}

body.merchlist-cart-summary-type-approved .rey-cartPage .cart_totals .order-total th,
body.merchlist-cart-summary-type-approved .rey-cartPage .cart_totals .order-total td {
  font-size: 18px !important;
  font-weight: 650 !important;
  letter-spacing: -.015em;
  text-transform: none;
}

/* Step 7 preview: refine only the coupon input and Apply button. */
body.merchlist-cart-coupon-approved .rey-cartPage .cart_totals .coupon .input-text,
body.merchlist-cart-coupon-approved .rey-cartPage .cart_totals .coupon .button {
  height: 42px;
  border-radius: 5px !important;
}

body.merchlist-cart-coupon-approved .rey-cartPage .cart_totals .coupon .input-text {
  padding: 8px 14px;
  border-color: #d8dde1;
  font-size: 14px;
}

body.merchlist-cart-coupon-approved .rey-cartPage .cart_totals .coupon .button {
  margin-left: 10px;
  padding: 0 18px;
  background: #eef0f2;
  color: #252a2e;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}

/* Step 8 approved: refine only the one-click discount strip. */
body.merchlist-cart-offer-approved .rey-cartPage .cart_totals .wt_sc_single_coupon {
  height: 42px;
  margin-bottom: 0;
  border-radius: 5px;
}

body.merchlist-cart-offer-approved .rey-cartPage .cart_totals .wt_sc_coupon_content,
body.merchlist-cart-offer-approved .rey-cartPage .cart_totals .wt-coupon-amount,
body.merchlist-cart-offer-approved .rey-cartPage .cart_totals .wt_sc_coupon_code {
  height: 42px;
  align-items: center;
}

body.merchlist-cart-offer-approved .rey-cartPage .cart_totals .wt-coupon-amount {
  padding-left: 46px !important;
}

body.merchlist-cart-offer-approved .rey-cartPage .cart_totals .wt_sc_coupon_amount,
body.merchlist-cart-offer-approved .rey-cartPage .cart_totals .wt_sc_coupon_amount::before,
body.merchlist-cart-offer-approved .rey-cartPage .cart_totals .wt_sc_coupon_amount::after {
  font-size: 14px !important;
  font-weight: 600;
}

body.merchlist-cart-offer-approved .rey-cartPage .cart_totals .wt_sc_coupon_code code::after {
  font-size: 13px;
  font-weight: 600;
}

/* Step 9 approved: finish the summary as one compact, responsive block. */
body.merchlist-cart-summary-finish-approved .rey-cartPage .cart_totals {
  padding: 32px 40px !important;
}

body.merchlist-cart-summary-finish-approved .rey-cartPage .cart_totals .shop_table {
  margin-bottom: 22px;
}

body.merchlist-cart-summary-finish-approved .rey-cartPage .cart_totals .shop_table th,
body.merchlist-cart-summary-finish-approved .rey-cartPage .cart_totals .shop_table td {
  padding-top: 11px;
  padding-bottom: 11px;
}

body.merchlist-cart-summary-finish-approved .rey-cartPage .cart_totals .checkout-button {
  min-height: 54px;
  padding: 16px 22px;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  letter-spacing: .01em !important;
  line-height: 1.25 !important;
  text-transform: none !important;
}

@media (max-width: 767px) {
  body.merchlist-cart-summary-finish-approved .rey-cartPage .cart_totals {
    padding: 24px 20px !important;
  }

  body.merchlist-cart-summary-finish-approved .rey-cartPage .cart_totals .checkout-button {
    min-height: 52px;
    padding: 15px 18px;
  }
}

/* Step 10 preview: simplify the lower cart CTA and promise. */
body.merchlist-cart-step-lower-cart .addnew {
  margin: 16px 0 0 -15px !important;
  padding: 0 !important;
  border: 1px solid #e4e7ea !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(18, 21, 25, .04) !important;
}

body.merchlist-cart-step-lower-cart .addnew > .elementor-container {
  min-height: 62px;
}

body.merchlist-cart-step-lower-cart .addnew .elementor-icon-box-icon {
  margin-right: 10px !important;
}

body.merchlist-cart-step-lower-cart .addnew .elementor-icon svg {
  width: 24px;
  height: 24px;
}

body.merchlist-cart-step-lower-cart .addnew .elementor-icon-box-title {
  margin: 0;
  font-family: "Rey Primary", Arial, sans-serif;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.2;
}

body.merchlist-cart-step-lower-cart .addnew .elementor-icon-box-description {
  display: none;
}

body.merchlist-cart-step-lower-cart .Merchlist-promise {
  width: 100% !important;
  margin: 12px 0 0 !important;
  border: 1px solid #e4e7ea;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

body.merchlist-cart-step-lower-cart .merchlist-cart-summary-stack {
  min-width: 0;
}

body.merchlist-cart-step-lower-cart .merchlist-cart-summary-stack > .cart_totals {
  width: 100% !important;
  margin-left: 0 !important;
}

body.merchlist-cart-step-lower-cart .Merchlist-promise > .elementor-container {
  display: grid !important;
  width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

body.merchlist-cart-step-lower-cart .Merchlist-promise .elementor-column {
  width: auto !important;
  padding: 0 !important;
  border: 0;
  border-left: 1px solid #e4e7ea;
  border-radius: 0;
  background: transparent;
}

body.merchlist-cart-step-lower-cart .Merchlist-promise .elementor-column:first-child {
  border-left: 0;
}

body.merchlist-cart-step-lower-cart .Merchlist-promise .elementor-icon-box-wrapper {
  display: flex;
  height: 58px;
  min-height: 58px;
  align-items: center;
  padding: 10px 14px;
}

body.merchlist-cart-step-lower-cart .Merchlist-promise .elementor-icon-box-icon {
  flex: 0 0 28px;
  margin-right: 9px !important;
}

body.merchlist-cart-step-lower-cart .Merchlist-promise .elementor-icon,
body.merchlist-cart-step-lower-cart .Merchlist-promise .elementor-icon svg {
  width: 28px;
  height: 28px;
}

body.merchlist-cart-step-lower-cart .Merchlist-promise .elementor-icon-box-title {
  margin: 0;
  font-family: "Rey Primary", Arial, sans-serif;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.25;
}

body.merchlist-cart-step-lower-cart .Merchlist-promise .elementor-icon-box-description {
  display: none;
}

@media (max-width: 767px) {
  body.merchlist-cart-step-lower-cart .addnew {
    margin: 12px 0 0 !important;
  }

  body.merchlist-cart-step-lower-cart .addnew > .elementor-container {
    min-height: 58px;
  }

  body.merchlist-cart-step-lower-cart .Merchlist-promise {
    margin: 8px 0 0 !important;
  }

  body.merchlist-cart-step-lower-cart .Merchlist-promise > .elementor-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.merchlist-cart-step-lower-cart .Merchlist-promise .elementor-icon-box-wrapper {
    min-height: 72px;
    padding: 9px 6px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  body.merchlist-cart-step-lower-cart .Merchlist-promise .elementor-icon-box-icon {
    flex-basis: auto;
    margin: 0 0 5px !important;
  }

  body.merchlist-cart-step-lower-cart .Merchlist-promise .elementor-icon,
  body.merchlist-cart-step-lower-cart .Merchlist-promise .elementor-icon svg {
    width: 24px;
    height: 24px;
  }

  body.merchlist-cart-step-lower-cart .Merchlist-promise .elementor-icon-box-title {
    font-size: 11px;
    line-height: 1.15;
  }
}

@media (max-width: 1024px) {
  body.merchlist-cart-step-lower-cart .merchlist-cart-summary-stack {
    flex: 0 0 100%;
    width: 100%;
  }
}

@media (min-width: 1025px) {
  body.merchlist-cart-step-lower-cart .addnew {
    width: calc(65% - 50px) !important;
  }

  body.merchlist-cart-step-lower-cart .merchlist-cart-summary-stack {
    flex: 0 0 35%;
    width: 35%;
    margin-left: 50px;
    align-self: flex-start;
    position: sticky;
    top: 200px;
  }

  body.merchlist-cart-step-lower-cart .merchlist-cart-summary-stack > .cart_totals {
    position: static !important;
  }
}

/* Step 11 preview (lower-quiet): a quiet lower cart.
   Add another product becomes a calm continuation of the item column and the
   Merchlist Promise becomes an unboxed reassurance list beneath Order Summary.
   Nothing here touches the approved Step 1-9 layers or the Woo/Lumise rows. */
body.merchlist-cart-step-lower-quiet .addnew {
  margin: 14px 0 60px -15px !important;
  padding: 0 !important;
  border: 1px solid #e4e7ea !important;
  border-radius: 6px !important;
  background-color: #fff !important;
  background-image: none !important;
  box-shadow: 0 1px 2px rgba(18, 21, 25, .04) !important;
}

body.merchlist-cart-step-lower-quiet .addnew > .elementor-container {
  width: 100% !important;
  min-height: 64px;
  margin: 0 !important;
}

body.merchlist-cart-step-lower-quiet .addnew .elementor-widget-container {
  display: block;
  width: 100%;
}

body.merchlist-cart-step-lower-quiet .addnew .elementor-element {
  text-align: left;
}

body.merchlist-cart-step-lower-quiet .addnew .elementor-icon-box-wrapper {
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0 !important;
  text-align: left;
}

body.merchlist-cart-step-lower-quiet .addnew .elementor-icon-box-icon {
  flex: 0 0 22px !important;
  width: 22px !important;
  margin: 0 12px 0 0 !important;
}

body.merchlist-cart-step-lower-quiet .addnew .elementor-icon,
body.merchlist-cart-step-lower-quiet .addnew .elementor-icon svg {
  width: 22px;
  height: 22px;
}

body.merchlist-cart-step-lower-quiet .addnew .elementor-icon-box-title {
  margin: 0;
  color: #111;
  font-family: "Rey Primary", Arial, sans-serif;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.3;
}

body.merchlist-cart-step-lower-quiet .addnew .elementor-icon-box-description {
  margin: 2px 0 0;
  color: #6a6e73;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

body.merchlist-cart-step-lower-quiet .merchlist-cart-summary-stack {
  min-width: 0;
}

body.merchlist-cart-step-lower-quiet .merchlist-cart-summary-stack > .cart_totals {
  width: 100% !important;
  margin-left: 0 !important;
}

body.merchlist-cart-step-lower-quiet .Merchlist-promise {
  width: 100% !important;
  margin: 22px 0 0 !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
}

body.merchlist-cart-step-lower-quiet .Merchlist-promise > .elementor-container {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

body.merchlist-cart-step-lower-quiet .Merchlist-promise .elementor-column {
  width: 100% !important;
  padding: 0 !important;
  border: 0;
}

body.merchlist-cart-step-lower-quiet .Merchlist-promise .elementor-widget-wrap {
  padding: 0 !important;
}

body.merchlist-cart-step-lower-quiet .Merchlist-promise .elementor-icon-box-wrapper {
  display: flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 0;
  gap: 0 !important;
}

body.merchlist-cart-step-lower-quiet .Merchlist-promise .elementor-column:last-child .elementor-icon-box-wrapper {
  margin-bottom: 0;
}

body.merchlist-cart-step-lower-quiet .Merchlist-promise .elementor-icon-box-icon {
  flex: 0 0 24px !important;
  width: 24px !important;
  margin: 0 16px 0 0 !important;
}

body.merchlist-cart-step-lower-quiet .Merchlist-promise .elementor-icon,
body.merchlist-cart-step-lower-quiet .Merchlist-promise .elementor-icon svg {
  width: 24px !important;
  height: 24px !important;
}

body.merchlist-cart-step-lower-quiet .Merchlist-promise .elementor-icon-box-title {
  margin: 0;
  color: #252a2e;
  font-family: "Rey Primary", Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.3;
}

body.merchlist-cart-step-lower-quiet .Merchlist-promise .elementor-icon-box-description {
  margin: 3px 0 0;
  color: #6a6e73;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

@media (max-width: 1024px) {
  body.merchlist-cart-step-lower-quiet .merchlist-cart-summary-stack {
    flex: 0 0 100%;
    width: 100%;
  }

  body.merchlist-cart-step-lower-quiet .addnew {
    width: auto !important;
  }
}

@media (max-width: 767px) {
  body.merchlist-cart-step-lower-quiet .addnew {
    margin: 12px 0 48px !important;
  }

  body.merchlist-cart-step-lower-quiet .Merchlist-promise {
    margin-top: 20px !important;
  }

  body.merchlist-cart-step-lower-quiet .Merchlist-promise .elementor-icon-box-wrapper {
    margin-bottom: 14px;
  }

  /* Elementor's mobile Promise section carries the claim in the description
     field and has no title, so the description is the label at this width. */
  body.merchlist-cart-step-lower-quiet .Merchlist-promise .elementor-icon-box-description {
    margin: 0;
    color: #252a2e;
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: -.01em;
    line-height: 1.3;
  }
}

@media (min-width: 1025px) {
  body.merchlist-cart-step-lower-quiet .addnew {
    width: calc(65% - 50px) !important;
  }

  body.merchlist-cart-step-lower-quiet .merchlist-cart-summary-stack {
    flex: 0 0 35%;
    width: 35%;
    margin-left: 0;
    align-self: flex-start;
    position: sticky;
    top: 200px;
  }

  body.merchlist-cart-step-lower-quiet .merchlist-cart-summary-stack > .cart_totals {
    position: static !important;
  }
}
