/* Keep the theme's consent action reachable above the floating mobile toolbar. */
@media (max-width: 1024px) {
    body .wd-cookies-popup {
        z-index: 100020;
        inset: auto 10px calc(90px + env(safe-area-inset-bottom, 0px)) 10px;
        width: auto;
        max-height: calc(100vh - 130px - env(safe-area-inset-bottom, 0px));
        max-height: calc(100dvh - 130px - env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 18px;
        border-radius: 16px;
        box-sizing: border-box;
    }
    body .wd-cookies-popup:not(.popup-display),
    body .wd-cookies-popup.popup-hide {
        visibility: hidden;
        pointer-events: none;
    }
    body .wd-cookies-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    body .wd-cookies-inner .cookies-info-text {
        padding: 0;
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
    }
    body .wd-cookies-inner .cookies-buttons { margin-top: 0; }
    body .wd-cookies-inner .cookies-accept-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        margin: 0;
        white-space: normal;
    }
}
