#limitaffiliate-wrapper {
    margin-bottom: 20px;
}

.seoratings-widget__title--product {
    border: initial !important;
    text-transform: initial !important;
}

.seoratings-widget__icon--title {
    top: 4px !important;
}

/* GARAGE812: скрываем сообщение об ошибке, если QR-код оплаты уже сформирован */
.c-payment-options:has(.c-payment-item-qr) > .c-payment-item:has(.error) {
    display: none !important;
}



/* ==================================================
   GARAGE812 — красивый выбор типа оплаты
   Только оформление. Логика radio не меняется.
   ================================================== */

.garage812-pricetype-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 12px;
}

.garage812-pricetype-buttons input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none;
}

.garage812-pricetype-buttons .pricetype-radio-label {
    position: relative;
    display: flex !important;
    align-items: center;
    min-height: 48px;
    box-sizing: border-box;

    margin: 0 !important;
    padding: 9px 14px 9px 54px !important;

    background: #ffffff;
    border: 1px solid #e1e5ee;
    border-radius: 14px;

    color: #222222;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;

    cursor: pointer;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.garage812-pricetype-buttons .pricetype-radio-label::before {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    background: #f3f6ff;
    border-radius: 10px;

    color: #3156c7;
    font-size: 18px;
    font-weight: 700;

    transition:
        background-color .18s ease,
        color .18s ease;
}

.garage812-pricetype-buttons label[for="pricetype-radio-1"]::before {
    content: "💳";
    font-size: 17px;
}

.garage812-pricetype-buttons label[for="pricetype-radio-0"]::before {
    content: "₽";
}

.garage812-pricetype-buttons .pricetype-radio-label:hover {
    border-color: #b6c4eb;
    background: #fafbff;
    box-shadow: 0 4px 14px rgba(49, 86, 199, .08);
}

.garage812-pricetype-buttons input[type="radio"]:checked + .pricetype-radio-label {
    background: #f3f6ff;
    border-color: #3156c7;
    box-shadow: 0 0 0 2px rgba(49, 86, 199, .08);
    color: #183a9b;
    font-weight: 600;
}

.garage812-pricetype-buttons input[type="radio"]:checked + .pricetype-radio-label::before {
    background: #3156c7;
    color: #ffffff;
}

.garage812-pricetype-buttons .pricetype-radio-label:active {
    transform: scale(.99);
}

@media (max-width: 767px) {
    .garage812-pricetype-buttons {
        gap: 7px;
    }

    .garage812-pricetype-buttons .pricetype-radio-label {
        min-height: 46px;
        padding: 8px 10px 8px 50px !important;
        border-radius: 13px;
        font-size: 12.5px;
    }

    .garage812-pricetype-buttons .pricetype-radio-label::before {
        left: 9px;
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }
}



/* GARAGE812 — цена внутри кнопок типа оплаты */

.garage812-pricetype-buttons .pricetype-radio-label {
    width: 100%;
    padding-right: 92px !important;
}

.garage812-pricetype-price {
    margin-left: auto;
    padding-left: 10px;

    white-space: nowrap;

    font-size: 14px;
    line-height: 1;
    font-weight: 700;

    color: #171717;
}

.garage812-pricetype-buttons
.pricetype-radio-button:checked
+ .pricetype-radio-label
.garage812-pricetype-price {
    color: #3156c7;
}

@media (max-width: 767px) {
    .garage812-pricetype-buttons .pricetype-radio-label {
        padding-right: 82px !important;
    }

    .garage812-pricetype-price {
        font-size: 13px;
    }
}



/* GARAGE812 — финальное оформление текста и цены в кнопках оплаты */

.garage812-pricetype-buttons .pricetype-radio-label {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;

    width: 100%;
    min-height: 46px;

    padding-left: 56px !important;
    padding-right: 12px !important;
}

.garage812-pricetype-text {
    display: block;
    min-width: 0;

    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;

    text-align: left;
}

.garage812-pricetype-price {
    display: block;

    margin: 0 !important;
    padding: 0 !important;

    white-space: nowrap;

    font-size: 13px;
    line-height: 1;
    font-weight: 700;

    color: #111;
    text-align: right;
}

.garage812-pricetype-buttons
.pricetype-radio-button:checked
+ .pricetype-radio-label
.garage812-pricetype-text {
    font-weight: 600;
}

.garage812-pricetype-buttons
.pricetype-radio-button:checked
+ .pricetype-radio-label
.garage812-pricetype-price {
    color: #3156c7;
}

@media (max-width: 767px) {
    .garage812-pricetype-buttons .pricetype-radio-label {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 8px;

        padding-left: 52px !important;
        padding-right: 10px !important;
    }

    .garage812-pricetype-text,
    .garage812-pricetype-price {
        font-size: 12.5px;
    }
}


/* Наличие: «Нет в наличии» серым, а не красным. Красный оставлен только под реальные ошибки.
   Добавлено 25.09.2026. */
.product-available_out-of-stock {
    color: #686868;
}

/* Подсказка «?» у статуса «Под заказ»: залитый кружок и свой тултип.
   Системный title показывается примерно через секунду, задержку задать нельзя,
   поэтому рисуем плашку сами — появляется сразу. Добавлено 25.09.2026. */
.product-available__help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 15px;
    height: 15px;
    margin-left: 6px;
    border-radius: 50%;
    background-color: currentColor; /* кружок в цвет статуса */
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
}

.product-available__help-sign {
    color: #ffffff;
}

.product-available__help::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    transform: translateX(-50%);
    width: 232px;
    padding: 9px 11px;
    border-radius: 7px;
    background-color: #1b1b1b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1000;
    transition: opacity .09s linear, visibility 0s linear .09s;
}

.product-available__help::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #1b1b1b;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1000;
    transition: opacity .09s linear, visibility 0s linear .09s;
}

.product-available__help:hover::after,
.product-available__help:hover::before,
.product-available__help:focus::after,
.product-available__help:focus::before {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* «Под заказ» тем же зелёным, что и «В наличии»: отличают часы и «?».
   Класс low в теме освободился — промежуточных статусов больше нет. Добавлено 25.09.2026. */
.product-available_low {
    color: #27ae60;
}

/* Произвольный стикер (у нас это «Под заказ») в теме остаётся без фона —
   белый текст на белой картинке. Даём ему вид как у «хит»/«новинка». */
.product-badge.product-badge_custom:not(:has(.badge)) {
    padding: 4px 10px;
    color: #ffffff;
    background-color: #27ae60;
}

/* «Есть на складе» (товар на удалённом складе) — зелёный, как и остальные «получить можно».
   Переиспользован освободившийся класс critical. Добавлено 25.09.2026. */
.product-available_critical {
    color: #27ae60;
}

/* ── Телефон и планшет: кнопка покупки выше. Добавлено 29.10.2026 ──
   На узких экранах тема выстраивает карточку в одну колонку, и до «В корзину»
   приходилось прокручивать около полутора экранов (1125 px от верха страницы).
   Ниже меняется только порядок уже существующих блоков — разметка не трогалась.
   Наверх поднимаются наличие, цена и кнопки покупки; вниз уходят плашки
   «По карте / Со скидкой за наличные», строка о бонусах, кнопка «Поделиться»,
   «Следить за снижением цены» и короткий список характеристик.
   Итог: кнопка на 855 px вместо 1125 px. */
@media (max-width: 1023px) {
    .product-cart-form__columns {
        flex-direction: column;
    }

    .product-cart-form__columns-additional { order: 1; }
    .product-cart-form__columns-main { order: 2; }

    .product-add-to-cart {
        display: flex;
        flex-direction: column;
    }

    .product-add-to-cart__skus-stocks { order: 1; }
    .product-add-to-cart__prices { order: 2; }
    .product-add-to-cart__controls { order: 3; }
    .product-add-to-cart__buy-one-click { order: 4; }
    .garage812-pricetype-buttons { order: 5; }
    .product-add-to-cart__bonuses { order: 6; }
    .product-add-to-cart__whatsapp { order: 7; }
    .product-add-to-cart__analog { order: 8; }
    .product-add-to-cart__ecommerce { order: 9; }
    .product-add-to-cart__pricedown { order: 10; }
}

/* ── Оформление: единственный вариант доставки — в цвет сайта. Добавлено 29.10.2026 ──
   Когда вариант доставки один (в Петербурге это «Самовывоз из магазина»), ядро
   показывает список заблокированным — серой плашкой, которую легко принять за
   неактивное или недоступное поле. Красим в основной цвет темы #3156c7, как
   выбранная карточка типа доставки. Обычный список с несколькими пунктами
   (точки СДЭК в других городах) остаётся как был. */
#js-order-form .js-variants-select.is-locked .wa-dropdown-toggle {
    background: #eef1fb !important;
    border: 1px solid #3156c7 !important;
    color: #3156c7 !important;
    font-weight: 600 !important;
}

/* ── Карточка типа доставки: текст не должен налезать на кружок. 29.10.2026 ──
   Кружок выбора (.wa-type-icon) позиционирован абсолютно и лежит поверх
   содержимого карточки. Зазор до текста был всего пара пикселей, и длинное
   название («Самовывоз из магазина», «Пункт выдачи СДЭК») наезжало на него.
   Отступаем содержимое с обеих сторон: текст остаётся по центру, но при
   нехватке места переносится, а не налезает. */
#js-order-form .wa-type-wrapper .wa-name,
#js-order-form .wa-type-wrapper .wa-price,
#js-order-form .wa-type-wrapper .wa-date {
    padding-left: 20px;
    padding-right: 20px;
}

/* ── Поле адреса при курьере — в цвет темы. Добавлено 29.10.2026 ──
   Адрес перестал быть обязательным, звёздочка пропала, и поле потерялось:
   рамка у него почти белая (#f2f2f2). Подсвечиваем рамку и подпись основным
   цветом #3156c7, как плашку выбранного варианта доставки. Фон оставляем
   белым — поле должно читаться как поле для ввода, а не как надпись. */
#js-order-form [name="details[shipping_address][street]"] {
    border: 1px solid #3156c7 !important;
    background: #ffffff !important;
}

#js-order-form .wa-field-wrapper:has([name="details[shipping_address][street]"]) .wa-label {
    color: #3156c7 !important;
    font-weight: 600 !important;
}

/* Набор способов оплаты Т-Банка в карточке оплаты, 29.10.2026 */
#js-order-form .g812-paybadges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
#js-order-form .g812-paybadge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid #dde2ea; border-radius: 20px; background: #ffffff; font-size: 12px; line-height: 1.3; color: #14213d; white-space: nowrap; }
#js-order-form .g812-paybadge__dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); flex: 0 0 auto; }
#js-order-form .g812-paycard { height: 18px; width: auto; max-width: 36px; flex: 0 0 auto; }
#js-order-form .g812-pricemode .g812-paybadges { margin-top: 12px; }


/* Логотип способа оплаты: ядро выводит картинку без размеров, 29.10.2026 */
#js-order-form .wa-step-payment-section .wa-image-wrapper { flex: 0 0 auto; width: 48px; display: flex; align-items: center; justify-content: center; }
#js-order-form .wa-step-payment-section .wa-image-wrapper img { max-width: 44px; max-height: 30px; width: auto; height: auto; object-fit: contain; }

/* Способ оплаты из другого типа цены - такая же карточка с кружком, 29.10.2026 */
#js-order-form .wa-method-wrapper.g812-pseudo { cursor: pointer; }
#js-order-form .wa-method-wrapper.g812-pseudo .wa-payment-name .link { color: #3156c7; }
#js-order-form .wa-method-wrapper.g812-pseudo:hover .wa-method { border-color: #3156c7; }
