/* 24.11.2026 «Цена по запросу» — local/php_interface/altx_price_request.php */
:root { --altx-preq-accent: #0086c9; --altx-preq-ink: #1f2933; --altx-preq-muted: #5f6b76; --altx-preq-line: #d5dbe1; --altx-preq-bad: #c62828; }

.altx-preq-price { display: none; }
html.altx-preq-on .catalog_detail .altx-preq-price {
    display: block; margin: 0 0 6px; font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--altx-preq-ink);
}
/* Строка цены остаётся в потоке нулевой высоты: по её координатам card-3col.js решает, показывать ли плавающую
   плашку покупки (при display:none rect.top = 0, и плашка висела поверх первого экрана). */
html.altx-preq-on .catalog_detail .prices_block .cost {
    display: block !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
    border: 0 !important; overflow: hidden !important; visibility: hidden !important;
}
/* Цены, «₽ за литр/м²», количество, «в 1 клик», рассрочка, карта, торг — у такой фасовки их нет. */
html.altx-preq-on .catalog_detail .altx-ml-unit-price,
html.altx-preq-on .catalog_detail .altx-coverage,
html.altx-preq-on .catalog_detail .offer_buy_block .counter_block,
html.altx-preq-on .catalog_detail .offer_buy_block .wrapp_one_click,
html.altx-preq-on .catalog_detail .split,
/* Только вошедшим: цена по дисконтной карте (card-price.js оставляет строку прошлой фасовки) и «Торговаться». */
html.altx-preq-on .catalog_detail .altx-cardprice,
html.altx-preq-on .catalog_detail .altx-torg,
html.altx-preq-on .catalog_detail .altx-torg-btn,
html.altx-preq-on .catalog_detail .altx-torg-teaser { display: none !important; }

.catalog_detail .altx-preq-btn { width: 100%; cursor: pointer; }
/* Закреплённая сводка внизу карточки (lower.js): надпись вместо пустой цены, кнопка открывает то же окно. */
html.altx-preq-on .altx-lower-sum-price { display: block !important; }
html.altx-preq-on .altx-lower-sum-price b:empty::before { content: "Цена по запросу"; }
html.altx-preq-on .altx-lower-sum-buy[hidden] { display: block !important; }

.altx-preq-dlg {
    position: fixed; inset: 0; margin: auto; height: fit-content;
    width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
    padding: 28px 24px 24px; border: 0; border-radius: 16px; color: var(--altx-preq-ink);
    box-shadow: 0 24px 60px rgba(15, 30, 45, .28);
}
.altx-preq-dlg::backdrop { background: rgba(15, 25, 35, .55); }
.altx-preq-dlg form, .altx-preq-done { position: relative; display: grid; gap: 12px; }
.altx-preq-dlg [hidden] { display: none !important; }
.altx-preq-x {
    position: absolute; top: -18px; right: -12px; width: 40px; height: 40px; border: 0; background: none;
    font-size: 28px; line-height: 1; color: var(--altx-preq-muted); cursor: pointer; border-radius: 50%;
}
.altx-preq-x:hover, .altx-preq-x:focus-visible { color: var(--altx-preq-ink); background: #f0f3f6; }
.altx-preq-title { margin: 0; padding-right: 28px; font-size: 22px; line-height: 1.25; font-weight: 700; }
.altx-preq-item { margin: 0; font-weight: 600; line-height: 1.35; }
.altx-preq-lead { margin: 0; color: var(--altx-preq-muted); font-size: 14px; line-height: 1.45; }
.altx-preq-field { display: grid; gap: 4px; margin: 0; font-weight: 400; }
.altx-preq-field span { font-size: 13px; color: var(--altx-preq-muted); }
.altx-preq-field input, .altx-preq-field textarea {
    width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid var(--altx-preq-line);
    border-radius: 10px; font: inherit; font-size: 16px; color: var(--altx-preq-ink); background: #fff;
}
.altx-preq-field textarea { resize: vertical; min-height: 76px; }
.altx-preq-field input:focus, .altx-preq-field textarea:focus { outline: 2px solid var(--altx-preq-accent); outline-offset: 0; border-color: transparent; }
.altx-preq-qty input { max-width: 140px; }
.altx-preq-dlg [aria-invalid="true"] { border-color: var(--altx-preq-bad); }
.altx-preq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.altx-preq-consent { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 0; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--altx-preq-muted); }
.altx-preq-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; }
.altx-preq-consent input[aria-invalid="true"] { outline: 2px solid var(--altx-preq-bad); }
.altx-preq-consent a { color: var(--altx-preq-accent); }
.altx-preq-err { min-height: 0; color: var(--altx-preq-bad); font-size: 14px; line-height: 1.4; }
.altx-preq-err:empty { display: none; }
.altx-preq-send, .altx-preq-ok { width: 100%; }
@media (max-width: 480px) {
    .altx-preq-dlg { padding: 24px 16px 18px; }
    html.altx-preq-on .catalog_detail .altx-preq-price { font-size: 22px; }
}
