
:root{
    --bsg-shell-master:1360px;
    --bsg-shell-header-top:12px;
    --bsg-shell-header-height:64px;
    --bsg-shell-gap:8px;
}

.am-global-marketplace-shell .am-header{
    width:min(var(--bsg-shell-master),calc(100% - 56px)) !important;
    max-width:var(--bsg-shell-master) !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

.am-global-marketplace-shell .am-global-sticky-search{
    position:sticky !important;
    top:calc(
        var(--bsg-shell-header-top)
        + var(--bsg-shell-header-height)
        + var(--bsg-shell-gap)
    ) !important;
    z-index:1450 !important;
    width:100% !important;
    margin-top:var(--bsg-shell-gap) !important;
    margin-left:0 !important;
    margin-right:0 !important;
}

.am-global-marketplace-shell .am-global-search-wrap,
.am-global-marketplace-shell:has(.bsg-browse-page) .am-global-search-wrap,
.am-global-marketplace-shell.am-marketly-home .am-global-search-wrap{
    width:min(var(--bsg-shell-master),calc(100% - 56px)) !important;
    max-width:var(--bsg-shell-master) !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

.am-global-marketplace-shell:has(.bsg-browse-page) .am-global-sticky-search{
    margin-top:var(--bsg-shell-gap) !important;
    margin-bottom:0 !important;
}

.am-global-marketplace-shell .am-global-search-form{
    width:100% !important;
    max-width:none !important;
}

.am-global-marketplace-shell:has(.bsg-browse-page) .bsg-browse-hero{
    margin-top:8px !important;
}

@media(max-width:980px){
    :root{
        --bsg-shell-header-top:8px;
        --bsg-shell-header-height:62px;
        --bsg-shell-gap:7px;
    }

    .am-global-marketplace-shell .am-header,
    .am-global-marketplace-shell .am-global-search-wrap,
    .am-global-marketplace-shell:has(.bsg-browse-page) .am-global-search-wrap,
    .am-global-marketplace-shell.am-marketly-home .am-global-search-wrap{
        width:calc(100% - 24px) !important;
        max-width:none !important;
    }
}

@media(max-width:640px){
    :root{
        --bsg-shell-header-top:6px;
        --bsg-shell-header-height:58px;
        --bsg-shell-gap:6px;
    }

    .am-global-marketplace-shell .am-header,
    .am-global-marketplace-shell .am-global-search-wrap,
    .am-global-marketplace-shell:has(.bsg-browse-page) .am-global-search-wrap,
    .am-global-marketplace-shell.am-marketly-home .am-global-search-wrap{
        width:calc(100% - 16px) !important;
        max-width:none !important;
    }

    .am-global-marketplace-shell:has(.bsg-browse-page) .bsg-browse-hero{
        margin-top:6px !important;
    }
}
