/* v2.2.3.207
   Mobile-only spacing restoration without delayed JS.
   Fixes the "Стандарт" vertical balance and keeps the price toggle air from v2.2.3.205,
   while preserving the no-jitter behavior from v2.2.3.206. */

@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: 18px !important;
    --afp-format-control-margin-bottom: 18px !important;
    --afp-format-row-gap-y: 18px !important;
    --afp-ranges-cell-padding: 18px 18px 24px !important;
    --afp-price-table-wrap-margin: 0 !important;
    --afp-range-shell-margin: 0 !important;
    --afp-range-shell-padding: 12px !important;
  }

  html body .single-product div.product .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--format > td.afp-master-cell--format,
  html body .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--format > td.afp-master-cell--format {
    background: var(--afp-panel-bg, #fff) !important;
    background-color: var(--afp-panel-bg, #fff) !important;
    background-image: none !important;
    box-shadow: none !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 {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  html body .single-product div.product .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--format .afp-format-dropdown,
  html body .single-product div.product .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--format .afp-format-trigger,
  html body .single-product div.product .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--format .afp-control--format-simple select#afp_format,
  html body .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--format .afp-format-dropdown,
  html body .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--format .afp-format-trigger,
  html body .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--format .afp-control--format-simple select#afp_format {
    box-sizing: border-box !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !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 > td,
  html body .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--ranges > td {
    background-image: none !important;
  }

  html body .single-product div.product .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--ranges .afp-price-table-wrap,
  html body .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--ranges .afp-price-table-wrap {
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  html body .single-product div.product .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--ranges .afp-range-shell,
  html body .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--ranges .afp-range-shell {
    box-sizing: border-box !important;
    background-image: none !important;
  }

  html body .single-product div.product .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--ranges .afp-range-toggle,
  html body .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--ranges .afp-range-toggle {
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 !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: 16px !important;
  }
}
