/* Core Marketplace Product Card v5.3.8 — final buybox micro-fixes only.
   Do not touch gallery, benefits, parameters or description here. */

body.single-product.woocommerce.amui-product-card-v538 .amui-product-main > div.summary{
  max-width:340px!important;
  min-width:300px!important;
}

/* Hard removal of the legacy availability context. The stock amount is now used only
   by JS as a hidden data source for the quantity row. */
body.single-product.woocommerce.amui-product-card-v538 .amui-product-buybox-context,
body.single-product.woocommerce.amui-product-card-v538 .amui-product-buybox-context *,
body.single-product.woocommerce.amui-product-card-v538 .amui-product-main > div.summary .stock,
body.single-product.woocommerce.amui-product-card-v538 .amui-product-main > div.summary p.stock{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  font-size:0!important;
  line-height:0!important;
}

/* Seller row and price: two compact white rows. */
body.single-product.woocommerce.amui-product-card-v538 .amui-product-shopline{
  min-height:54px!important;
  padding:16px 18px!important;
  border:1px solid #d8dee6!important;
  border-bottom:0!important;
  background:#fff!important;
  box-shadow:none!important;
}

body.single-product.woocommerce.amui-product-card-v538 .amui-product-shopline__left{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:5px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

body.single-product.woocommerce.amui-product-card-v538 .amui-product-shopline__badge,
body.single-product.woocommerce.amui-product-card-v538 .amui-product-shopline__seller{
  display:inline!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:900!important;
  color:#111827!important;
}

body.single-product.woocommerce.amui-product-card-v538 .amui-product-shopline__brand,
body.single-product.woocommerce.amui-product-card-v538 .amui-product-shopline__sep,
body.single-product.woocommerce.amui-product-card-v538 .amui-product-shopline__actions,
body.single-product.woocommerce.amui-product-card-v538 .amui-product-media-head__actions,
body.single-product.woocommerce.amui-product-card-v538 .amui-product-icon-action,
body.single-product.woocommerce.amui-product-card-v538 [data-amui-product-action]{
  display:none!important;
}

body.single-product.woocommerce.amui-product-card-v538 div.product .summary .price{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:20px 18px 22px!important;
  border:1px solid #d8dee6!important;
  border-top:1px solid #d8dee6!important;
  border-bottom:0!important;
  background:#fff!important;
  color:#078600!important;
  font-size:31px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.035em!important;
  box-sizing:border-box!important;
}

body.single-product.woocommerce.amui-product-card-v538 div.product .summary .price::before{
  content:none!important;
  display:none!important;
}

/* Single buybox card: quantity and both CTA buttons stay inside this white box. */
body.single-product.woocommerce.amui-product-card-v538 div.product form.cart{
  position:relative!important;
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:16px 18px 18px!important;
  border:1px solid #d8dee6!important;
  border-top:1px solid #d8dee6!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}

body.single-product.woocommerce.amui-product-card-v538 div.product form.cart::before{
  content:'Liczba sztuk'!important;
  display:inline-flex!important;
  align-items:center!important;
  margin:0 3px 10px 0!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:600!important;
  letter-spacing:0!important;
  text-transform:none!important;
}

body.single-product.woocommerce.amui-product-card-v538 div.product form.cart .amui-buybox-limit-note{
  display:inline-flex!important;
  align-items:center!important;
  margin:0 0 10px!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:400!important;
  white-space:nowrap!important;
}

body.single-product.woocommerce.amui-product-card-v538 div.product form.cart .amui-buybox-limit-note::before{
  content:'|';
  margin:0 7px!important;
  color:#cbd5e1!important;
  font-weight:400!important;
}

body.single-product.woocommerce.amui-product-card-v538 div.product form.cart .amui-buybox-qty-line{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  margin:0 0 14px!important;
  padding:0!important;
}

body.single-product.woocommerce.amui-product-card-v538 div.product form.cart div.quantity,
body.single-product.woocommerce.amui-product-card-v538 div.product form.cart .quantity{
  display:flex!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  flex:0 0 122px!important;
  width:122px!important;
  min-width:122px!important;
  max-width:122px!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #9aa4b2!important;
  border-radius:0!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}

body.single-product.woocommerce.amui-product-card-v538 div.product form.cart div.quantity .minus,
body.single-product.woocommerce.amui-product-card-v538 div.product form.cart div.quantity .plus,
body.single-product.woocommerce.amui-product-card-v538 div.product form.cart div.quantity .amui-buybox-minus,
body.single-product.woocommerce.amui-product-card-v538 div.product form.cart div.quantity .amui-buybox-plus{
  position:static!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 40px!important;
  width:40px!important;
  height:36px!important;
  min-height:36px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:#fff!important;
  color:#00796b!important;
  font-size:22px!important;
  line-height:1!important;
  font-weight:400!important;
  box-shadow:none!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
}

body.single-product.woocommerce.amui-product-card-v538 div.product form.cart div.quantity input.qty,
body.single-product.woocommerce.amui-product-card-v538 div.product form.cart .quantity input.qty{
  position:static!important;
  display:block!important;
  flex:0 0 42px!important;
  width:42px!important;
  height:36px!important;
  min-height:36px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-left:1px solid #9aa4b2!important;
  border-right:1px solid #9aa4b2!important;
  border-radius:0!important;
  background:#fff!important;
  color:#111827!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:36px!important;
  text-align:center!important;
  box-shadow:none!important;
  appearance:textfield!important;
  -moz-appearance:textfield!important;
  box-sizing:border-box!important;
}

body.single-product.woocommerce.amui-product-card-v538 div.product form.cart .amui-buybox-stock-note{
  display:inline-flex!important;
  align-items:center!important;
  min-height:38px!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.25!important;
  white-space:nowrap!important;
}

body.single-product.woocommerce.amui-product-card-v538 div.product form.cart .single_add_to_cart_button,
body.single-product.woocommerce.amui-product-card-v538 div.product form.cart .amui-buy-now-button{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  float:none!important;
  clear:both!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  max-width:100%!important;
  height:40px!important;
  min-height:40px!important;
  margin:10px 0 0!important;
  padding:0 14px!important;
  border:0!important;
  border-radius:0!important;
  background:#ff5a00!important;
  color:#fff!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.105em!important;
  text-transform:uppercase!important;
  text-align:center!important;
  text-decoration:none!important;
  box-shadow:none!important;
  transform:none!important;
  box-sizing:border-box!important;
}

body.single-product.woocommerce.amui-product-card-v538 div.product form.cart .single_add_to_cart_button:hover,
body.single-product.woocommerce.amui-product-card-v538 div.product form.cart .amui-buy-now-button:hover{
  background:#e94f00!important;
  color:#fff!important;
}

body.single-product.woocommerce.amui-product-card-v538 div.product form.cart .single_add_to_cart_button::before{
  content:'🛒';
  margin-right:8px!important;
  font-size:13px!important;
  line-height:1!important;
}

body.single-product.woocommerce.amui-product-card-v538 .amui-product-compare-link{
  display:none!important;
}

@media (max-width:420px){
  body.single-product.woocommerce.amui-product-card-v538 .amui-product-main > div.summary{
    min-width:0!important;
    max-width:none!important;
  }
}
