/* ms3Variants в вёрстке темы militarysale.ru.
   Отдельным файлом, а не <style> внутри чанка: для Fenom `{` — начало тега, и в некоторых
   конфигурациях (боевой сервер) вывод чанка попадает под повторный разбор уже после того,
   как {ignore} израсходован, — страница товара тогда отдаёт 0 байт с
   «Unexpected tag 'border'». Файл этой ловушки лишён по устройству. */
.ms3-variant-row.active { border-color: #f60; box-shadow: inset 0 0 0 1px #f60; }
/* Out-of-stock size (Sergey 05.10, msg 7316/7317): not crossed out but faded and inactive,
   not-allowed cursor, "Нет в наличии" hint on hover (desktop) or tap (mobile, class set by
   ms3variants-oos.js, which also blocks the click). The row itself stays at full opacity and
   only its content fades, otherwise the hint would be faded too. */
.ms3-variant-row.ms3-variant-out-of-stock {
    opacity: 1; text-decoration: none; cursor: not-allowed;
    color: rgba(29, 23, 19, .35); border-color: rgba(29, 23, 19, .06);
}
.ms3-variant-row.ms3-variant-out-of-stock:hover { border-color: rgba(29, 23, 19, .06); }
.ms3-variant-row.ms3-variant-out-of-stock::after {
    content: "Нет в наличии"; position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 5;
    transform: translateX(-50%); padding: 4px 8px; border-radius: 4px; background: #1d1713;
    color: #fff; font-size: 12px; line-height: 16px; text-transform: none; white-space: nowrap;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s;
}
.ms3-variant-row.ms3-variant-out-of-stock:hover::after,
.ms3-variant-row.ms3-variant-out-of-stock.ms3v-oos-hint::after { opacity: 1; visibility: visible; }

/* "В корзине: N шт." (Alexander 24.09 evening p.2): ms3variants.js writes this text into the size
   button and the button grows to three lines. Shown as an orange dot with a tick in the top right
   corner instead; the text stays for screen readers and as the tooltip-like hover title. */
.ms3-variant-row { position: relative; }
.ms3-variant-row .ms3-variant-cart-badge {
    position: absolute; top: -7px; right: -7px; z-index: 2;
    width: 18px; height: 18px; border-radius: 9999px; background: #f60;
    box-shadow: 0 0 0 2px #fff; overflow: hidden; color: transparent; font-size: 0; line-height: 0;
    pointer-events: none;
}
.ms3-variant-row .ms3-variant-cart-badge::before {
    content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Size required (2026-10-07, Alexander msg 8638): "В корзину" pressed without a chosen size.
   ms3variants-oos.js adds .ms3v-need-size to the sizes box and the "Выберите размер" line. */
.ms3v-size-hint { display: none; margin-top: 2px; color: #d6301f; font-size: 13px; line-height: 18px; font-weight: 500; }
.ms3v-need-size .ms3v-size-hint { display: block; }
.ms3v-need-size .ms3-variant-row:not(.ms3-variant-out-of-stock) { border-color: #d6301f; }
