/* КАТАЛОГ: "Нет в наличии" -> "Под заказ" */
.t-store__card__sold-out-msg,
.t-catalog__card__sold-out-msg {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

.t-store__card__sold-out-msg::after,
.t-catalog__card__sold-out-msg::after {
    content: "Под заказ" !important;
    display: inline-block !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #ff7a00 !important;
}


/* ПОПАП ТОВАРА: "Нет в наличии" -> "Под заказ" */
.t-store__prod-popup__btn_disabled .js-store-prod-popup-buy-btn-txt,
.t-catalog__prod-popup__btn_disabled .js-store-prod-popup-buy-btn-txt,
.t-store__prod-popup__btn_disabled .js-catalog-prod-popup-buy-btn-txt,
.t-catalog__prod-popup__btn_disabled .js-catalog-prod-popup-buy-btn-txt {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

.t-store__prod-popup__btn_disabled .js-store-prod-popup-buy-btn-txt::after,
.t-catalog__prod-popup__btn_disabled .js-store-prod-popup-buy-btn-txt::after,
.t-store__prod-popup__btn_disabled .js-catalog-prod-popup-buy-btn-txt::after,
.t-catalog__prod-popup__btn_disabled .js-catalog-prod-popup-buy-btn-txt::after {
    content: "Под заказ" !important;
    display: inline-block !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}



/* ===== Отметка на карточке товара Tilda: прямоугольник слева ===== */

/* Карточка товара */
.t-store__card,
.js-product,
.t-store__card__imgwrapper,
.t-store__card__imgwrapper_1-1,
.t-store__card__imgwrapper_4-3,
.t-store__card__img,
.t776__imgwrapper,
.t778__imgwrapper,
.t754__imgwrapper,
.t744__imgwrapper,
.t760__imgwrapper,
.t762__imgwrapper,
.t786__imgwrapper,
.t951__imgwrapper,
.t1002__imgwrapper,
.t1025__imgwrapper {
    position: relative !important;
}

/* Обертка отметки — переносим в левый верхний угол */
.t-store__card__mark-wrapper,
.t-store__card__markwrapper,
.t-store__card [class*="markwrapper"],
.t-store__card [class*="mark-wrapper"],
.js-product [class*="markwrapper"],
.js-product [class*="mark-wrapper"],
[class*="__markwrapper"],
[class*="__mark-wrapper"],
.t776__markwrapper,
.t778__markwrapper,
.t754__markwrapper,
.t744__markwrapper,
.t760__markwrapper,
.t762__markwrapper,
.t786__markwrapper,
.t951__markwrapper,
.t1002__markwrapper,
.t1025__markwrapper {
    position: absolute !important;

    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;

    inset: 12px auto auto 12px !important;

    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;

    z-index: 99 !important;
}

/* Сама отметка */
.t-store__card__mark,
.t776__mark,
.t778__mark,
.t754__mark,
.t744__mark,
.t760__mark,
.t762__mark,
.t786__mark,
.t951__mark,
.t1002__mark,
.t1025__mark,
.t-store__card [class*="__mark"]:not([class*="wrapper"]),
.js-product [class*="__mark"]:not([class*="wrapper"]) {
    position: relative !important;

    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;

    width: auto !important;
    height: auto !important;

    min-width: 90px !important;
    max-width: 170px !important;
    min-height: 0 !important;

    padding: 8px 12px !important;

    border-radius: 10px !important;

    background: linear-gradient(0.843turn, rgba(100,200,189,1) 0%, rgba(9,74,111,1) 87%) !important;
    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    text-align: center !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    white-space: normal !important;
    word-break: normal !important;

    box-sizing: border-box !important;
    border: none !important;
    box-shadow: 0 6px 16px rgba(13, 37, 84, 0.22) !important;

    margin: 0 !important;
    transform: none !important;
}

/* Убираем круглую форму у вложенных элементов */
.t-store__card__mark *,
.t776__mark *,
.t778__mark *,
.t754__mark *,
.t744__mark *,
.t760__mark *,
.t762__mark *,
.t786__mark *,
.t951__mark *,
.t1002__mark *,
.t1025__mark * {
    border-radius: 10px !important;
}

/* Мобильная версия */
@media screen and (max-width: 640px) {
    .t-store__card__mark-wrapper,
    .t-store__card__markwrapper,
    .t-store__card [class*="markwrapper"],
    .t-store__card [class*="mark-wrapper"],
    .js-product [class*="markwrapper"],
    .js-product [class*="mark-wrapper"],
    [class*="__markwrapper"],
    [class*="__mark-wrapper"],
    .t776__markwrapper,
    .t778__markwrapper,
    .t754__markwrapper,
    .t744__markwrapper,
    .t760__markwrapper,
    .t762__markwrapper,
    .t786__markwrapper,
    .t951__markwrapper,
    .t1002__markwrapper,
    .t1025__markwrapper {
        position: absolute !important;

        top: 8px !important;
        left: 8px !important;
        right: auto !important;
        bottom: auto !important;

        inset: 8px auto auto 8px !important;

        margin: 0 !important;
        transform: none !important;
    }

    .t-store__card__mark,
    .t776__mark,
    .t778__mark,
    .t754__mark,
    .t744__mark,
    .t760__mark,
    .t762__mark,
    .t786__mark,
    .t951__mark,
    .t1002__mark,
    .t1025__mark,
    .t-store__card [class*="__mark"]:not([class*="wrapper"]),
    .js-product [class*="__mark"]:not([class*="wrapper"]) {
        min-width: 78px !important;
        max-width: 135px !important;

        padding: 6px 9px !important;

        border-radius: 10px !important;

        font-size: 12px !important;
        line-height: 1.15 !important;

        margin: 0 !important;
        transform: none !important;
    }
}
</style>