.checkout-split-badge {
    position: relative;
    display: flex;
    align-items: flex-start;
    line-height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.checkout-split-badge > yandex-pay-badge {
    height: auto;
    max-width: 100%;
}

.checkout-split-badge--cart.is-loading,
.checkout-split-badge--cart.is-ready { margin-top: 18px; }
.checkout-split-badge--cart.is-loading { min-height: 18px; }
.checkout-split-badge--cart.is-loading > yandex-pay-badge { opacity: 0; pointer-events: none; }
.checkout-split-badge__skeleton { display: none; }
.checkout-split-badge--cart.is-loading .checkout-split-badge__skeleton {
    position: absolute;
    left: 0;
    top: 0;
    height: 18px;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.checkout-split-badge__skeleton-pill,
.checkout-split-badge__skeleton-text { position: relative; overflow: hidden; background: #ececec; }
.checkout-split-badge__skeleton-pill { width: 72px; height: 18px; border-radius: 9px; background: #e4e4e4; flex-shrink: 0; }
.checkout-split-badge__skeleton-text { width: 148px; height: 10px; border-radius: 5px; }
.checkout-split-badge__skeleton-pill::after,
.checkout-split-badge__skeleton-text::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
    animation: checkout-split-badge-shimmer 1.2s ease-in-out infinite;
}
@keyframes checkout-split-badge-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
    .checkout-split-badge__skeleton-pill::after,
    .checkout-split-badge__skeleton-text::after { animation: none; }
}

.new_checkout .custom-option.pay[data-value="ya_pay"] > p:first-child { min-width: 0; flex: 1; display: flex; align-items: center; }
.new_checkout .custom-option.pay[data-value="ya_pay"] > p:first-child::before { flex-shrink: 0; }
.new_checkout .custom-option.pay.split-badge-ready .payment-method-label { display: none; }
.checkout-split-badge--payment:not(.is-ready) { position: absolute; visibility: hidden; pointer-events: none; }
.checkout-split-badge--payment.is-ready { min-width: 0; }

@media (max-width: 768px) {
    .checkout-split-badge--cart { max-width: 335px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 525px) {
    .checkout-split-badge--cart { max-width: 100%; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #checkout-cart > .inner .deep-inner > .right .deep.deep-with-split {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: min-content 1fr;
        column-gap: 34px;
    }
    #checkout-cart > .inner .deep-inner > .right .deep.deep-with-split .deep-left {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
    }
    #checkout-cart > .inner .deep-inner > .right .deep.deep-with-split .deep-right {
        grid-column: 2;
        grid-row: 1 / 3;
        margin: 0;
    }
    .deep-with-split > .checkout-split-badge--cart {
        grid-column: 1;
        grid-row: 2;
        margin-left: 0;
        margin-right: 0;
    }
}
