.hero-search-wrapper .rfj-search-history-dropdown {
    max-height: none;
    overflow: visible;
}

.rfj-search-history-dropdown[data-rfj-history-active="1"] > .rfj-sd-list,
.rfj-search-history-dropdown[data-rfj-history-active="1"] > .rfj-sd-footer {
    display: none !important;
}

.rfj-home-head-search-dropdown[data-rfj-history-active="1"] > :not(.rfj-sh-panel-root) {
    display: none !important;
}

.rfj-home-head-search-dropdown .rfj-sh-panel {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.rfj-sh-panel {
    padding: 16px 18px 18px;
    background: #fff;
}

.rfj-sh-section + .rfj-sh-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--rfj-color-border, #e6eaf0);
}

.rfj-sh-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--rfj-color-text-muted, #7c8798);
    font-size: 15px;
    font-weight: 600;
}

.rfj-sh-clear {
    border: 0;
    background: transparent;
    color: var(--rfj-color-text-muted, #7c8798);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 4px 0;
}

.rfj-sh-clear:hover {
    color: var(--rfj-color-primary, #d1191a);
}

.rfj-sh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.rfj-sh-chip {
    display: inline-flex;
    align-items: center;
    max-width: 210px;
    min-height: 36px;
    border: 0;
    border-radius: var(--rfj-radius-md, 6px);
    background: var(--rfj-color-bg-soft, #f5f7fb);
    color: var(--rfj-color-text, #181f2a);
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    padding: 0 9px 0 14px;
    transition: background var(--rfj-transition, 180ms ease), color var(--rfj-transition, 180ms ease);
}

.rfj-sh-chip:hover {
    background: var(--rfj-color-primary-light, #fff1f1);
    color: var(--rfj-color-primary, #d1191a);
}

.rfj-sh-chip-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rfj-sh-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 50%;
    color: var(--rfj-color-text-muted, #7c8798);
    font-size: 17px;
    line-height: 1;
}

.rfj-sh-chip-remove:hover {
    background: rgba(209, 25, 26, 0.1);
    color: var(--rfj-color-primary, #d1191a);
}

.rfj-sh-hot-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
    row-gap: 8px;
}

.rfj-sh-hot-item {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 30px;
    border: 0;
    background: transparent;
    color: var(--rfj-color-text, #181f2a);
    cursor: pointer;
    font-size: 15px;
    line-height: 1.4;
    padding: 2px 0;
    text-align: left;
}

.rfj-sh-hot-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rfj-sh-hot-item:hover {
    color: var(--rfj-color-primary, #d1191a);
}

@media (max-width: 768px) {
    .rfj-sh-panel {
        padding: 14px;
    }

    .rfj-sh-hot-list {
        grid-template-columns: 1fr;
        row-gap: 6px;
    }
}
