/* Shared searchable combobox for public catalogue filters. */
.common-filter-combobox {
    position: relative;
    width: 100%;
    min-width: 0;
    font: inherit;
}

.common-filter-combobox__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.common-filter-combobox__trigger {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 11px;
    border: 1px solid #dce1ea;
    border-radius: 9px;
    background: #fff;
    color: #25324a;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.common-filter-combobox__value {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.common-filter-combobox__chevron {
    flex: 0 0 auto;
    color: #8b95a5;
    font-size: 10px;
    transition: transform .16s ease;
}

.common-filter-combobox.is-open .common-filter-combobox__chevron {
    transform: rotate(180deg);
}

.common-filter-combobox__trigger:focus-visible {
    outline: 3px solid rgba(188, 37, 56, .28);
    outline-offset: 2px;
}

.common-filter-combobox__panel {
    position: absolute;
    z-index: 1600;
    top: calc(100% + 7px);
    left: 0;
    width: max(100%, 230px);
    max-width: min(360px, calc(100vw - 32px));
    padding: 8px;
    border: 1px solid #e1e5eb;
    border-radius: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 42px rgba(31, 43, 68, .16), 0 3px 9px rgba(31, 43, 68, .06);
    backdrop-filter: blur(14px);
}

.common-filter-combobox__search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 10px;
    margin-bottom: 6px;
    border: 1px solid #e2e6ec;
    border-radius: 9px;
    background: #f8fafc;
    color: #8b95a5;
}

.common-filter-combobox__search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #27344d;
    font-size: 12px;
    font-weight: 650;
}

.common-filter-combobox__list {
    max-height: 260px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.common-filter-combobox__option {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #364152;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.common-filter-combobox__option:hover,
.common-filter-combobox__option:focus-visible {
    outline: 0;
    background: #f3f6f9;
    color: #1f3552;
}

.common-filter-combobox__option.is-selected {
    background: #fff1f2;
    color: #a91f33;
    font-weight: 800;
}

.common-filter-combobox__option.is-all-option {
    border-bottom: 1px solid #eef1f4;
    border-radius: 8px 8px 4px 4px;
}

.common-filter-combobox__empty {
    padding: 15px 10px;
    color: #8d97a6;
    font-size: 11px;
    font-weight: 650;
    text-align: center;
}

/* Japan Hot Items: retain the existing outer pill/card styling. */
.jp-select-wrap .common-filter-combobox__trigger {
    min-height: 30px;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--jp-ink, #29303b);
}

.jp-select-wrap .common-filter-combobox__value {
    font-size: 12px;
    font-weight: 800;
}

.jp-select-wrap .common-filter-combobox__panel {
    left: auto;
    right: -10px;
}

/* HK Local Store: match the native filter dimensions. */
.hk-catalogue-controls__field .common-filter-combobox__trigger {
    height: 44px;
    border-color: #dce1ea;
    border-radius: 9px;
    color: var(--hk-navy, #25324a);
    font-size: 13px;
}

@media (max-width: 575px) {
    .common-filter-combobox__panel {
        width: 100%;
        max-width: 100%;
    }

    .jp-select-wrap .common-filter-combobox__panel {
        right: 0;
    }
}
