/* Only the four opted-in desktop layouts enable these rules. The separate
   track leaves supplementary cards in flow after the merchant's travel area. */
[data-buyer-sticky-layout].is-buyer-sticky-enabled [data-buyer-sticky-column] {
    align-self: stretch;
}

[data-buyer-sticky-layout].is-buyer-sticky-enabled [data-buyer-sticky-track] {
    flex: 1 0 auto;
    min-block-size: 0;
}

[data-buyer-sticky-layout].is-buyer-sticky-enabled [data-buyer-sticky-column] > :not([data-buyer-sticky-track]) {
    flex-shrink: 0;
}

[data-buyer-sticky-layout].is-buyer-sticky-enabled [data-buyer-sticky-sidebar] {
    position: sticky;
    inset-block-start: var(--buyer-sidebar-top);
    align-self: start;
    box-sizing: border-box;
    max-block-size: var(--buyer-sidebar-height);
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Preserve small-screen ordering, including supplier detail's contents column. */
[data-buyer-sticky-layout]:not(.is-buyer-sticky-enabled) [data-buyer-sticky-track] {
    display: contents;
}
