/* Core Marketplace Product Card v5.3.7 — buybox cleanup only.
   Gallery layout, benefits, parameters and description stay untouched. */

/* Right column: keep only shopline, price and cart form inside the buybox. */
body.single-product.woocommerce.amui-product-card-v537 .amui-product-main > div.summary{
  max-width:340px!important;
  min-width:300px!important;
}

/* Seller line: no fake logo, no producer/brand, one clean line. */
body.single-product.woocommerce.amui-product-card-v537 .amui-product-shopline{
  display:flex!important;
  align-items:center!important;
  min-height:58px!important;
  padding:16px 18px!important;
  background:#fff!important;
  border:1px solid #d8dee6!important;
  border-bottom:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

body.single-product.woocommerce.amui-product-card-v537 .amui-product-shopline::after{
  content:none!important;
  display:none!important;
}

body.single-product.woocommerce.amui-product-card-v537 .amui-product-shopline__left{
  display:flex!important;
  align-items:baseline!important;
  justify-content:flex-start!important;
  gap:4px!important;
  max-width:100%!important;
  min-width:0!important;
  width:100%!important;
  flex-wrap:nowrap!important;
  overflow:hidden!important;
}

body.single-product.woocommerce.amui-product-card-v537 .amui-product-shopline__badge{
  display:inline!important;
  flex:0 0 auto!important;
  color:#111827!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:900!important;
  white-space:nowrap!important;
}

body.single-product.woocommerce.amui-product-card-v537 .amui-product-shopline__badge::before{
  content:'od ';
  font-weight:900!important;
}

body.single-product.woocommerce.amui-product-card-v537 .amui-product-shopline__seller{
  display:inline!important;
  flex:0 1 auto!important;
  min-width:0!important;
  color:#111827!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

body.single-product.woocommerce.amui-product-card-v537 .amui-product-shopline__brand,
body.single-product.woocommerce.amui-product-card-v537 .amui-product-shopline__sep,
body.single-product.woocommerce.amui-product-card-v537 .amui-product-shopline__actions,
body.single-product.woocommerce.amui-product-card-v537 .amui-product-media-head__actions{
  display:none!important;
}

/* Remove gallery action icons requested by the user. */
body.single-product.woocommerce.amui-product-card-v537 .amui-product-icon-action,
body.single-product.woocommerce.amui-product-card-v537 [data-amui-product-action]{
  display:none!important;
}

/* Price: rectangular Allegro-like block. */
body.single-product.woocommerce.amui-product-card-v537 div.product .summary .price{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:20px 18px 14px!important;
  background:#fff!important;
  border:1px solid #d8dee6!important;
  border-bottom:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:#078600!important;
  font-size:31px!important;
  line-height:1.05!important;
  font-weight:950!important;
  letter-spacing:-.035em!important;
  text-align:left!important;
}

body.single-product.woocommerce.amui-product-card-v537 div.product .summary .price del{
  display:inline-flex!important;
  margin:0 8px 4px 0!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:500!important;
  letter-spacing:0!important;
}

body.single-product.woocommerce.amui-product-card-v537 div.product .summary .price ins,
body.single-product.woocommerce.amui-product-card-v537 div.product .summary .price .amount{
  color:#078600!important;
  text-decoration:none!important;
}

/* Hide old/orphan availability and old compare/highlight fragments. */
body.single-product.woocommerce.amui-product-card-v537 .amui-product-buybox-context,
body.single-product.woocommerce.amui-product-card-v537 .amui-product-buybox-context__line,
body.single-product.woocommerce.amui-product-card-v537 .amui-product-buybox-context__sales,
body.single-product.woocommerce.amui-product-card-v537 .amui-product-main > div.summary .stock,
body.single-product.woocommerce.amui-product-card-v537 .amui-product-main > div.summary p.stock,
body.single-product.woocommerce.amui-product-card-v537 .amui-product-main > div.summary > .amui-product-highlights,
body.single-product.woocommerce.amui-product-card-v537 .amui-product-compare-link{
  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;
}

/* Cart form: one stable white card. */
body.single-product.woocommerce.amui-product-card-v537 div.product form.cart{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:16px 18px 18px!important;
  background:#fff!important;
  border:1px solid #d8dee6!important;
  border-top:1px solid #d8dee6!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}

body.single-product.woocommerce.amui-product-card-v537 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;
  text-transform:none!important;
  letter-spacing:0!important;
}

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

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

body.single-product.woocommerce.amui-product-card-v537 div.product form.cart div.quantity,
body.single-product.woocommerce.amui-product-card-v537 div.product form.cart .quantity{
  position:relative!important;
  display:grid!important;
  grid-template-columns:40px 42px 40px!important;
  grid-template-rows:38px!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-v537 div.product form.cart div.quantity .minus,
body.single-product.woocommerce.amui-product-card-v537 div.product form.cart div.quantity .plus,
body.single-product.woocommerce.amui-product-card-v537 div.product form.cart div.quantity button.minus,
body.single-product.woocommerce.amui-product-card-v537 div.product form.cart div.quantity button.plus,
body.single-product.woocommerce.amui-product-card-v537 div.product form.cart div.quantity .amui-buybox-minus,
body.single-product.woocommerce.amui-product-card-v537 div.product form.cart div.quantity .amui-buybox-plus{
  position:static!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:#00796b!important;
  font-size:22px!important;
  line-height:1!important;
  font-weight:400!important;
  text-align:center!important;
  box-shadow:none!important;
  transform:none!important;
  opacity:1!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
}

body.single-product.woocommerce.amui-product-card-v537 div.product form.cart div.quantity input.qty,
body.single-product.woocommerce.amui-product-card-v537 div.product form.cart .quantity input.qty{
  position:static!important;
  display:block!important;
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  height:36px!important;
  min-height:36px!important;
  max-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-v537 div.product form.cart input.qty::-webkit-outer-spin-button,
body.single-product.woocommerce.amui-product-card-v537 div.product form.cart input.qty::-webkit-inner-spin-button{
  margin:0!important;
  -webkit-appearance:none!important;
}

body.single-product.woocommerce.amui-product-card-v537 div.product form.cart .amui-buybox-stock-note{
  display:inline-flex!important;
  align-items:center!important;
  flex:1 1 auto!important;
  min-width:0!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-v537 div.product form.cart .single_add_to_cart_button,
body.single-product.woocommerce.amui-product-card-v537 div.product form.cart .amui-buy-now-button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:40px!important;
  min-height:40px!important;
  margin:0 0 8px!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-decoration:none!important;
  box-shadow:none!important;
}

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

body.single-product.woocommerce.amui-product-card-v537 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-v537 div.product form.cart .amui-buy-now-button{
  margin-bottom:0!important;
}

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