:root {
    --market-pink: #f34f76;
    --market-blue: #0878df;
    --market-line: #dedede;
    --market-muted: #777777;
}

/* style-4 owns two palettes. Mode-specific !important variables override the
 * shared Vineps inline theme without disabling the Dark/Light switch. */
html.marketplace-template-root {
    color-scheme: light;
}

html.marketplace-template-root[data-color-mode="light"] {
    --market-pink: #f34f76 !important;
    --market-blue: #0878df !important;
    --market-line: #dedede !important;
    --market-muted: #777777 !important;
    --theme-primary: #0878df !important;
    --theme-primary-alpha: rgba(8, 120, 223, .10) !important;
    --theme-grad-start: #111111 !important;
    --theme-button: #111111 !important;
    --theme-button-hover: #333333 !important;
    --theme-button-text: #ffffff !important;
    --theme-base: #ffffff !important;
    --theme-card: #ffffff !important;
    --theme-dropdown: #ffffff !important;
    --theme-element: #fafafa !important;
    --theme-hover: #f5f5f5 !important;
    --theme-border-dark: #dedede !important;
    --theme-border: #dedede !important;
    --theme-border-light: #dedede !important;
    --theme-border-hover: #aaaaaa !important;
    --theme-text: #111111 !important;
    --theme-text-muted: #777777 !important;
    --theme-price: #111111 !important;
    color-scheme: light;
    background: #ffffff !important;
}

html.marketplace-template-root[data-color-mode="dark"] {
    --market-pink: #ff5d86 !important;
    --market-blue: #6cb6ff !important;
    --market-line: #303847 !important;
    --market-muted: #aab3c2 !important;
    --theme-primary: #6cb6ff !important;
    --theme-primary-alpha: rgba(108, 182, 255, .14) !important;
    --theme-grad-start: #ff5d86 !important;
    --theme-button: #f34f76 !important;
    --theme-button-hover: #ff6f95 !important;
    --theme-button-text: #ffffff !important;
    --theme-base: #0b0d12 !important;
    --theme-card: #151922 !important;
    --theme-dropdown: #171c26 !important;
    --theme-element: #202633 !important;
    --theme-hover: #282f3e !important;
    --theme-border-dark: #242b38 !important;
    --theme-border: #303847 !important;
    --theme-border-light: #3c4658 !important;
    --theme-border-hover: #6cb6ff !important;
    --theme-text: #f4f7fb !important;
    --theme-text-muted: #aab3c2 !important;
    --theme-price: #ff7b9d !important;
    --theme-shadow: rgba(0, 0, 0, .45) !important;
    color-scheme: dark;
    background: #0b0d12 !important;
}

html.marketplace-template-root[data-color-mode] body.marketplace-template,
html.marketplace-template-root[data-color-mode] body.marketplace-template #productListPage,
html.marketplace-template-root[data-color-mode] body.marketplace-template #productListNav,
html.marketplace-template-root[data-color-mode] body.marketplace-template #productListFilters {
    color: var(--theme-text) !important;
    background: var(--theme-base) !important;
    background-image: none !important;
}

body.marketplace-template {
    margin: 0;
    color: var(--theme-text) !important;
    background: var(--theme-base) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.marketplace-template button,
.marketplace-template input,
.marketplace-template select {
    font: inherit;
}

.marketplace-template #globalAppLoader {
    background: var(--theme-base) !important;
    color: var(--theme-text) !important;
}

/* The supplied reference page has only the wordmark and search field. */
.marketplace-template #globalSettingsMenuWrap,
.marketplace-template #topBannerActions,
.marketplace-template #creatorPromoLink,
.marketplace-template #templateToggles,
.marketplace-template #customVideoMessage {
    display: none !important;
}

.marketplace-template #productListNav {
    position: relative !important;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid #e6e6e6 !important;
    background: #ffffff !important;
}

.marketplace-template #productListNav > .product-list-content-shell {
    position: relative;
    max-width: 1180px !important;
    padding: 28px 22px 24px !important;
    gap: 0 !important;
}

.marketplace-template #mainNavTitle.site-text-logo-title,
.marketplace-template #mainNavTitle:not(.site-logo-title) {
    color: #111111 !important;
    background: none !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    letter-spacing: -1.8px !important;
    line-height: 1;
    text-transform: uppercase;
    -webkit-text-fill-color: currentColor !important;
}

.marketplace-template #mainNavTitle .market-logo-accent {
    color: var(--market-pink) !important;
    -webkit-text-fill-color: var(--market-pink) !important;
}

.marketplace-template #mainNavTitle.site-text-logo-title::first-letter {
    color: inherit;
}

.marketplace-template #globalSettingsBtn {
    width: 48px !important;
    height: 48px !important;
    border: 1px solid #dddddd !important;
    border-radius: 50% !important;
    color: var(--market-blue) !important;
    background: #ffffff !important;
}

.marketplace-template #globalSettingsBtn i {
    color: currentColor !important;
    font-size: 22px !important;
}

.marketplace-template #creatorPromoLink {
    margin-top: 18px;
    border-color: #111111 !important;
    background: #111111 !important;
    color: #ffffff !important;
}

.marketplace-template #productListNav > .product-list-content-shell > div:last-child {
    margin-top: 28px;
}

.marketplace-template #topBannerActions {
    position: absolute;
    top: 25px;
    right: 82px;
    width: auto !important;
}

.marketplace-template #topSignupBtn {
    min-height: 54px;
    border: 1px solid #dddddd !important;
    border-radius: 30px !important;
    background: #ffffff !important;
    color: var(--market-blue) !important;
    padding: 0 24px !important;
}

.marketplace-template #searchInput {
    height: 64px;
    border: 1.5px solid #dddddd !important;
    border-radius: 34px !important;
    outline: 0;
    background: #ffffff !important;
    color: #111111 !important;
    padding-left: 56px !important;
    padding-right: 24px !important;
    font-size: 20px !important;
    box-shadow: none !important;
}

.marketplace-template #searchInput::placeholder {
    color: #aaaaaa !important;
    -webkit-text-fill-color: #aaaaaa !important;
    opacity: 1 !important;
}

.marketplace-template #searchInput:focus {
    border-color: #aaaaaa !important;
}

.marketplace-template #searchInput + * {
    color: #111111;
}

.marketplace-template #productListNav .ph-magnifying-glass {
    color: #111111 !important;
    font-size: 26px !important;
}

.marketplace-template #productListFilters {
    position: relative !important;
    z-index: 200 !important;
    width: 100%;
    padding: 0 !important;
    border: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.marketplace-template #productListFilters.seller-filter-hidden {
    display: none !important;
}

.marketplace-template #productListFilters > .product-list-content-shell {
    max-width: 1180px !important;
    padding: 34px 22px 0 !important;
}

.marketplace-template #categoryContainer {
    display: flex;
    gap: 12px !important;
    width: 100%;
    margin: 0 0 28px !important;
    padding: 0 !important;
    overflow-x: auto;
}

.marketplace-template #categoryContainer button {
    flex: 0 0 auto;
    border: 1px solid #dddddd !important;
    border-radius: 34px !important;
    background: #ffffff !important;
    color: var(--market-blue) !important;
    padding: 13px 28px !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.25;
    box-shadow: none !important;
}

.marketplace-template #categoryContainer button.bg-\[var\(--theme-button\)\] {
    border-color: #111111 !important;
    background: #111111 !important;
    color: #ffffff !important;
}

.marketplace-template #productListFilters .grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 18px !important;
    width: 100%;
    overflow: visible !important;
}

.marketplace-template #subCategoryDropdownContainer,
.marketplace-template #sortContainer {
    position: relative !important;
    z-index: 1 !important;
    width: 100%;
}

.marketplace-template #subCategoryDropdownContainer.is-dropdown-open,
.marketplace-template #sortContainer.is-dropdown-open {
    z-index: 1000 !important;
}

.marketplace-template #subCategorySelectBtn,
.marketplace-template #sortSelectBtn {
    width: 100%;
    height: 62px;
    border: 1px solid #dddddd !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    color: var(--market-blue) !important;
    padding: 0 24px !important;
    font-size: 19px !important;
    font-weight: 400 !important;
    box-shadow: none !important;
}

.marketplace-template #subCategorySelectBtn i,
.marketplace-template #sortSelectBtn i {
    color: var(--market-blue) !important;
}

.marketplace-template #subCategoryDropdownList,
.marketplace-template #sortDropdownList {
    z-index: 1100 !important;
    border: 1px solid #dddddd !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .12) !important;
    isolation: isolate;
}

.marketplace-template #subCategoryDropdownList button,
.marketplace-template #sortDropdownList button {
    color: #111111 !important;
    background: #ffffff !important;
}

.marketplace-template #subCategoryDropdownList button:hover,
.marketplace-template #sortDropdownList button:hover {
    background: #f5f5f5 !important;
}

.marketplace-template #productListPage {
    max-width: 1180px !important;
    padding: 42px 22px 70px !important;
}

.marketplace-template .seller-box {
    margin-bottom: 58px;
    padding: 42px;
    border: 1px solid #dddddd;
    border-radius: 28px;
    background: #ffffff !important;
    color: #111111 !important;
}

.marketplace-template .eyebrow {
    color: var(--market-pink) !important;
    -webkit-text-fill-color: var(--market-pink) !important;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 4px;
}

.marketplace-template .seller-box h2 {
    margin: 14px 0 10px;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.12;
}

.marketplace-template .seller-box p {
    margin: 0 0 30px;
    color: var(--market-muted) !important;
    -webkit-text-fill-color: var(--market-muted) !important;
    font-size: 20px;
    line-height: 1.45;
}

.marketplace-template .seller-label {
    display: block;
    margin: 0 0 10px 6px;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    font-size: 17px;
    font-weight: 700;
}

.marketplace-template .seller-select {
    width: 100%;
    height: 60px;
    border: 1px solid #dddddd;
    border-radius: 18px;
    outline: 0;
    background: #f9f9f9 !important;
    color: var(--market-blue) !important;
    -webkit-text-fill-color: var(--market-blue) !important;
    padding: 0 20px;
    font-size: 19px;
}

.marketplace-template .seller-profile-page {
    margin-bottom: 42px;
}

.marketplace-template .seller-top {
    display: grid;
    grid-template-columns: auto 1fr minmax(220px, .45fr);
    align-items: center;
    gap: 24px;
}

.marketplace-template .seller-back {
    border: 1px solid #dddddd;
    border-radius: 18px;
    background: #ffffff;
    color: #111111;
    padding: 12px 18px;
    font-weight: 700;
}

.marketplace-template .seller-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.marketplace-template .seller-avatar {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    background: #111111 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 20px;
    font-weight: 900;
}

.marketplace-template .seller-profile h2 {
    margin: 0;
    color: #111111;
    font-size: 30px;
    font-weight: 800;
}

.marketplace-template .seller-profile p {
    margin: 4px 0 0;
    color: var(--market-muted);
}

.marketplace-template .seller-switch {
    width: 100%;
    height: 54px;
    border: 1px solid #dddddd;
    border-radius: 16px;
    background: #ffffff;
    color: var(--market-blue);
    padding: 0 16px;
}

.marketplace-template .market-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.marketplace-template .market-section-head h2 {
    margin: 0;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.marketplace-template .market-count {
    flex: 0 0 auto;
    color: var(--market-muted) !important;
    -webkit-text-fill-color: var(--market-muted) !important;
    font-size: 18px;
}

.marketplace-template #productGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
    padding-bottom: 30px !important;
}

.marketplace-template .product-card {
    overflow: hidden;
    border: 1px solid #dddddd !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.marketplace-template .product-card:hover {
    border-color: #dddddd !important;
    box-shadow: none !important;
}

.marketplace-template .product-card > div:first-child {
    height: 300px;
    aspect-ratio: auto !important;
    background: #fafafa !important;
}

.marketplace-template .product-card > div:first-child img {
    object-fit: cover !important;
    transform: none !important;
}

.marketplace-template .product-card > div:last-child {
    padding: 16px 18px 19px !important;
    border-top: 0 !important;
}

.marketplace-template .product-card h2 {
    margin-bottom: 7px !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

.marketplace-template .product-card p {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

.marketplace-template .product-seller {
    margin-top: 8px;
    overflow: hidden;
    color: #888888 !important;
    -webkit-text-fill-color: #888888 !important;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketplace-template .product-card-buy-wrap {
    display: none !important;
}

.marketplace-template .product-card-buy-btn {
    border-radius: 18px !important;
    background: #111111 !important;
    color: #ffffff !important;
}

.marketplace-template #paginationControls,
.marketplace-template #pageSizeSelect,
.marketplace-template #paginationPrev,
.marketplace-template #paginationNext,
.marketplace-template #paginationNumbers button {
    color: #111111 !important;
}

.marketplace-template #paginationPrev,
.marketplace-template #paginationNext,
.marketplace-template #pageSizeSelect,
.marketplace-template #paginationNumbers button {
    border-color: #dddddd !important;
    background: #ffffff !important;
}

/* The generic pagination rule above keeps inactive buttons white. Restore the
 * selected page after JavaScript adds its theme-button utility class. */
.marketplace-template #paginationNumbers button[class*="bg-[var(--theme-button)]"] {
    border-color: #111111 !important;
    background: #111111 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.marketplace-template #noResultsText {
    color: #777777 !important;
}

.marketplace-template #productDetailPage {
    color: var(--detail-text, #f8fafc);
}

@media (min-width: 900px) {
    .marketplace-template #productGrid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .marketplace-template #productListNav > .product-list-content-shell {
        padding: 24px 18px 22px !important;
    }

    .marketplace-template #mainNavTitle.site-text-logo-title,
    .marketplace-template #mainNavTitle:not(.site-logo-title) {
        font-size: 29px !important;
    }

    .marketplace-template #productListNav > .product-list-content-shell > div:last-child {
        margin-top: 22px;
    }

    .marketplace-template #searchInput {
        height: 58px;
        font-size: 17px !important;
    }

    .marketplace-template #productListFilters > .product-list-content-shell {
        padding: 30px 18px 0 !important;
    }

    .marketplace-template #categoryContainer button {
        padding: 12px 22px !important;
        font-size: 16px !important;
    }

    .marketplace-template #productListFilters .grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .marketplace-template #productListPage {
        padding: 34px 18px 60px !important;
    }

    .marketplace-template .seller-box {
        margin-bottom: 45px;
        padding: 30px 26px;
    }

    .marketplace-template .seller-box h2,
    .marketplace-template .market-section-head h2 {
        font-size: 34px;
    }

    .marketplace-template .seller-box p {
        font-size: 18px;
    }

    .marketplace-template .seller-top {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .marketplace-template .seller-switch {
        width: 100%;
    }

    .marketplace-template #productGrid {
        gap: 22px !important;
    }

    .marketplace-template .product-card {
        border-radius: 24px !important;
    }

    .marketplace-template .product-card > div:first-child {
        height: 250px;
    }

    .marketplace-template .product-card > div:last-child {
        padding: 16px 18px 19px !important;
    }
}

@media (max-width: 460px) {
    .marketplace-template .market-section-head {
        align-items: start;
    }

    .marketplace-template .market-count {
        font-size: 15px;
    }
}

/* Dark palette: charcoal surfaces, pink actions and a cool-blue accent. */
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #productListNav {
    border-bottom-color: #242b38 !important;
    background: #0b0d12 !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #mainNavTitle,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #productListNav .ph-magnifying-glass {
    color: #f4f7fb !important;
    -webkit-text-fill-color: #f4f7fb !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #mainNavTitle .market-logo-accent {
    color: #ff5d86 !important;
    -webkit-text-fill-color: #ff5d86 !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #searchInput,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #subCategorySelectBtn,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #sortSelectBtn {
    border-color: #303847 !important;
    background: #151922 !important;
    color: #f4f7fb !important;
    -webkit-text-fill-color: #f4f7fb !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #searchInput::placeholder {
    color: #aab3c2 !important;
    -webkit-text-fill-color: #aab3c2 !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #subCategorySelectBtn i,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #sortSelectBtn i {
    color: #6cb6ff !important;
    -webkit-text-fill-color: #6cb6ff !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #categoryContainer button {
    border-color: #303847 !important;
    background: #151922 !important;
    color: #6cb6ff !important;
    -webkit-text-fill-color: #6cb6ff !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #categoryContainer button.bg-\[var\(--theme-button\)\] {
    border-color: #f34f76 !important;
    background: #f34f76 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #subCategoryDropdownList,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #sortDropdownList {
    border-color: #303847 !important;
    background: #171c26 !important;
    color: #f4f7fb !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #subCategoryDropdownList button,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #sortDropdownList button {
    background: #171c26 !important;
    color: #f4f7fb !important;
    -webkit-text-fill-color: #f4f7fb !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #subCategoryDropdownList button:hover,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #sortDropdownList button:hover {
    background: #282f3e !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .seller-box,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .seller-switch,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .seller-back {
    border-color: #303847 !important;
    background: #151922 !important;
    color: #f4f7fb !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .seller-box h2,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .seller-label,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .seller-profile h2,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .market-section-head h2 {
    color: #f4f7fb !important;
    -webkit-text-fill-color: #f4f7fb !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .seller-box p,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .seller-profile p,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .market-count {
    color: #aab3c2 !important;
    -webkit-text-fill-color: #aab3c2 !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .seller-select {
    border-color: #3c4658 !important;
    background: #202633 !important;
    color: #6cb6ff !important;
    -webkit-text-fill-color: #6cb6ff !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .seller-avatar {
    background: #f34f76 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .product-card {
    border-color: #303847 !important;
    background: #151922 !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .product-card > div:first-child {
    background: #10141b !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .product-card h2 {
    color: #f4f7fb !important;
    -webkit-text-fill-color: #f4f7fb !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .product-card p {
    color: #ff7b9d !important;
    -webkit-text-fill-color: #ff7b9d !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template .product-seller {
    color: #aab3c2 !important;
    -webkit-text-fill-color: #aab3c2 !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #paginationPrev,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #paginationNext,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #pageSizeSelect,
html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #paginationNumbers button {
    border-color: #303847 !important;
    background: #151922 !important;
    color: #f4f7fb !important;
    -webkit-text-fill-color: #f4f7fb !important;
}

html.marketplace-template-root[data-color-mode="dark"] body.marketplace-template #paginationNumbers button[class*="bg-[var(--theme-button)]"] {
    border-color: #f34f76 !important;
    background: #f34f76 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Theme picker previews mirror the actual style-4 palettes. */
html.marketplace-template-root .theme-option-preview-dark i:first-child {
    background: #0b0d12 !important;
}

html.marketplace-template-root .theme-option-preview-dark i:last-child {
    background: #f34f76 !important;
}

html.marketplace-template-root .theme-option-preview-light i:first-child {
    background: #ffffff !important;
}

html.marketplace-template-root .theme-option-preview-light i:last-child {
    background: #0878df !important;
}

/* Keep every pagination control visible at narrow widths and browser zoom levels. */
html.marketplace-template-root body.marketplace-template #paginationControls:not(.hidden),
html.marketplace-template-root body.marketplace-template #detailSearchPaginationControls:not(.hidden) {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    overflow: visible !important;
    max-width: 100% !important;
}

html.marketplace-template-root body.marketplace-template #paginationNumbers,
html.marketplace-template-root body.marketplace-template #detailSearchPaginationNumbers {
    display: flex !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: center !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 2px !important;
    scrollbar-width: thin;
}

html.marketplace-template-root body.marketplace-template #paginationInfo,
html.marketplace-template-root body.marketplace-template #detailSearchPaginationInfo {
    flex: 0 0 auto !important;
}

@media (max-width: 639px) {
    html.marketplace-template-root body.marketplace-template #paginationControls:not(.hidden),
    html.marketplace-template-root body.marketplace-template #detailSearchPaginationControls:not(.hidden) {
        display: grid !important;
        grid-template-columns: auto minmax(38px, 1fr) auto !important;
        grid-template-areas:
            "page-size page-size page-size"
            "previous numbers next" !important;
        column-gap: 8px !important;
        row-gap: 12px !important;
        width: 100% !important;
        overflow: visible !important;
    }

    html.marketplace-template-root body.marketplace-template #pageSizeContainer,
    html.marketplace-template-root body.marketplace-template #detailSearchPaginationControls > div:first-child {
        grid-area: page-size !important;
        justify-self: center !important;
    }

    html.marketplace-template-root body.marketplace-template #paginationPrev,
    html.marketplace-template-root body.marketplace-template #detailSearchPaginationPrev {
        grid-area: previous !important;
        justify-self: end !important;
    }

    html.marketplace-template-root body.marketplace-template #paginationNumbers,
    html.marketplace-template-root body.marketplace-template #detailSearchPaginationNumbers {
        grid-area: numbers !important;
        width: 100% !important;
        justify-self: stretch !important;
    }

    html.marketplace-template-root body.marketplace-template #paginationNext,
    html.marketplace-template-root body.marketplace-template #detailSearchPaginationNext {
        grid-area: next !important;
        justify-self: start !important;
    }

    html.marketplace-template-root body.marketplace-template #paginationInfo,
    html.marketplace-template-root body.marketplace-template #detailSearchPaginationInfo {
        display: none !important;
    }
}

@media (max-width: 389px) {
    html.marketplace-template-root body.marketplace-template #paginationPrev,
    html.marketplace-template-root body.marketplace-template #paginationNext,
    html.marketplace-template-root body.marketplace-template #detailSearchPaginationPrev,
    html.marketplace-template-root body.marketplace-template #detailSearchPaginationNext {
        min-width: 52px !important;
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}
