/**
 * Afghan Prime MANUS — staging shopping bag presentation only.
 *
 * Preserve the genuine WooCommerce Cart Block, Store API, taxes, shipping,
 * quantity control, removal, line totals and checkout restrictions.
 * Loaded after all original Manus theme styles and only on staging /cart/.
 * Selectors target the current WooCommerce Blocks markup; revisit when
 * updating WooCommerce, as its DOM classes are not a stable public API.
 */
.ap-manus-cart .ap-wc-cart-live {
  --ap-bag-ink:var(--forest,#233529);
  --ap-bag-border:#dbd0c0;
  --ap-bag-paper:#fffaf3;
  --ap-bag-muted:#786e60;
  color:var(--ap-bag-ink);
  padding-block:8px 20px;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart,
.ap-manus-cart .ap-wc-cart-live .wp-block-woocommerce-cart {
  width:100%;
  max-width:none;
  margin:0;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart__content {
  display:grid!important;
  grid-template-columns:minmax(0,1.6fr) minmax(305px,.9fr);
  align-items:start;
  gap:clamp(22px,3vw,46px)!important;
  width:100%;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart__main,
.ap-manus-cart .ap-wc-cart-live .wc-block-cart__sidebar {
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  float:none!important;
  flex:none!important;
  margin:0!important;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart__main {
  padding:0!important;
}
.ap-manus-cart .ap-wc-cart-live table.wc-block-cart-items {
  width:100%;
  border:1px solid var(--ap-bag-border);
  background:var(--ap-bag-paper);
  border-collapse:separate;
  border-spacing:0;
  border-radius:6px;
  overflow:hidden;
}
.ap-manus-cart .ap-wc-cart-live table.wc-block-cart-items thead th {
  padding:16px 24px!important;
  background:#f4ede2;
  border-bottom:1px solid var(--ap-bag-border);
  color:var(--ap-bag-muted);
  font-size:10px!important;
  font-weight:750;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.ap-manus-cart .ap-wc-cart-live table.wc-block-cart-items .wc-block-cart-items__row td {
  padding:clamp(17px,2.2vw,27px) 14px!important;
  border-top:1px solid rgba(61,69,52,.1);
  vertical-align:top;
}
.ap-manus-cart .ap-wc-cart-live table.wc-block-cart-items .wc-block-cart-items__row:first-child td {
  border-top:0;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart-item__image {
  width:118px!important;
  min-width:85px;
  padding-left:20px!important;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart-item__image img,
.ap-manus-cart .ap-wc-cart-live .ap-manus-cart-curated-photo {
  display:block;
  width:100%;
  max-width:116px;
  height:auto;
  aspect-ratio:1/1;
  object-fit:cover;
  background:#f4ebdb;
  border:1px solid #ece3d7;
  border-radius:5px;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-components-product-name,
.ap-manus-cart .ap-wc-cart-live .product-name a {
  display:block;
  color:var(--ap-bag-ink);
  font:600 clamp(16px,1.55vw,20px)/1.3 var(--serif,Georgia,serif)!important;
  letter-spacing:-.018em;
  text-decoration:none;
  margin:0 0 10px;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-components-product-name:hover,
.ap-manus-cart .ap-wc-cart-live .product-name a:hover {
  color:#a76940;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-components-product-metadata {
  color:var(--ap-bag-muted);
  font-size:12px;
  line-height:1.7;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-components-product-metadata__description {
  font-size:12px;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-components-product-price,
.ap-manus-cart .ap-wc-cart-live .wc-block-cart-item__total-price-and-sale-badge-wrapper {
  color:var(--ap-bag-ink);
  font-size:14px;
  font-weight:650;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-components-quantity-selector {
  min-height:41px;
  width:max-content;
  max-width:100%;
  background:#fffefa;
  border:1px solid #bdb2a1!important;
  border-radius:5px!important;
  box-shadow:none!important;
  margin-top:16px;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-components-quantity-selector button,
.ap-manus-cart .ap-wc-cart-live .wc-block-components-quantity-selector input {
  min-width:35px;
  min-height:40px;
  color:var(--ap-bag-ink)!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  font-size:13px;
  cursor:pointer;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-components-quantity-selector input {
  min-width:46px;
  text-align:center;
  cursor:text;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart-item__remove-link,
.ap-manus-cart .ap-wc-cart-live .wc-block-components-product-details__value,
.ap-manus-cart .ap-wc-cart-live .wc-block-cart-item__remove-link {
  color:var(--ap-bag-muted);
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart-item__remove-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:14px;
  padding:8px!important;
  min-height:35px;
  border:1px solid #dfd4c5!important;
  border-radius:5px;
  text-decoration:none!important;
  color:#714d40!important;
  background:transparent!important;
  font-size:11px!important;
  font-weight:700;
  transition:background-color .18s ease,border-color .18s ease;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart-item__remove-link:hover {
  background:#f5e9df!important;
  border-color:#c6ab97!important;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart__sidebar {
  padding:clamp(22px,2.6vw,34px)!important;
  border:1px solid var(--ap-bag-border)!important;
  border-radius:5px;
  background:linear-gradient(180deg,#f7f0e6 0%,#f3ebde 100%)!important;
  box-shadow:0 12px 32px rgba(34,45,34,.035);
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
  padding:17px 0;
  border-color:#dbcebb;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart__sidebar .wc-block-components-totals-coupon {
  color:var(--ap-bag-ink);
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart__sidebar .wc-block-components-totals-footer-item {
  padding-top:24px;
  margin-top:4px;
  border-top:1px solid #cfc0ad;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart__sidebar .wc-block-components-totals-footer-item__label,
.ap-manus-cart .ap-wc-cart-live .wc-block-cart__sidebar .wc-block-components-totals-footer-item__value {
  font-family:var(--serif,Georgia,serif);
  font-size:clamp(20px,2vw,26px);
  font-weight:500;
  color:var(--ap-bag-ink);
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart__submit-container {
  background:#f3ebde;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart__submit-container::before {
  color:rgba(209,197,181,.55);
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart__submit-button {
  width:100%;
  min-height:53px;
  border:0;
  border-radius:999px!important;
  background:var(--ap-bag-ink)!important;
  color:#fffdf8!important;
  font-size:13px!important;
  font-weight:700;
  letter-spacing:.02em;
  transition:background-color .18s ease;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart__submit-button:hover {
  background:#395342!important;
}
.ap-manus-cart .ap-wc-cart-live :is(button,a,input):focus-visible {
  outline:2px solid var(--copper,#b57245)!important;
  outline-offset:3px;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart__empty-cart__title {
  color:var(--ap-bag-ink);
  font-family:var(--serif,Georgia,serif);
}
.ap-manus-cart .ap-wc-cart-live .woocommerce-cart-form .shop_table {
  border:1px solid var(--ap-bag-border);
  background:var(--ap-bag-paper);
}
@media(max-width:1000px) {
  .ap-manus-cart .ap-wc-cart-live .wc-block-cart__content {
    display:block!important;
  }
  .ap-manus-cart .ap-wc-cart-live .wc-block-cart__sidebar {
    margin-top:24px!important;
  }
}
@media(max-width:650px) {
  .ap-manus-cart .ap-wc-cart-live table.wc-block-cart-items thead th {
    padding:13px 9px!important;
  }
  .ap-manus-cart .ap-wc-cart-live table.wc-block-cart-items .wc-block-cart-items__row td {
    padding:16px 8px!important;
  }
  .ap-manus-cart .ap-wc-cart-live .wc-block-cart-item__image {
    min-width:68px;
    width:76px!important;
    padding-left:9px!important;
  }
  .ap-manus-cart .ap-wc-cart-live .wc-block-cart-item__image img {
    max-width:74px;
  }
  .ap-manus-cart .ap-wc-cart-live .wc-block-cart__sidebar {
    padding:18px!important;
  }
}


/* MANUS v1.1: the native Woo Cart Block remove control sits beside the
 * quantity selector, at the same vertical centre and at a touch-friendly size.
 * This is CSS only: native React/Store API removal behavior is untouched. */
.ap-manus-cart .ap-wc-cart-live .wc-block-cart-item__quantity {
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start;
  gap:12px!important;
  flex-wrap:wrap;
  margin-top:16px;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart-item__quantity
  .wc-block-components-quantity-selector {
  margin:0!important;
  align-self:center!important;
  height:42px!important;
  min-height:42px!important;
  flex:0 0 auto;
}
.ap-manus-cart .ap-wc-cart-live .wc-block-cart-item__quantity
  .wc-block-cart-item__remove-link {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
  vertical-align:middle!important;
  flex:0 0 auto;
}
@media(max-width:650px) {
  .ap-manus-cart .ap-wc-cart-live .wc-block-cart-item__quantity {
    gap:9px!important;
  }
}


/* MANUS classic WooCommerce cart: server-rendered, session backed.
   Modern responsive shopping bag styling with NO React dependency. */
.ap-manus-cart .ap-wc-cart-live .woocommerce { max-width: 100%; }
.ap-manus-cart .ap-wc-cart-live .woocommerce-cart-form,
.ap-manus-cart .ap-wc-cart-live .cart-collaterals { width: 100%; }
.ap-manus-cart .ap-wc-cart-live .shop_table {
  background: #fffdf9;
  border: 1px solid #ded5c9;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 7px;
  overflow: hidden;
  width: 100%;
  color: #26382d;
}
.ap-manus-cart .ap-wc-cart-live .shop_table th {
  font-size: 12px;
  letter-spacing: .035em;
  text-transform: uppercase;
  background: #f6f1e9;
  color: #35483c;
}
.ap-manus-cart .ap-wc-cart-live .shop_table th,
.ap-manus-cart .ap-wc-cart-live .shop_table td {
  padding: clamp(12px,2.2vw,21px);
  vertical-align: middle;
  border-bottom: 1px solid #e7dfd4;
}
.ap-manus-cart .ap-wc-cart-live .product-thumbnail img {
  width: 90px;
  height: 90px;
  max-width: none;
  object-fit: cover;
  border-radius: 5px;
}
.ap-manus-cart .ap-wc-cart-live a { color: #263d2e; }
.ap-manus-cart .ap-wc-cart-live .product-name a { font-weight: 650; }
.ap-manus-cart .ap-wc-cart-live .product-name .variation {
  font-size: 13px; color: #676c61;
}
.ap-manus-cart .ap-wc-cart-live .quantity .qty {
  width: 75px!important;
  min-height: 44px!important;
  border-radius: 5px!important;
  border: 1px solid #c8c0b4!important;
  background: #fff!important;
  padding: 9px!important;
  color: #21372c!important;
  text-align: center;
}
.ap-manus-cart .ap-wc-cart-live .product-remove a.remove {
  display: inline-flex!important; align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid #d8ccc0;
  border-radius: 50%;
  background: #fff!important;
  color: #744d40!important;
  text-decoration: none!important;
}
.ap-manus-cart .ap-wc-cart-live .actions button.button,
.ap-manus-cart .ap-wc-cart-live .actions input.button,
.ap-manus-cart .ap-wc-cart-live .cart-collaterals a.checkout-button {
  min-height: 46px;
  border: 0!important;
  border-radius: 50px!important;
  background: #263b2c!important;
  color: #fff!important;
  padding: 13px 24px!important;
  text-decoration: none!important;
}
.ap-manus-cart .ap-wc-cart-live .actions button.button:disabled {
  opacity: .5;
}
.ap-manus-cart .ap-wc-cart-live .cart-collaterals {
  display: flex; justify-content: flex-end;
  margin-top: 24px;
}
.ap-manus-cart .ap-wc-cart-live .cart-collaterals .cart_totals {
  width: min(100%, 440px)!important;
  float: none;
  border-radius: 7px;
  background: #f7f0e6;
  padding: clamp(18px,3vw,30px);
}
.ap-manus-cart .ap-wc-cart-live :is(button,a,input):focus-visible {
  outline: 2px solid #a86d43!important;
  outline-offset: 3px;
}
@media (max-width: 740px) {
  .ap-manus-cart .ap-wc-cart-live .woocommerce-cart-form {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ap-manus-cart .ap-wc-cart-live .shop_table {
    width: 100%;
    min-width: 0;
  }
  .ap-manus-cart .ap-wc-cart-live .shop_table td {
    padding: 10px 7px;
    font-size: 13px;
  }
  .ap-manus-cart .ap-wc-cart-live .product-thumbnail img {
    width: 56px; height: 56px;
  }
  .ap-manus-cart .ap-wc-cart-live .quantity .qty {
    width: 60px!important;
  }
  .ap-manus-cart .ap-wc-cart-live .cart-collaterals {
    display: block;
  }
}
