/* Keep minicart usable when many items would otherwise run off-screen. */
.minicart-wrapper .block-minicart {
    max-height: calc(100vh - 6rem) !important;
    max-height: calc(100dvh - 6rem) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.minicart-wrapper .block-minicart .minicart-items-wrapper {
    max-height: min(52vh, calc(100vh - 22rem)) !important;
    max-height: min(52vh, calc(100dvh - 22rem)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}
