@media (max-width: 991px) {
    .cart-window-visible .user-action .user-action-in > div.user-action-cart {
        display: flex !important;
        flex-direction: column;
    }
    .popup-widget.cart-widget {
        bottom: auto !important;
        height: auto !important;          /* výška podle obsahu */
        max-height: 85vh;                 /* záloha pro starší prohlížeče */
        max-height: 85dvh;                /* nikdy ne vyšší než viditelná obrazovka */
        box-shadow: 0 6px 16px rgba(0,0,0,.18);
    }
    .popup-widget.cart-widget .cart-widget-inner {
        flex: 0 1 auto;                   /* nenatahovat, jen zmenšit při hodně položkách */
        min-height: 0;
        height: auto !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .popup-widget.cart-widget .cart-widget-products {
        height: auto !important;
        max-height: none !important;
    }
    .popup-widget.cart-widget .cart-widget-button {
        position: static !important;
        flex: 0 0 auto;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) !important;
        background: #fff;
    }
}
