.rvpf-mobile-shell,
.rvpf-mobile-drawer {
    display: none;
}

@media (max-width: 782px) {
    .rvpf-mobile-shell {
        display: block;
        width: 100%;
        margin: 0 0 12px;
    }

    .rvpf-mobile-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 44px;
        padding: 9px 14px;
        border: 1px solid #d7dde3;
        border-radius: 10px;
        background: #fff;
        color: #111827;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    .rvpf-mobile-trigger-icon {
        font-size: 18px;
        line-height: 1;
    }

    .rvpf-mobile-trigger-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 999px;
        background: #0f766e;
        color: #fff;
        font-size: 12px;
        line-height: 1;
    }

    .rvpf-mobile-trigger-count.is-empty {
        display: none;
    }

    .rvpf-mobile-drawer {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999999;
        visibility: hidden;
        pointer-events: none;
    }

    .rvpf-mobile-drawer.is-open {
        visibility: visible;
        pointer-events: auto;
    }

    .rvpf-mobile-backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(15, 23, 42, .46);
        opacity: 0;
        transition: opacity .2s ease;
        cursor: default;
    }

    .rvpf-mobile-drawer.is-open .rvpf-mobile-backdrop {
        opacity: 1;
    }

    .rvpf-mobile-panel {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        max-height: 88vh;
        border-radius: 18px 18px 0 0;
        background: #fff;
        box-shadow: 0 -12px 32px rgba(15, 23, 42, .18);
        transform: translateY(102%);
        transition: transform .24s ease;
        overflow: hidden;
        direction: rtl;
    }

    .rvpf-mobile-drawer.is-open .rvpf-mobile-panel {
        transform: translateY(0);
    }

    .rvpf-mobile-panel::before {
        content: '';
        display: block;
        width: 44px;
        height: 4px;
        margin: 8px auto 2px;
        border-radius: 999px;
        background: #d1d5db;
        flex: 0 0 auto;
    }

    .rvpf-mobile-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 48px;
        padding: 8px 14px;
        border-bottom: 1px solid #eef0f3;
        background: #fff;
        flex: 0 0 auto;
    }

    .rvpf-mobile-panel-header strong {
        font-size: 15px;
    }

    .rvpf-mobile-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f3f4f6;
        color: #111827;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .rvpf-mobile-panel-body {
        flex: 1 1 auto;
        min-height: 0;
        padding: 12px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .rvpf-mobile-panel .ravita-product-filter {
        border: 0;
        border-radius: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .rvpf-mobile-panel .rvpf-heading {
        display: none;
    }

    .rvpf-mobile-panel .rvpf-actions {
        display: none;
    }

    .rvpf-mobile-panel-footer {
        flex: 0 0 auto;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid #e7eaee;
        background: #fff;
        box-shadow: 0 -6px 18px rgba(15, 23, 42, .06);
    }

    .rvpf-mobile-apply {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 46px;
        padding: 9px 16px;
        border: 1px solid #075d73;
        border-radius: 10px;
        background: #075d73;
        color: #fff;
        font: inherit;
        font-weight: 800;
        cursor: pointer;
    }

    .rvpf-mobile-apply small {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 22px;
        padding: 2px 7px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .18);
        color: inherit;
        font-size: 11px;
        line-height: 1;
    }

    .rvpf-mobile-apply small[hidden] {
        display: none;
    }

    .rvpf-mobile-drawer.has-pending .rvpf-mobile-apply {
        box-shadow: 0 5px 16px rgba(7, 93, 115, .22);
    }

    html.rvpf-mobile-lock,
    body.rvpf-mobile-lock {
        overflow: hidden !important;
        overscroll-behavior: none;
    }
}
