/* v2.2.3.208
   Mobile-only final spacing correction:
   - moves the Format selector up so the visible top/bottom air is balanced;
   - reduces the gap between the Show/Hide prices button and the price table;
   - keeps desktop/full layout untouched and keeps the no-jitter toggle behavior. */

@media (max-width: 767px) {
  html body .single-product div.product .afp-widget.afp-product-builder:not(.afp-widget--quickview),
  html body .afp-widget.afp-product-builder:not(.afp-widget--quickview) {
    --afp-format-control-margin-top: 10px !important;
    --afp-format-control-margin-bottom: 26px !important;
    --afp-range-panel-padding: 6px 8px 16px !important;
  }

  html body .single-product div.product .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-table > tbody > tr.afp-master-row--format > td.afp-master-cell--format,
  html body .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-table > tbody > tr.afp-master-row--format > td.afp-master-cell--format {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    vertical-align: top !important;
  }

  html body .single-product div.product .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--format .afp-control--format-simple,
  html body .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--format .afp-control--format-simple {
    margin-top: 10px !important;
    margin-bottom: 26px !important;
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
  }

  html body .single-product div.product .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--ranges .afp-range-toggle[aria-expanded="true"],
  html body .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--ranges .afp-range-toggle[aria-expanded="true"] {
    margin-bottom: 6px !important;
  }

  html body .single-product div.product .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--ranges .afp-range-panel,
  html body .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--ranges .afp-range-panel {
    padding-top: 6px !important;
    padding-right: 8px !important;
    padding-bottom: 16px !important;
    padding-left: 8px !important;
  }

  html body .single-product div.product .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--ranges .afp-price-table,
  html body .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--ranges .afp-price-table {
    margin-top: 0 !important;
  }
}
