/* ===== Попап «Ваш город» убран везде. Выбор города остаётся в шапке ===== */
.regions-select-question,
.menu-region-question { display: none !important; }

@media (max-width: 768px) {

    /* ===== Панель заказа в карточке товара ===== */
    .catalog-element-panel-mobile {
        display: block !important;
        left: 0;
        right: 0;
        bottom: var(--dcc-h, 0px) !important;   /* таббар добавляет JS через transform */
        z-index: 99 !important;
        padding: 8px 12px;
        background: #fff;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
        transition: none !important;
        will-change: transform;
    }

    .catalog-element-panel-mobile-name {
        font-size: 12px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nafta-pm-price {
        display: block;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.3;
    }

    /* кнопка как на сайте */
    .catalog-element-panel-mobile-buy-button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 130px;
        height: 56px;
        padding: 0 24px !important;
        border-radius: 0 !important;
        font-family: Montserrat, sans-serif;
        font-size: 10px !important;
        font-weight: 600 !important;
        line-height: 10px !important;
        letter-spacing: 1px;
        text-transform: uppercase;
    }
    .catalog-element-panel-mobile-button-content {
        font: inherit !important;
        letter-spacing: inherit;
    }

    /* ===== Галерея: первый экран карточки ===== */
    .catalog-element-gallery-container { max-height: 260px; }
    .catalog-element-gallery-pictures-slider-item-picture img { max-height: 240px; }

    /* ===== Cookie-баннер: над таббаром, ниже панели заказа ===== */
    .dcc {
        bottom: 8px !important;
        transition: none !important;
        will-change: transform;
    }

    /* ===== Кнопка «вверх» на карточке товара отключена ===== */
    body:has(.catalog-element-panel-mobile) .c-widget-navigation-button-top { display: none !important; }
}