/* Kazio Mobile Product Buybox v3 */
@media (max-width: 768px) {
  body.product-product #content,
  body.product-product .container,
  body.product-product .product-info,
  body.product-product .product-detail,
  body.product-product .product-main,
  body.product-product .product-layout {
    max-width: calc(100vw - 14px) !important;
    overflow-x: hidden !important;
  }

  /* The problematic green buy area */
  body.product-product .kz-mobile-buybox-v3,
  body.product-product .kz-mobile-buybox-parent-v3 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 12px !important;
    margin: 10px 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    overflow: visible !important;
  }

  body.product-product .kz-mobile-buybox-v3 > *,
  body.product-product .kz-mobile-buybox-parent-v3 > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
  }

  body.product-product .kz-mobile-cart-button-v3,
  body.product-product #button-cart {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    white-space: normal !important;
  }

  body.product-product .kz-mobile-qty-wrap-v3 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    float: none !important;
  }

  body.product-product .kz-mobile-qty-input-v3,
  body.product-product input[name="quantity"] {
    width: 64px !important;
    max-width: 64px !important;
    min-width: 58px !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 14px !important;
    text-align: center !important;
    margin: 0 auto !important;
    flex: 0 0 auto !important;
  }

  body.product-product .kz-mobile-club-nudge-v3,
  body.product-product .kz-club-v1-product-nudge {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 12px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    display: flex !important;
    gap: 10px !important;
    align-items: flex-start !important;
  }

  body.product-product .kz-club-v1-product-nudge p,
  body.product-product .kz-mobile-club-nudge-v3 p {
    margin: 0 !important;
    text-align: right !important;
    line-height: 1.9 !important;
  }

  /* Feature chips under price/image */
  body.product-product .kz-mobile-chip-v3 {
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 14px !important;
    white-space: normal !important;
    line-height: 1.8 !important;
    text-align: center !important;
  }

  /* Avoid ultra-tall empty product cards on mobile */
  body.product-product [class*="cart"],
  body.product-product [class*="buy"],
  body.product-product [class*="purchase"],
  body.product-product [class*="action"] {
    max-width: 100% !important;
  }

  body.product-product [class*="cart"] > :empty,
  body.product-product [class*="buy"] > :empty,
  body.product-product [class*="purchase"] > :empty,
  body.product-product [class*="action"] > :empty {
    display: none !important;
  }
}

@media (max-width: 430px) {
  body.product-product .kz-mobile-buybox-v3,
  body.product-product .kz-mobile-buybox-parent-v3 {
    padding: 10px !important;
    gap: 9px !important;
  }

  body.product-product #button-cart,
  body.product-product .kz-mobile-cart-button-v3 {
    min-height: 50px !important;
    font-size: 13.5px !important;
  }
}
