/* Compact the legacy stacked basket only at its mobile breakpoint. */
@media (max-width: 580px) {
    #basket-root .basket-items-list .basket-items-list-item-container > td {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    #basket-root .basket-items-list-item-descriptions-inner {
        padding-top: 0;
        padding-bottom: 0;
    }
    #basket-root .basket-item-block-amount,
    #basket-root .basket-item-price-current {
        padding-top: 4px;
        padding-bottom: 4px;
    }
    #basket-root .basket-checkout-container {
        padding: 12px 0;
    }
    #basket-root .basket-checkout-section-inner {
        align-items: center;
        gap: 12px;
    }
    #basket-root .basket-checkout-block-total,
    #basket-root .basket-checkout-block-total-price {
        flex: 0 1 auto;
        width: auto;
        min-width: 0;
        padding: 0;
        margin: 0;
    }
    #basket-root .main-buts-order {
        flex: 0 0 100%;
        width: 100%;
    }
    #basket-root .basket-checkout-block-btn .basket-btn-checkout {
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* Cart-only skin for the new Yandex SDK; keep the original button and events. */
#basket-root .basket-checkout-block-btn .basket-btn-checkout {
    box-sizing: border-box;
    height: 54px;
    min-height: 54px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#basket-root #yastore-checkout-button.ya-checkout-button {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 12px 0 0 !important;
    padding: 0 16px !important;
    border-radius: 0 !important;
    background: #170023 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
}
#basket-root #yastore-checkout-button.ya-checkout-button:hover { background: #210030 !important; }
#basket-root #yastore-checkout-button.ya-checkout-button:focus-visible { outline: 3px solid #fc3f1d; outline-offset: 2px; }
#basket-root #yastore-checkout-button.ya-checkout-button:disabled { opacity: .6; cursor: wait; }
#basket-root #yastore-checkout-button .ya-checkout-button__overlay,
#basket-root #yastore-checkout-button .ya-checkout-button__fallback { visibility: hidden !important; position: absolute !important; pointer-events: none !important; }
#basket-root #yastore-checkout-button.ya-checkout-button::before {
    content: "Оплатить с";
    color: #fff;
    font: 400 20px/1 Arial, sans-serif;
    white-space: nowrap;
    pointer-events: none;
}
#basket-root #yastore-checkout-button.ya-checkout-button::after {
    content: "";
    flex: 0 0 84px;
    width: 84px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000.0009155%20333.3336487%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M889.8712158%2C60.3716316h-66.067627l-41.4417114%2C106.7442627c-22.4055786%2C58.0870819-2.6204224%2C95.4250946%2C35.0795898%2C95.4250946c32.859314%2C0%2C55.6130371-22.2611389%2C70.1843872-53.1954193l-0.3741455%2C39.2287445l41.4436035-4.5379791l71.305603-183.6898804h-66.0648804l-41.819458%2C107.8787155c-8.5824585%2C21.8842621-19.4111938%2C35.4472504-34.7055664%2C35.4472504c-15.2944946%2C0-18.2880249-13.2101898-9.331543-36.2028046l41.8167725-107.1231613%20M537.477356%2C288.5845337l88.84729-228.2129059H442.6670532l-97.429718%2C250.4740448l69.0621338-7.9157715l73.1528015-187.8501587h51.5223389l-70.5584106%2C181.4464417l69.0611572-7.9166565V288.5845337z%20M589.3737183%2C186.7307281c-16.791748%2C49.4139252%2C6.3370361%2C94.2899017%2C62.3250122%2C94.2899017c79.8898926%2C0%2C127.6686401-102.2315674%2C127.6686401-159.1834869c0-42.6326294-23.1537476-68.2725601-68.6870728-68.2725601c-49.2759399%2C0-79.1417236%2C32.4469757-99.3010254%2C81.4827652h63.4732056c8.9564819-19.6139145%2C18.2879639-31.3120728%2C29.8648071-31.3120728c9.7055664%2C0%2C13.0740967%2C9.8074188%2C13.0740967%2C21.5046539c0%2C4.51297-0.7490845%2C9.8074188-1.8712769%2C15.8333435h-38.4481812l-16.791687%2C43.0102386h41.4417114c-10.8278198%2C24.9083557-26.4963379%2C46.7667084-42.1898804%2C46.7667084c-14.1712646%2C0-16.0426025-20.7490997-7.460144-44.1194916h-63.0732422H589.3737183z%20M963.4268188%2C48.6736565l13.8148193-35.4470711h-92.9592896L870.460022%2C48.6736565h92.9389648H963.4268188z%22%2F%3E%3Cpath%20fill%3D%22%23FC3F1D%22%20d%3D%22M166.6668243%2C0C258.7143555%2C0%2C333.3336487%2C74.6192703%2C333.3336487%2C166.6668243S258.7143555%2C333.3336487%2C166.6668243%2C333.3336487S0%2C258.7143555%2C0%2C166.6668243S74.6192703%2C0%2C166.6668243%2C0z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M190.1575928%2C266.8335876h34.8194733v-200h-50.6472778c-50.9352264%2C0-77.6982193%2C26.1868744-77.6982193%2C64.748024c0%2C30.7917023%2C14.6768723%2C48.9213409%2C40.8639297%2C67.6259918l-45.4680023%2C67.6259918h37.6976166l50.6482086-75.6834106l-17.554657-11.7981567c-21.2944641-14.3889008-31.6546631-25.6120605-31.6546631-49.7843018c0-21.2953949%2C14.963913-35.6833725%2C43.4537506-35.6833725h15.5398407V266.8335876z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
    pointer-events: none;
}
