/* Product list polish, guided by unslop by Damir Sokolovsky (CC BY 4.0).
   https://x.com/heydamir */
body.hhb-product-list-page {
    --hhb-page-bg: #f6f7fa;
    --hhb-filter-ink: #303541;
    --hhb-filter-muted: #737985;
}

body.hhb-product-list-page .content {
    background: var(--hhb-page-bg);
}

.hhb-product-list-page .sao_download:not([style*="background: url("]) {
    display: none;
}

.hhb-product-list-page .hhb-list-assurances {
    margin: 12px 0;
    padding: 12px 8px;
    box-shadow: none;
}

.hhb-product-list-page .hhb-filter-heading {
    margin-top: 12px;
    padding: 16px 20px;
}

.hhb-product-list-page .hhb-filter-heading strong {
    color: var(--hhb-filter-ink);
    font-size: 16px;
    font-weight: 600;
}

.hhb-product-list-page .hhb-filter-heading button {
    padding: 6px 12px;
    border: 1px solid #e7e9ed;
    border-radius: 6px;
    color: #626975;
    background: #fff;
}

.hhb-product-list-page .select_list {
    padding: 0 20px;
    overflow: visible;
    box-shadow: none;
}

.hhb-product-list-page .select_list_item {
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f0f1f4;
}

.hhb-product-list-page .select_list_item:last-child {
    border-bottom: 0;
}

.hhb-product-list-page .select_list_item_left {
    box-sizing: border-box;
    flex: 0 0 104px;
    height: auto;
    margin-top: 6px;
    padding: 0 16px 0 0;
    border: 0;
    color: var(--hhb-filter-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
}

.hhb-product-list-page .select_list_item_right,
.hhb-product-list-page .select_list_item_right_group {
    flex: 1;
    min-width: 0;
    gap: 8px;
    align-items: center;
}

.hhb-product-list-page .select_list_item_group {
    flex: 1;
    min-width: 0;
}

.hhb-product-list-page .right_radio {
    box-sizing: border-box;
    width: auto;
    height: 32px;
    margin: 0 !important;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #555c68;
    background: #f5f6f8;
    line-height: 30px;
}

.hhb-product-list-page .right_radio.active,
.hhb-product-list-page .right_checkbox_list_item.active,
.hhb-product-list-page .right_radio:hover,
.hhb-product-list-page .right_checkbox_list_item:hover {
    color: var(--hhb-brand-ink, #855b16);
    background: var(--hhb-brand-soft, #fff3ca);
}

.hhb-product-list-page .right_checkbox {
    box-sizing: border-box;
    width: auto;
    min-width: 128px;
    max-width: 100%;
    height: 36px;
    margin: 0;
    gap: 12px;
    border-color: #e4e6eb;
    border-radius: 6px;
    line-height: 34px;
}

.hhb-product-list-page .right_checkbox > [name="title"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hhb-product-list-page .right_checkbox::after {
    flex-shrink: 0;
    border-width: 4px;
}

.hhb-product-list-page .right_checkbox.open {
    z-index: 340;
}

.hhb-product-list-page .right_checkbox_list {
    max-width: none;
    max-height: min(420px, 60vh);
    overflow-y: auto;
    padding: 12px;
    border-color: #e5e7ec;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(30, 37, 50, .1);
}

.hhb-product-list-page .right_checkbox_list_group {
    gap: 8px;
}

.hhb-product-list-page .right_checkbox_list_item,
.hhb-product-list-page .right_checkbox_list_ro_item,
.hhb-product-list-page .right_checkbox_list_sj_item {
    margin: 0;
    padding: 4px 10px;
    border-radius: 6px;
    color: #555c68;
    background: #f5f6f8;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
}

.hhb-product-list-page .hhb-filter-advanced.has-inline-filters {
    display: block;
    padding-top: 0;
}

.hhb-product-list-page .hhb-filter-advanced.has-inline-filters > .select_list_item_left {
    display: none;
}

.hhb-product-list-page .select_list_item_right.admin {
    display: flex;
    gap: 0;
}

.hhb-product-list-page .admin > .right_checkbox {
    margin: 8px 8px 8px 0;
}

.hhb-product-list-page .admin > .hhb-inline-filter {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 0 0 100%;
    width: 100% !important;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 16px 0;
    gap: 0;
    border: 0;
    border-bottom: 1px solid #f0f1f4;
    border-radius: 0;
    color: var(--hhb-filter-ink);
    background: transparent;
    cursor: default;
}

.hhb-product-list-page .hhb-inline-filter::after {
    display: none;
}

.hhb-product-list-page .hhb-inline-filter > [name="title"] {
    flex: 0 0 104px;
    box-sizing: border-box;
    padding: 4px 16px 0 0;
    font-weight: 600;
    line-height: 24px;
    white-space: normal;
}

.hhb-product-list-page .hhb-inline-filter > .right_checkbox_list {
    display: block !important;
    position: static;
    z-index: auto;
    flex: 1;
    width: auto !important;
    min-width: 0;
    max-height: 32px;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hhb-product-list-page .hhb-inline-filter.is-expanded > .right_checkbox_list {
    max-height: none;
    overflow: visible;
}

.hhb-product-list-page .hhb-filter-more,
.hhb-product-list-page .hhb-filter-expand {
    flex-shrink: 0;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e7e9ed;
    border-radius: 6px;
    color: #626975;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}

.hhb-product-list-page .hhb-filter-more {
    margin-left: 12px;
}

.hhb-product-list-page .hhb-filter-more[hidden],
.hhb-product-list-page .hhb-filter-advanced:not(.is-expanded) .hhb-extra-filter {
    display: none;
}

.hhb-product-list-page .hhb-filter-expand {
    display: block;
    margin: 16px auto 0;
}

.hhb-product-list-page .select_list_btn {
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.hhb-product-list-page .select_list_btn_item {
    width: 96px;
    margin: 0;
    border-color: #e7e9ed;
    border-radius: 6px;
    color: #626975;
}

.hhb-product-list-page .select_list_btn_item.two {
    color: #4f360d;
    border-color: #efb52e;
    background: #efb52e;
}

.hhb-product-list-page .hhb-filter-ranges > .select_list_item_right {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 24px;
}

.hhb-product-list-page .hhb-filter-ranges {
    display: block;
    margin-top: 12px;
    padding: 16px 20px 20px;
    border: 0;
    border-radius: 12px;
    background: #fff;
}

.hhb-product-list-page .hhb-filter-ranges > .select_list_item_left {
    margin: 0 0 12px;
    padding: 0;
}

.hhb-product-list-page .hhb-filter-more:focus-visible,
.hhb-product-list-page .hhb-filter-expand:focus-visible,
.hhb-product-list-page .right_checkbox_list_item:focus-visible {
    outline: 2px solid #b47b14;
    outline-offset: 2px;
}

.hhb-product-list-page .interval_div {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    min-width: 0;
}

.hhb-product-list-page .interval_title {
    flex: 0 0 72px;
    width: auto;
    padding: 0;
    color: #555c68;
    text-align: left;
}

.hhb-product-list-page .interval_number {
    box-sizing: border-box;
    flex: 1;
    width: 0;
    min-width: 0;
    height: 32px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #303541;
    background: #f5f6f8;
    font-weight: 400;
}

.hhb-product-list-page .interval_number:focus {
    outline: 0;
    border-color: #e6af2e;
    background: #fffdf5;
}

.hhb-product-list-page .interval_number::placeholder {
    color: #9197a1;
}

.hhb-product-list-page .game_product_info {
    min-height: 64px;
    margin-top: 16px;
    padding: 0 20px;
    box-shadow: none;
}

/* The sticky header has logo, navigation and search, unlike the main header. */
.hhb-product-list-page #sousuo2 .header_bottom > .inner {
    grid-template-columns: 170px 200px minmax(0, 1fr);
    align-items: center;
    height: 70px;
    padding: 0;
    gap: 24px;
}

.hhb-product-list-page #sousuo2 .logo,
.hhb-product-list-page #sousuo2 .search,
.hhb-product-list-page #sousuo2 .nav_div {
    min-width: 0;
    margin: 0;
    float: none;
}

.hhb-product-list-page #sousuo2 .nav_div {
    display: flex;
    gap: 24px;
    white-space: nowrap;
}

.hhb-product-list-page #sousuo2 .nav_div a {
    margin: 0;
}

.hhb-product-list-page #sousuo2 #top_div2 {
    flex: 0 0 124px;
    box-sizing: border-box;
    justify-content: center;
}

.hhb-product-list-page #sousuo2 #text2 {
    width: 0 !important;
    flex: 1;
    min-width: 0;
}

.hhb-product-list-page #sousuo2 .search_top {
    overflow: visible;
}

.hhb-product-list-page #sousuo2 .search_top > button {
    border-radius: 0 8px 8px 0;
}

@media (max-width: 1280px) {
    .hhb-product-list-page .hhb-filter-ranges > .select_list_item_right {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hhb-product-list-page #sousuo2 .header_bottom > .inner {
        grid-template-columns: 150px 160px minmax(0, 1fr);
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .hhb-product-list-page .hhb-filter-heading span,
    .hhb-product-list-page #sousuo2 .nav_div {
        display: none;
    }

    .hhb-product-list-page #sousuo2 .header_bottom > .inner {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .hhb-product-list-page .hhb-filter-ranges > .select_list_item_right {
        grid-template-columns: minmax(0, 1fr);
    }
}
