/* Cart UX Controller 1.1.0 — scoped to the cart page */

body#cart .cart-item,
body.page-cart .cart-item {
  padding: 22px 18px;
  border-bottom: 1px solid #eceff3;
  background: #fff;
}

body#cart .cart-item:last-child,
body.page-cart .cart-item:last-child {
  border-bottom: 0;
}

body#cart .cart-item .product-line-grid,
body.page-cart .cart-item .product-line-grid {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 330px;
  align-items: center;
  gap: 24px;
  margin: 0;
}

body#cart .cart-item .product-line-grid-left,
body#cart .cart-item .product-line-grid-body,
body#cart .cart-item .product-line-grid-right,
body.page-cart .cart-item .product-line-grid-left,
body.page-cart .cart-item .product-line-grid-body,
body.page-cart .cart-item .product-line-grid-right {
  width: auto;
  max-width: none;
  padding: 0;
  float: none;
}

body#cart .cart-item .product-image,
body.page-cart .cart-item .product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 116px;
  padding: 10px;
  border: 1px solid #eceff4;
  border-radius: 14px;
  background: #fff;
}

body#cart .cart-item .product-image img,
body.page-cart .cart-item .product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

body#cart .cart-item .product-title h6,
body.page-cart .cart-item .product-title h6 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: #1c2230;
}

body#cart .cart-item .product-price-and-shipping,
body.page-cart .cart-item .product-price-and-shipping {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body#cart .cart-item .product-price-and-shipping .price,
body.page-cart .cart-item .product-price-and-shipping .price {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

body#cart .cart-item .regular-price,
body.page-cart .cart-item .regular-price {
  font-size: 13px;
  color: #8a9099;
}

body#cart .cart-item .discount,
body.page-cart .cart-item .discount {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff4e8;
  color: #d96a00;
  font-size: 11px;
  font-weight: 800;
}

body#cart .cart-item .product-line-actions > .row,
body.page-cart .cart-item .product-line-actions > .row {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  gap: 14px;
  margin: 0;
}

body#cart .cart-item .tvcart-incr-decr-price,
body.page-cart .cart-item .tvcart-incr-decr-price {
  width: auto;
  padding: 0;
  display: grid;
  grid-template-columns: 100px 112px;
  align-items: center;
  justify-content: end;
  gap: 16px;
}

body#cart .cart-item .product-price,
body.page-cart .cart-item .product-price {
  display: block;
  text-align: right;
}

body#cart .cart-item .product-price strong,
body.page-cart .cart-item .product-price strong {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

body#cart .cart-item .bootstrap-touchspin,
body.page-cart .cart-item .bootstrap-touchspin {
  display: grid;
  grid-template-columns: 1fr 34px;
  width: 112px;
  height: 38px;
  border: 1px solid #dbe1e8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

body#cart .cart-item .js-cart-line-product-quantity,
body.page-cart .cart-item .js-cart-line-product-quantity {
  width: 100%;
  height: 38px;
  border: 0;
  box-shadow: none;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  background: #fff;
}

body#cart .cart-item .input-group-btn-vertical,
body.page-cart .cart-item .input-group-btn-vertical {
  position: static;
  display: grid;
  grid-template-rows: 1fr 1fr;
  width: 34px;
  height: 38px;
  border-left: 1px solid #e2e8f0;
}

body#cart .cart-item .btn-touchspin,
body.page-cart .cart-item .btn-touchspin {
  position: static;
  width: 34px;
  min-width: 34px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
}

body#cart .cart-item .btn-touchspin:first-child,
body.page-cart .cart-item .btn-touchspin:first-child {
  border-bottom: 1px solid #e2e8f0;
}

body#cart .cart-item .tv-cart-delete-icon-wrapper,
body.page-cart .cart-item .tv-cart-delete-icon-wrapper {
  width: 44px;
  padding: 0;
}

body#cart .cart-item .remove-from-cart,
body.page-cart .cart-item .remove-from-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8fafc;
  color: #6b7280;
  transition: background-color .2s ease, color .2s ease;
}

body#cart .cart-item .remove-from-cart:hover,
body.page-cart .cart-item .remove-from-cart:hover {
  background: #fff1f2;
  color: #d11a2a;
}

body#cart .cart-item .cart-ux-controller__status,
body.page-cart .cart-item .cart-ux-controller__status {
  display: inline-block;
  margin-left: .4rem;
  font-size: .75rem;
  line-height: 1.2;
  opacity: .65;
  vertical-align: middle;
}

body#cart .cart-item .cart-ux-controller__error,
body.page-cart .cart-item .cart-ux-controller__error {
  display: block;
  margin-top: .35rem;
  color: #b00020;
  font-size: .75rem;
  line-height: 1.3;
}

/* Summary */
body#cart .cart-summary,
body.page-cart .cart-summary {
  position: sticky;
  top: 18px;
  border: 1px solid #e6eaf0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 26, 39, .06);
}

body#cart .cart-summary .card-block,
body.page-cart .cart-summary .card-block {
  padding: 18px 18px 16px;
}

body#cart .cart-summary .card-block:first-child,
body.page-cart .cart-summary .card-block:first-child {
  padding: 16px 16px 12px;
}

body#cart #cart-subtotal-products,
body#cart #cart-subtotal-shipping,
body.page-cart #cart-subtotal-products,
body.page-cart #cart-subtotal-shipping {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 24px;
  margin-bottom: 11px;
}

body#cart #cart-subtotal-products .label,
body#cart #cart-subtotal-shipping .label,
body.page-cart #cart-subtotal-products .label,
body.page-cart #cart-subtotal-shipping .label {
  text-align: left;
  font-size: 13px;
  color: #667085;
}

body#cart #cart-subtotal-products .value,
body#cart #cart-subtotal-shipping .value,
body.page-cart #cart-subtotal-products .value,
body.page-cart #cart-subtotal-shipping .value {
  min-width: 94px;
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  color: #182230;
}

body#cart #cart-subtotal-shipping .value,
body.page-cart #cart-subtotal-shipping .value {
  color: #16854b;
}

body#cart .cart-summary-line.cart-total,
body.page-cart .cart-summary-line.cart-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 10px 0 0;
  padding-top: 14px;
  border-top: 1px solid #edf1f5;
}

body#cart .cart-summary-line.cart-total .label,
body.page-cart .cart-summary-line.cart-total .label {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

body#cart .cart-summary-line.cart-total .value,
body.page-cart .cart-summary-line.cart-total .value {
  min-width: 120px;
  text-align: right;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  color: #101828;
}

body#cart .cart-summary .separator,
body.page-cart .cart-summary .separator {
  margin: 0;
  border-color: #edf1f5;
}

body#cart .cart-voucher,
body.page-cart .cart-voucher {
  padding: 0 16px 16px;
}

body#cart .cart-voucher > p,
body.page-cart .cart-voucher > p {
  margin: 0;
}

body#cart .promo-code-button,
body.page-cart .promo-code-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 11px 42px 11px 14px;
  border: 1px dashed var(--cartux-promo-border, #f2a36d);
  border-radius: 10px;
  background: var(--cartux-promo-bg, #fff8f3);
  color: var(--cartux-promo-text, #c94f00);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

body#cart .promo-code-button::before,
body.page-cart .promo-code-button::before {
  content: '🏷️';
  margin-right: 9px;
  font-size: 15px;
}

body#cart .promo-code-button::after,
body.page-cart .promo-code-button::after {
  content: '+';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 500;
}

body#cart .promo-code,
body.page-cart .promo-code {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--cartux-promo-panel-border, #edf1f5);
  border-radius: 12px;
  background: var(--cartux-promo-panel-bg, #fafbfc);
}

body#cart .promo-code form,
body.page-cart .promo-code form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}


body#cart .promo-code form button,
body#cart .promo-code form .btn,
body.page-cart .promo-code form button,
body.page-cart .promo-code form .btn {
  border-color: var(--cartux-promo-button-bg, #23428f) !important;
  background: var(--cartux-promo-button-bg, #23428f) !important;
  color: var(--cartux-promo-button-text, #ffffff) !important;
}

body#cart .promo-input,
body.page-cart .promo-input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border-radius: 10px;
}

body#cart .checkout.cart-detailed-actions,
body.page-cart .checkout.cart-detailed-actions {
  padding-top: 16px;
}

body#cart .tvprocess-to-checkout,
body.page-cart .tvprocess-to-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px rgba(40, 53, 147, .18);
}

body#cart #block-reassurance,
body.page-cart #block-reassurance {
  margin-top: 14px;
}

body#cart #block-reassurance ul,
body.page-cart #block-reassurance ul {
  display: grid;
  gap: 10px;
  margin: 0;
}

body#cart #block-reassurance .block-reassurance-item,
body.page-cart #block-reassurance .block-reassurance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  background: #fff;
}

body#cart #block-reassurance .block-title,
body.page-cart #block-reassurance .block-title {
  font-size: 13px;
  color: #4b5563;
}

/* Persistent free-shipping bar */
body#cart .cart-ux-controller__free-shipping,
body.page-cart .cart-ux-controller__free-shipping {
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid var(--cartux-shipping-border, #ffe4d1);
  border-radius: 12px;
  background: var(--cartux-shipping-bg, #fff8f2);
}

body#cart .cart-ux-controller__free-shipping-head,
body.page-cart .cart-ux-controller__free-shipping-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

body#cart .cart-ux-controller__free-shipping-label,
body.page-cart .cart-ux-controller__free-shipping-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cartux-shipping-text, #b45309);
}

body#cart .cart-ux-controller__free-shipping-goal,
body.page-cart .cart-ux-controller__free-shipping-goal {
  font-size: 12px;
  color: var(--cartux-shipping-text, #9a6b3d);
  white-space: nowrap;
}

body#cart .cart-ux-controller__free-shipping-track,
body.page-cart .cart-ux-controller__free-shipping-track {
  display: block;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--cartux-shipping-track, #f7d9be);
}

body#cart .cart-ux-controller__free-shipping-fill,
body.page-cart .cart-ux-controller__free-shipping-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--cartux-shipping-fill, #f97316);
  transition: width .25s ease;
}

@media (max-width: 767px) {
  body#cart .cart-item,
  body.page-cart .cart-item {
    padding: 16px 12px;
  }

  body#cart .cart-item .product-line-grid,
  body.page-cart .cart-item .product-line-grid {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
  }

  body#cart .cart-item .product-image,
  body.page-cart .cart-item .product-image {
    width: 84px;
    height: 84px;
    padding: 7px;
  }

  body#cart .cart-item .product-line-grid-right,
  body.page-cart .cart-item .product-line-grid-right {
    grid-column: 1 / -1;
    margin-top: 10px;
  }

  body#cart .cart-item .tvcart-incr-decr-price,
  body.page-cart .cart-item .tvcart-incr-decr-price {
    grid-template-columns: 1fr 112px;
    gap: 12px;
  }

  body#cart .cart-item .product-price,
  body.page-cart .cart-item .product-price {
    text-align: left;
  }

  body#cart .cart-item .product-price strong,
  body.page-cart .cart-item .product-price strong {
    font-size: 20px;
  }

  body#cart .cart-summary,
  body.page-cart .cart-summary {
    position: static;
    margin-top: 16px;
  }

  body#cart .cart-ux-controller__free-shipping-head,
  body.page-cart .cart-ux-controller__free-shipping-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 1.3.0 — completed free shipping state */
body#cart #cart-ux-controller-free-shipping.cart-ux-controller__free-shipping--complete,
body.page-cart #cart-ux-controller-free-shipping.cart-ux-controller__free-shipping--complete {
  border-color: var(--cartux-shipping-complete-border, #b9e4c7) !important;
  background: var(--cartux-shipping-complete-bg, #f3fff6) !important;
}
body#cart #cart-ux-controller-free-shipping.cart-ux-controller__free-shipping--complete .cart-ux-controller__free-shipping-label,
body.page-cart #cart-ux-controller-free-shipping.cart-ux-controller__free-shipping--complete .cart-ux-controller__free-shipping-label { color: var(--cartux-shipping-complete-text, #167844) !important; }
body#cart #cart-ux-controller-free-shipping.cart-ux-controller__free-shipping--complete .cart-ux-controller__free-shipping-goal,
body.page-cart #cart-ux-controller-free-shipping.cart-ux-controller__free-shipping--complete .cart-ux-controller__free-shipping-goal { color: var(--cartux-shipping-complete-text, #4b8060) !important; }
body#cart #cart-ux-controller-free-shipping.cart-ux-controller__free-shipping--complete .cart-ux-controller__free-shipping-track,
body.page-cart #cart-ux-controller-free-shipping.cart-ux-controller__free-shipping--complete .cart-ux-controller__free-shipping-track { background: var(--cartux-shipping-complete-track, #ccebd7) !important; }
body#cart #cart-ux-controller-free-shipping.cart-ux-controller__free-shipping--complete .cart-ux-controller__free-shipping-fill,
body.page-cart #cart-ux-controller-free-shipping.cart-ux-controller__free-shipping--complete .cart-ux-controller__free-shipping-fill {
  background: var(--cartux-shipping-complete-fill, #209c55) !important;
}
