/* Mobile commerce @≤480 — tap ≥44px, sticky ATC, licence radios, checkout */
.hm-licence-explainer{background:#faf8f5;border:1px solid #e6e1d6;border-radius:8px;padding:.75rem .9rem;margin:0 0 1rem;font-size:.9rem}
.hm-licence-explainer p{margin:.25rem 0}
.hm-sticky-atc{display:none}
@media (max-width:480px){
  .single-product form.cart .single_add_to_cart_button,
  .single-product .single_add_to_cart_button{
    min-height:48px;padding:.85rem 1.1rem;font-size:1.05rem;width:100%;
  }
  /* YITH / Flatsome licence radios — enlarge hit area */
  .single-product .yith-wapo-option,
  .single-product .yith-wapo-option label,
  .single-product ul.yith-wapo-block-options li,
  .single-product .wapo-option label,
  .single-product .product-page-options label{
    min-height:44px;display:flex;align-items:center;padding:.55rem .7rem;margin:.25rem 0;
    border:1px solid #e2ddd3;border-radius:8px;cursor:pointer;
  }
  .single-product input[type=radio]{width:20px;height:20px;margin-right:.55rem;flex-shrink:0}
  .hm-sticky-atc{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:999;
    background:#fff;border-top:1px solid #ddd;padding:.65rem .9rem;gap:.65rem;align-items:center;
    box-shadow:0 -4px 16px rgba(0,0,0,.08);
  }
  .hm-sticky-atc .price{font-weight:600;margin:0;font-size:1rem;white-space:nowrap}
  .hm-sticky-atc button{
    flex:1;min-height:48px;padding:.75rem;background:#3b2a6b;color:#fff;border:0;border-radius:8px;font-size:1.05rem;
  }
  body.hm-sticky-pad{padding-bottom:4.75rem}
  /* Checkout */
  .woocommerce-checkout .form-row input.input-text,
  .woocommerce-checkout .form-row select,
  .woocommerce-checkout .form-row textarea{
    min-height:44px;font-size:16px!important; /* no iOS zoom */
  }
  .woocommerce-checkout #place_order,
  .woocommerce-checkout button[name=woocommerce_checkout_place_order]{
    min-height:48px;width:100%;font-size:1.05rem;border-radius:8px;
  }
  .woocommerce-checkout .hm-sticky-place{
    position:sticky;bottom:0;z-index:20;background:#fff;padding:.75rem 0 .5rem;
    border-top:1px solid #eee;margin-top:1rem;
  }
}

/* Critic 2026-11-05: mobile checkout totals must not clip; sticky ATC above NOW PLAYING */
@media (max-width:480px){
  /* Stack: Add to Cart stays at bottom (tappable); NOW PLAYING sits above it */
  body.single-product .hm-sticky-atc{
    z-index:100000;
    bottom:0;
    padding-bottom:calc(.65rem + env(safe-area-inset-bottom,0px));
  }
  body.single-product.hm-sticky-preview-pad .hm-sticky-preview{
    /* ATC bar ~98px; keep NOW PLAYING fully above it (critic mobile-06) */
    bottom:calc(6.5rem + env(safe-area-inset-bottom,0px));
    z-index:99990;
  }
  body.single-product.hm-sticky-preview-pad.hm-sticky-pad{
    padding-bottom:calc(10rem + env(safe-area-inset-bottom,0px));
  }
  /* Woo Blocks order summary — stop SUBTOTAL/TOTAL clipping to "$" */
  .wc-block-components-totals-item,
  .wc-block-components-order-summary-item,
  .wc-block-components-totals-wrapper .wc-block-components-totals-item{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:baseline;
    justify-content:space-between;
    gap:.75rem;
    width:100%;
    max-width:100%;
  }
  .wc-block-components-totals-item__label,
  .wc-block-components-order-summary-item__description{
    flex:1 1 auto;
    min-width:0;
  }
  .wc-block-components-totals-item__value,
  .wc-block-components-formatted-money-amount,
  .wc-block-formatted-money-amount,
  .wc-block-components-order-summary-item__total-price,
  .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
    flex:0 0 auto!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    max-width:none!important;
    margin-left:auto;
  }
  .wc-block-components-sidebar,
  .wc-block-components-order-summary,
  .wp-block-woocommerce-checkout-order-summary-block{
    overflow:visible!important;
  }

  /* Flux Checkout review table overflows ~415px at 375 — force fit (critic mobile-15) */
  .woocommerce-checkout-review-order,
  .woocommerce-checkout-review-order-table,
  table.shop_table.woocommerce-checkout-review-order-table{
    width:100%!important;
    max-width:100%!important;
    table-layout:fixed;
    margin-left:0!important;
    margin-right:0!important;
  }
  table.shop_table.woocommerce-checkout-review-order-table th,
  table.shop_table.woocommerce-checkout-review-order-table td{
    overflow-wrap:anywhere;
    word-break:break-word;
    padding-left:.4rem!important;
    padding-right:.4rem!important;
  }
  table.shop_table.woocommerce-checkout-review-order-table td.product-total,
  table.shop_table.woocommerce-checkout-review-order-table .product-total,
  table.shop_table.woocommerce-checkout-review-order-table tfoot td,
  table.shop_table.woocommerce-checkout-review-order-table .order-total td,
  table.shop_table.woocommerce-checkout-review-order-table .cart-subtotal td{
    text-align:right!important;
    white-space:nowrap!important;
    width:32%;
  }
  table.shop_table.woocommerce-checkout-review-order-table .woocommerce-Price-amount{
    white-space:nowrap!important;
    display:inline-block;
    max-width:100%;
  }
  .flux-checkout__sidebar-header{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    padding-right:16px!important;
    margin-right:0!important;
    overflow:hidden;
  }
  .flux-checkout__sidebar-header-inner{
    max-width:100%;
    gap:.5rem;
  }
  .flux-checkout__sidebar-header-total,
  .flux-checkout__sidebar-header-total .woocommerce-Price-amount{
    white-space:nowrap!important;
    flex:0 0 auto;
  }
}

/* Sticky ATC shows chosen licence (critic product-page note) */
@media (max-width:480px){
  .hm-sticky-atc__meta{display:flex;flex-direction:column;gap:.1rem;min-width:4.5rem}
  .hm-sticky-atc__lic{margin:0;font-size:11px;line-height:1.2;color:#444}
  .hm-sticky-atc .price{margin:0}
  /* Flux/Woo duplicate qty controls @375 */
  .woocommerce-checkout-review-order-table .quantity .qty::-webkit-outer-spin-button,
  .woocommerce-checkout-review-order-table .quantity .qty::-webkit-inner-spin-button{margin:0}
  .woocommerce-checkout-review-order-table .quantity{
    display:inline-flex!important;align-items:center;gap:0;max-width:7rem;overflow:hidden
  }
  .woocommerce-checkout-review-order-table .quantity .minus,
  .woocommerce-checkout-review-order-table .quantity .plus,
  .woocommerce-checkout-review-order-table .quantity button{
    width:2rem;height:2rem;min-width:2rem;padding:0;line-height:1
  }
  .woocommerce-checkout-review-order-table .quantity .qty{
    width:2.4rem!important;min-height:2rem;text-align:center;margin:0
  }
  /* Hide Flatsome duplicate absolute +/- if both sets present */
  .woocommerce-checkout-review-order-table .quantity .button.minus+input+ .button.plus{ }
  .flux-checkout .quantity .ux-quantity{display:none!important}
}
