/* Chan Organic V82.60 — Cart quantity UX */

.cart-item{
  align-items:center;
}

.cart-qty-form{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
}

.cart-qty-control{
  display:inline-grid;
  grid-template-columns:36px 52px 36px;
  align-items:center;
  height:40px;
  border:1px solid #d8e1dc;
  border-radius:11px;
  background:#fff;
  overflow:hidden;
}

.cart-qty-button{
  width:36px;
  height:40px;
  border:0;
  background:#f7faf8;
  color:#315d48;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:16px;
  transition:background .15s ease,color .15s ease;
}

.cart-qty-button:hover{
  background:#edf5f0;
  color:#184d34;
}

.cart-qty-button:disabled{
  opacity:.4;
  cursor:not-allowed;
}

.cart-qty-control input[type="number"]{
  width:52px;
  height:40px;
  border:0;
  border-left:1px solid #e1e7e3;
  border-right:1px solid #e1e7e3;
  border-radius:0;
  background:#fff;
  text-align:center;
  font-size:15px;
  font-weight:700;
  color:#183f2d;
  padding:0 4px;
  appearance:textfield;
  -moz-appearance:textfield;
}

.cart-qty-control input[type="number"]::-webkit-inner-spin-button,
.cart-qty-control input[type="number"]::-webkit-outer-spin-button{
  -webkit-appearance:none;
  margin:0;
}

.cart-qty-control input[type="number"]:focus{
  outline:2px solid color-mix(in srgb,#2f7a50 30%,transparent);
  outline-offset:-2px;
}

.cart-qty-save{
  min-height:38px;
  padding:7px 11px;
  border:1px solid #cfdbd3;
  border-radius:10px;
  background:#fff;
  color:#315d48;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

/* With JS active, +/- and manual change save automatically.
   Keep the fallback submit button available without JS. */
.js-cart-qty .cart-qty-save{
  display:none;
}

.cart-item-subtotal{
  min-width:112px;
  text-align:right;
}

.cart-item-subtotal small{
  display:block;
  margin-bottom:2px;
  color:#87948c;
  font-size:12px;
}

.cart-item-subtotal strong{
  white-space:nowrap;
  font-size:16px;
}

.cart-summary-note{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin:-2px 0 14px;
  padding:10px 11px;
  border-radius:11px;
  background:#f4f8f5;
  color:#567063;
  font-size:13px;
  line-height:1.5;
}

.cart-summary-note i{
  flex:0 0 auto;
  margin-top:1px;
  color:#347552;
}

.cart-qty-form.is-updating{
  opacity:.65;
  pointer-events:none;
}

@media(max-width:760px){
  .cart-item{
    grid-template-columns:64px minmax(0,1fr);
    gap:10px 12px;
  }

  .cart-qty-form{
    grid-column:2;
    justify-content:flex-start;
  }

  .cart-item-subtotal{
    grid-column:2;
    text-align:left;
    min-width:0;
  }

  .cart-item-subtotal small{
    display:inline;
    margin-right:6px;
  }
}

@media(max-width:420px){
  .cart-qty-control{
    grid-template-columns:34px 48px 34px;
  }

  .cart-qty-button{
    width:34px;
  }

  .cart-qty-control input[type="number"]{
    width:48px;
  }
}

/* V83.2B */
.cart-shipping-line{display:flex;justify-content:space-between;gap:12px;padding:10px 16px;border-top:1px dashed #e1e7e3;font-size:13px}
.cart-shipping-line strong{color:#234d37}
.cart-policy-warning{padding:10px;border-radius:10px;background:#fff5e9;color:#8a5718}
.checkout-cost-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:14px}


/* =========================================================
   V87.0.48 — Cart product navigation
   Image, product name and detail link open the product page.
   ========================================================= */
.cart-product-image-link{
  display:block;
  border-radius:12px;
  text-decoration:none;
  overflow:hidden;
}

.cart-product-image-link img{
  display:block;
  transition:transform .18s ease, box-shadow .18s ease;
}

.cart-product-image-link:hover img{
  transform:scale(1.025);
  box-shadow:0 5px 14px rgba(31,59,42,.10);
}

.cart-product-name-link{
  color:inherit;
  text-decoration:none;
}

.cart-product-name-link:hover,
.cart-product-name-link:focus{
  color:#2d6a4f;
  text-decoration:underline;
  text-underline-offset:3px;
}

.cart-product-detail-link{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:6px;
  color:#52705f;
  font-size:11px;
  font-weight:700;
  line-height:1.35;
  text-decoration:none;
}

.cart-product-detail-link:hover,
.cart-product-detail-link:focus{
  color:#2d6a4f;
}

.cart-product-detail-link i{
  font-size:10px;
}

@media(max-width:760px){
  .cart-product-detail-link{
    margin-top:5px;
    font-size:10.5px;
  }
}
