/*
 * Zone3Dplus Beta v32.1 / Phase 4L — Guest + Commerce mobile finishing layer.
 * Pure CSS, OFF by default. All rules require server-side body class
 * .z3dqa-public-4l AND the approved page class; desktop styles untouched.
 * In particular: NEVER style Stripe Elements/Link, payment iframes,
 * Turnstile widgets/iframes, submit behavior, payment methods or pricing.
 */
@media (max-width: 760px) {
  /* GUEST ACCOUNT & PASSWORD RECOVERY */
  body.z3dqa-public-4l.z3dqa-auth-native .z3dqa-auth-shell,
  body.z3dqa-public-4l.z3dqa-auth-native .z3dqa-auth-marketing,
  body.z3dqa-public-4l.z3dqa-auth-native .z3dqa-auth-entry,
  body.z3dqa-public-4l.z3dqa-auth-native .z3dqa-auth-card,
  body.z3dqa-public-4l.z3dqa-auth-native .z3dqa-auth-copy {
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }
  body.z3dqa-public-4l.z3dqa-auth-native .z3dqa-auth-marketing {
    padding-bottom:0!important;
  }
  /* Keep the exact approved manufacturing illustration visible without
     making customers scroll past a full desktop-height scene to sign in. */
  body.z3dqa-public-4l.z3dqa-auth-native img.z3dqa-auth-illustration {
    max-height:300px!important;
    object-fit:contain!important;
    object-position:center top;
  }
  body.z3dqa-public-4l.z3dqa-auth-native .z3dqa-auth-panel :is(input.input-text,input.woocommerce-Input,input[type="email"],input[type="password"],input[type="text"]):not([type="hidden"]) {
    font-size:16px!important;
  }
  body.z3dqa-public-4l.z3dqa-auth-native .z3dqa-auth-panel :is(.z3dqa-auth-eye,button[type="submit"]),
  body.z3dqa-public-4l.z3dqa-auth-native .z3dqa-auth-tab,
  body.z3dqa-public-4l.z3dqa-auth-recovery .z3dqa-auth-back {
    min-height:44px;
  }
  body.z3dqa-public-4l.z3dqa-auth-recovery .z3dqa-auth-recovery-card,
  body.z3dqa-public-4l.z3dqa-auth-recovery .z3dqa-auth-recovery-content,
  body.z3dqa-public-4l.z3dqa-auth-native .z3dqa-auth-panel {
    min-width:0;
    overflow-wrap:break-word;
  }
  /* Cart, checkout & receipt outer layout only: do not target payment UI. */
  body.z3dqa-public-4l.z3dqa-page-cart .woocommerce,
  body.z3dqa-public-4l.z3dqa-page-cart .woocommerce-cart-form,
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals,
  body.z3dqa-public-4l.z3dqa-page-checkout form.checkout,
  body.z3dqa-public-4l.z3dqa-page-checkout #customer_details,
  body.z3dqa-public-4l.z3dqa-page-checkout #order_review,
  body.z3dqa-public-4l.z3dqa-page-received .z3dqa-received {
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }
  /* Do not change WC model/remove/quantity handlers. */
  body.z3dqa-public-4l.z3dqa-page-cart .m3dreader .m3dreader__preview-cart--title,
  body.z3dqa-public-4l.z3dqa-page-cart .m3dreader .m3dreader__preview-cart--prop-value,
  body.z3dqa-public-4l.z3dqa-page-received .z3dqa-received__model h3 {
    overflow-wrap:anywhere;
    word-break:normal;
  }
  body.z3dqa-public-4l.z3dqa-page-cart .m3dreader .m3dreader__preview-cart--content,
  body.z3dqa-public-4l.z3dqa-page-received .z3dqa-received__model-info,
  body.z3dqa-public-4l.z3dqa-page-received .z3dqa-received__intro {
    min-width:0;
  }
  body.z3dqa-public-4l.z3dqa-page-cart .m3dreader .m3dreader__preview-cart--action a.m3dreader__btn,
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .wc-proceed-to-checkout a.checkout-button,
  body.z3dqa-public-4l.z3dqa-page-received .z3dqa-received a.z3dqa-received__button {
    min-height:44px;
    box-sizing:border-box;
  }
  /* Only native address and contact controls, never Stripe payment inputs. */
  body.z3dqa-public-4l.z3dqa-page-checkout #customer_details .form-row,
  body.z3dqa-public-4l.z3dqa-page-checkout #customer_details .form-row .woocommerce-input-wrapper {
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }
  body.z3dqa-public-4l.z3dqa-page-checkout #customer_details .form-row :is(input.input-text,select,textarea) {
    font-size:16px;
    max-width:100%;
  }
  body.z3dqa-public-4l.z3dqa-page-checkout .woocommerce-checkout-review-order-table,
  body.z3dqa-public-4l.z3dqa-page-checkout .woocommerce-checkout-review-order-table :is(th,td) {
    overflow-wrap:break-word;
  }
  body.z3dqa-public-4l.z3dqa-page-received .z3dqa-received__total-row > *,
  body.z3dqa-public-4l.z3dqa-page-received .z3dqa-received__specs dd {
    min-width:0;
    overflow-wrap:break-word;
  }
  body.z3dqa-public-4l.z3dqa-page-received .z3dqa-received__panel-heading {
    min-width:0;
    gap:9px;
  }
}
@media (max-width: 520px) {
  /* Two registration name inputs become readable 1-column controls. */
  body.z3dqa-public-4l.z3dqa-auth-native .z3dqa-auth-name-fields {
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
  }
  body.z3dqa-public-4l.z3dqa-auth-native img.z3dqa-auth-illustration {
    max-height:230px!important;
  }
  body.z3dqa-public-4l.z3dqa-page-received .z3dqa-received__model h3 {
    hyphens:auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.z3dqa-public-4l.z3dqa-auth-native :is(a,button,input),
  body.z3dqa-public-4l.z3dqa-page-cart .woocommerce :is(a,button,input),
  body.z3dqa-public-4l.z3dqa-page-checkout #customer_details :is(input,select,textarea),
  body.z3dqa-public-4l.z3dqa-page-received .z3dqa-received :is(a,button) {
    transition:none!important;
  }
}
@media (forced-colors: active) {
  body.z3dqa-public-4l.z3dqa-auth-native :is(.z3dqa-auth-tab,.z3dqa-auth-eye):focus-visible,
  body.z3dqa-public-4l.z3dqa-page-cart .woocommerce a:focus-visible,
  body.z3dqa-public-4l.z3dqa-page-received .z3dqa-received a:focus-visible {
    outline:2px solid Highlight!important;
    outline-offset:3px;
  }
}

/*
 * Beta v32.1 mobile cart totals hotfix — only the approved Phase 4L cart.
 * WooCommerce and the theme both supply a responsive data-title label on
 * small screens. The extra generated label steals room from price amounts.
 * Keep shipping rates full width and amounts intact; do not alter totals,
 * shipping method selection, cart actions, or any payment elements.
 */
@media (max-width: 760px) {
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals table.shop_table,
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals table.shop_table tbody,
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals table.shop_table tfoot {
    display:block!important;
    width:100%!important;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals table.shop_table tr {
    display:grid!important;
    grid-template-columns:minmax(0, 1fr) max-content;
    align-items:start;
    column-gap:12px;
    width:100%!important;
    max-width:100%;
    box-sizing:border-box;
  }
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals table.shop_table tr > th,
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals table.shop_table tr > td {
    display:block!important;
    box-sizing:border-box;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    float:none!important;
    padding:13px 3px!important;
    margin:0!important;
  }
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals table.shop_table tr:not(.shipping) > td {
    text-align:right!important;
    white-space:nowrap!important;
    justify-self:end;
  }
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals table.shop_table tr:not(.shipping) > td .woocommerce-Price-amount {
    display:inline-block;
    white-space:nowrap!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  /* Suppress only the redundant responsive title in the totals table. */
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals table.shop_table tr > td::before {
    content:none!important;
    display:none!important;
  }
  /* Shipping needs a whole row, not 70% of a narrow mobile table. */
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals table.shop_table tr.shipping {
    display:block!important;
  }
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals table.shop_table tr.shipping > th,
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals table.shop_table tr.shipping > td {
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    text-align:left!important;
    box-sizing:border-box;
  }
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals table.shop_table tr.shipping > th {
    padding-bottom:5px!important;
  }
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals table.shop_table tr.shipping > td {
    padding-top:5px!important;
  }
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals .woocommerce-shipping-methods,
  body.z3dqa-public-4l.z3dqa-page-cart .cart-collaterals .cart_totals .woocommerce-shipping-methods li {
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    min-width:0;
    white-space:normal!important;
    overflow-wrap:break-word;
  }
}
