/* v2.3.9 - mobile refinements after v2.3.8. Scoped to staging theme. */
@media (max-width: 1023px) {
 /* More specific than old desktop rules: product gallery then product information. */
 body.single-product .pm-page .woocommerce div.product,
 body.single-product .pm-page div.product,
 body.single-product .woocommerce-page div.product,
 body.single-product .woocommerce div.product {
   display: flex !important; flex-direction: column !important;
   grid-template-columns: none !important; align-items: stretch !important;
   gap: 20px !important; width: 100% !important; min-width: 0 !important;
 }
 body.single-product .pm-page div.product > .woocommerce-product-gallery,
 body.single-product .pm-page div.product > .summary,
 body.single-product .woocommerce div.product > .woocommerce-product-gallery,
 body.single-product .woocommerce div.product > .summary {
   display: block !important; float: none !important; clear: both !important;
   width: 100% !important; max-width: 100% !important; min-width: 0 !important;
   flex: 0 0 auto !important; grid-column: 1 / -1 !important;
   grid-row: auto !important; margin-inline: 0 !important; position: static !important;
 }
 body.single-product .woocommerce div.product .woocommerce-product-gallery img {
   display: block; width: 100% !important; max-width: 100% !important;
   height: auto !important; object-fit: contain !important;
 }
 body.single-product .pm-page .pm-bundle-products,
 body.single-product .woocommerce div.product .pm-bundle-products {
   display: grid !important; grid-template-columns: minmax(0,1fr) !important;
   gap: 12px !important;
 }
 body.single-product .pm-page .pm-bundle-item {
   display: grid !important; grid-template-columns: 24px 82px minmax(0,1fr) !important;
   align-items: center !important; gap: 10px !important; width: 100% !important;
   min-width: 0 !important; box-sizing: border-box !important;
 }
 body.single-product .pm-page .pm-bundle-item img {width: 82px !important; height: 82px !important; object-fit: cover !important}
 body.single-product .pm-page .pm-bundle-copy {min-width:0;overflow-wrap:anywhere}
 body.single-product .pm-page .pm-bundle-action {display:flex!important;flex-wrap:wrap!important;gap:12px!important}
 body.single-product .pm-page .pm-bundle-action button {min-height:44px;max-width:100%;white-space:normal}
 /* Shipping results: readable rows, no narrow columns. Preserve rates and functionality. */
 body.single-product .summary .pm-product-shipping,
 body.single-product .summary .pm-shipping-results {width:100%!important;max-width:100%!important;min-width:0!important}
 body.single-product .summary .pm-shipping-results table {width:100%!important;font-size:13px!important;table-layout:auto!important}
 body.single-product .summary .pm-shipping-results table th,
 body.single-product .summary .pm-shipping-results table td {font-size:13px!important;line-height:1.4!important;padding:10px 8px!important;overflow-wrap:break-word!important}
 body.single-product .summary .pm-shipping-form {display:flex!important;flex-wrap:wrap!important;gap:10px!important}
 body.single-product .summary .pm-shipping-form input {flex:1 1 160px!important;min-width:0!important;min-height:44px!important}
 body.single-product .summary .pm-shipping-form button {min-height:44px!important}
 /* Cart coupon: one line when possible, accessible wrap when narrow. */
 body.woocommerce-cart .woocommerce-cart-form td.actions .coupon {flex:1 1 100%!important;display:flex!important;flex-wrap:wrap!important}
 body.woocommerce-cart .woocommerce-cart-form td.actions .coupon input {flex:1 1 170px!important;min-height:42px!important}
 body.woocommerce-cart .woocommerce-cart-form td.actions .coupon button {flex:0 1 auto;min-height:42px!important}
 body.woocommerce-checkout #place_order {display:block!important;width:100%!important;max-width:100%!important;min-height:48px!important}
}
@media(max-width:600px){
 body.single-product .summary .pm-shipping-results table th,
 body.single-product .summary .pm-shipping-results table td {font-size:12px!important;padding:8px 5px!important}
 body.single-product .pm-page .pm-bundle-action button {width:100%!important}
 body.woocommerce-cart .woocommerce-cart-form td.actions .coupon button {flex:1 1 120px}
}
