/**
 * Mobile layout fixes for /user/{id} (public seller profile).
 *
 * Mirrors `profile-page-mobile.css` so the same shell geometry applies to
 * another user's profile, without dragging in the `display:none` rules that
 * `profile-page-mobile.css` uses to suppress /profile's own header and
 * `mobile-filters` (those would visually hide the public seller's
 * `page-title` and block the category filter button from showing).
 *
 * Loaded only on `/user/{id}`; desktop is unchanged.
 */
@media (max-width: 1023px) {
    body.layout--public-seller-profile .mobile-filters,
    body.layout--public-seller-profile .mobile-filters-dropdown {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        border: 0 !important;
    }

    .profile-page--public-seller {
        padding-top: 0 !important;
    }

    /* Stack sidebar above the listings column and cancel the huge desktop gap. */
    .profile-page--public-seller .item-detail-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        margin-top: 0 !important;
        gap: 12px !important;
    }

    .profile-page--public-seller .item-detail-sidebar {
        order: 1 !important;
        position: static !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .profile-page--public-seller .profile-main-column {
        order: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Cancel the margin-top added to the public-seller desktop sidebar so the
       first child (profile card) sits flush against the page header. */
    .profile-page--public-seller .item-detail-sidebar > .desktop-category-navigation-public {
        margin-top: 0 !important;
    }

    .profile-page--public-seller .item-detail-sidebar .profile-card {
        margin-bottom: 0 !important;
    }

    .profile-page--public-seller .public-profile-actions__menu { right: 0; max-width: calc(100vw - 48px); }
}