/** MSB Shop 7.0.5 — single-product quantity + graphical cart feedback. */

/* Main product quantity becomes a real +/- control. */
.single-product form.cart .quantity{
  display:grid!important;
  grid-template-columns:34px minmax(40px,1fr) 34px!important;
  align-items:center!important;
  min-height:46px!important;
  border:1px solid #e7e2e5!important;
  border-radius:12px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:0 5px 16px rgba(34,12,16,.035)!important;
}
.single-product form.cart .quantity .qty{
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  margin:0!important;
  padding:0 4px!important;
  border:0!important;
  border-right:1px solid #f0edef!important;
  border-left:1px solid #f0edef!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
  text-align:center!important;
  font:inherit!important;
  font-weight:800!important;
  -moz-appearance:textfield!important;
}
.single-product form.cart .quantity .qty::-webkit-outer-spin-button,
.single-product form.cart .quantity .qty::-webkit-inner-spin-button{margin:0!important;-webkit-appearance:none!important}
.msb-qty-step{
  width:34px!important;
  height:44px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:#2a1a21!important;
  font:800 20px/1 Vazirmatn,Tahoma,Arial,sans-serif!important;
  cursor:pointer!important;
  transition:background .16s ease,color .16s ease!important;
}
.msb-qty-step:hover{background:#fff1f5!important;color:var(--msb-primary,#f30a49)!important}
.msb-qty-step:disabled{opacity:.35!important;cursor:not-allowed!important}

/* Simple/variation purchase rows: quantity next to the CTA, not stranded above it. */
.single-product .msb-single-v52__buybox form.cart:not(.variations_form){
  display:grid!important;
  grid-template-columns:94px minmax(0,1fr)!important;
  gap:9px!important;
  align-items:center!important;
}
.single-product .msb-single-v52__buybox form.cart:not(.variations_form) .quantity{width:94px!important;margin:0!important}
.single-product .msb-single-v52__buybox form.cart:not(.variations_form) .single_add_to_cart_button{width:100%!important;margin:0!important}
.single-product .msb-single-v52__buybox .woocommerce-variation-add-to-cart{
  display:grid!important;
  grid-template-columns:94px minmax(0,1fr)!important;
  gap:9px!important;
  align-items:center!important;
}
.single-product .msb-single-v52__buybox .woocommerce-variation-add-to-cart .quantity{width:94px!important;margin:0!important}
.single-product .msb-single-v52__buybox .woocommerce-variation-add-to-cart .single_add_to_cart_button{width:100%!important;margin:0!important}

/* Floating purchase bar: mobile first; the desktop sticky buybox remains unchanged. */
.msb-product-float-v705{display:none}
@media(max-width:782px){
  body.single-product{padding-bottom:154px!important}
  .msb-product-float-v705{
    position:fixed!important;
    z-index:10020!important;
    right:8px!important;
    left:8px!important;
    bottom:76px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:9px!important;
    min-height:68px!important;
    padding:7px!important;
    border:1px solid rgba(231,225,229,.92)!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 18px 48px rgba(34,12,16,.18)!important;
    backdrop-filter:blur(15px)!important;
    -webkit-backdrop-filter:blur(15px)!important;
  }
  .msb-product-float-v705__meta{
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
  }
  .msb-product-float-v705__thumb{
    flex:0 0 46px!important;
    width:46px!important;
    height:46px!important;
    display:grid!important;
    place-items:center!important;
    overflow:hidden!important;
    border:1px solid #eee9ec!important;
    border-radius:12px!important;
    background:#f8f7f9!important;
  }
  .msb-product-float-v705__thumb img{width:100%!important;height:100%!important;object-fit:contain!important}
  .msb-product-float-v705__text{min-width:0!important;display:block!important}
  .msb-product-float-v705__text strong{
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:9px!important;
    line-height:1.6!important;
  }
  .msb-product-float-v705__text small{display:block!important;margin-top:3px!important;font-size:9px!important;color:#6d6268!important}
  .msb-product-float-v705__text .price,.msb-product-float-v705__text .amount{font-size:10px!important;font-weight:800!important;color:#201116!important}
  .msb-product-float-v705__actions{display:flex!important;align-items:center!important;gap:7px!important}
  .msb-product-float-v705__qty{
    flex:0 0 94px!important;
    width:94px!important;
    min-height:44px!important;
    grid-template-columns:30px 34px 30px!important;
    border-radius:12px!important;
  }
  .msb-product-float-v705__qty .msb-qty-step{width:30px!important;height:42px!important;font-size:18px!important}
  .msb-product-float-v705__qty .qty{height:42px!important;font-size:11px!important}
  .msb-product-float-v705__add{
    flex:0 0 auto!important;
    min-width:122px!important;
    height:46px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    border:0!important;
    border-radius:13px!important;
    background:linear-gradient(135deg,var(--msb-primary,#f30a49),#ff285f)!important;
    color:#fff!important;
    box-shadow:0 10px 24px rgba(243,10,73,.22)!important;
    font:700 10px/1.2 Vazirmatn,Tahoma,Arial,sans-serif!important;
    cursor:pointer!important;
  }
  .msb-product-float-v705__add .msb-icon{width:18px!important;height:18px!important}
  .msb-product-float-v705__add.is-loading{pointer-events:none!important;opacity:.72!important}
  .msb-product-float-v705__add.is-loading .msb-icon{animation:msb-v705-spin .75s linear infinite!important}
  .msb-product-float-v705__add.is-disabled{min-width:148px!important;background:#aaa3a7!important;box-shadow:none!important}

  /* Move the utility floating controls above the new purchase bar. */
  body.single-product .msb-floating-support{bottom:154px!important}
  body.single-product .msb-back-to-top{bottom:154px!important}
}
@media(max-width:520px){
  .msb-product-float-v705{grid-template-columns:1fr!important;padding:7px 8px!important;gap:6px!important}
  .msb-product-float-v705__meta{display:none!important}
  .msb-product-float-v705__actions{width:100%!important;display:grid!important;grid-template-columns:102px minmax(0,1fr)!important;gap:7px!important}
  .msb-product-float-v705__qty{width:102px!important;grid-template-columns:32px 38px 32px!important}
  .msb-product-float-v705__add{width:100%!important;min-width:0!important}
}
@keyframes msb-v705-spin{to{transform:rotate(360deg)}}

/* Graphical add-to-cart toast. */
.msb-cart-toast-v705{
  position:fixed!important;
  z-index:100090!important;
  left:24px!important;
  bottom:24px!important;
  width:min(390px,calc(100vw - 32px))!important;
  padding:0!important;
  border:1px solid #e9e4e7!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 24px 70px rgba(34,12,16,.22)!important;
  opacity:0!important;
  visibility:hidden!important;
  transform:translateY(16px) scale(.98)!important;
  transition:opacity .2s ease,transform .2s ease,visibility .2s!important;
  overflow:hidden!important;
}
.msb-cart-toast-v705[hidden]{display:block!important}
.msb-cart-toast-v705.is-visible{
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}
.msb-cart-toast-v705__inner{display:grid!important;grid-template-columns:46px minmax(0,1fr) auto!important;align-items:center!important;gap:11px!important;padding:13px!important}
.msb-cart-toast-v705__icon{
  width:46px!important;height:46px!important;display:grid!important;place-items:center!important;border-radius:14px!important;background:#eafaf3!important;color:#07975f!important
}
.msb-cart-toast-v705__icon svg{width:24px!important;height:24px!important}
.msb-cart-toast-v705__copy{min-width:0!important}
.msb-cart-toast-v705__copy strong,.msb-cart-toast-v705__copy span{display:block!important}
.msb-cart-toast-v705__copy strong{font-size:11px!important;color:#211218!important}
.msb-cart-toast-v705__copy span{margin-top:3px!important;font-size:9px!important;line-height:1.8!important;color:#746a70!important}
.msb-cart-toast-v705__actions{display:flex!important;align-items:center!important;gap:5px!important}
.msb-cart-toast-v705__cart{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:34px!important;padding:0 11px!important;border-radius:10px!important;background:#fff0f4!important;color:var(--msb-primary,#f30a49)!important;text-decoration:none!important;font-size:9px!important;font-weight:800!important
}
.msb-cart-toast-v705__close{width:32px!important;height:32px!important;border:0!important;border-radius:50%!important;background:#f5f3f5!important;color:#5e5459!important;font-size:18px!important;cursor:pointer!important}
.msb-cart-toast-v705.is-error .msb-cart-toast-v705__icon,
.msb-cart-toast-v705.is-warning .msb-cart-toast-v705__icon{background:#fff3e4!important;color:#bf7610!important}
.msb-cart-toast-v705.is-error .msb-cart-toast-v705__icon{background:#fff0f3!important;color:#c71949!important}
@media(max-width:782px){
  .msb-cart-toast-v705{right:10px!important;left:10px!important;bottom:154px!important;width:auto!important}
  .msb-cart-toast-v705__inner{grid-template-columns:40px minmax(0,1fr) auto!important;gap:8px!important;padding:10px!important}
  .msb-cart-toast-v705__icon{width:40px!important;height:40px!important;border-radius:12px!important}
  .msb-cart-toast-v705__cart{display:none!important}
}
