/* v2.2.3.205
   Mobile-only surgical spacing patch.
   Desktop/full version is not touched: every rule is inside max-width: 767px and excludes Quick View. */

@media (max-width: 767px) {
  /* FORMAT: make the visible "Стандарт" selector sit with equal top/bottom air. */
  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;
    padding-left: 18px !important;
    padding-right: 18px !important;
    vertical-align: top !important;
    background: var(--afp-panel-bg, #fff) !important;
    background-color: var(--afp-panel-bg, #fff) !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-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;
    margin-top: 18px !important;
    margin-right: 0 !important;
    margin-bottom: 18px !important;
    margin-left: 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 {
    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;
  }

  /* COST: add real inner air above/below the "Скрыть/Показать цены" pill without changing desktop. */
  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 {
    padding-top: 18px !important;
    padding-bottom: 24px !important;
    padding-left: 18px !important;
    padding-right: 18px !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-price-table-wrap,
  html body .afp-widget.afp-product-builder:not(.afp-widget--quickview) .afp-master-row--ranges .afp-price-table-wrap {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    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;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 12px !important;
    padding-right: 12px !important;
    padding-bottom: 12px !important;
    padding-left: 12px !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;
  }
}
