.er24hps {
    --er24hps-blue: #5878B5;
    --er24hps-blue-dark: #45659F;
    --er24hps-text: #202938;
    --er24hps-muted: #667286;
    --er24hps-line: #DCE4EF;
    --er24hps-soft: #F7F9FC;

    position: relative;
    flex: 0 0 auto;
    width: 260px;
    font-family: inherit;
    z-index: 1200;
}

.er24hps-panel {
    position: relative;
    width: 100%;
}

.er24hps-field {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 0 12px;
    border: 1px solid var(--er24hps-line);
    border-radius: 5px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.er24hps-field:focus-within {
    border-color: var(--er24hps-blue);
    box-shadow: 0 0 0 3px rgba(88,120,181,.08);
}

.er24hps-icon,
.er24hps-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.er24hps-icon {
    color: var(--er24hps-muted);
}

.er24hps-input {
    width: 100%;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--er24hps-text) !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 13px;
}

.er24hps-input::placeholder {
    color: #8A95A5;
    opacity: 1;
}

.er24hps-clear {
    display: none;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--er24hps-muted);
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.er24hps.has-query .er24hps-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.er24hps-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--er24hps-line);
    border-radius: 5px;
    background: #fff;
    color: var(--er24hps-text);
    cursor: pointer;
    box-shadow: none;
    transform: none;
}

.er24hps-toggle:hover {
    border-color: var(--er24hps-blue);
    color: var(--er24hps-blue);
    background: #fff;
    transform: none;
}

.er24hps-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 390px;
    max-width: calc(100vw - 32px);
    overflow: hidden;
    border: 1px solid var(--er24hps-line);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(32,41,56,.13);
    z-index: 99999;
}

.er24hps-status {
    display: none;
    padding: 16px;
    color: var(--er24hps-muted);
    font-size: 13px;
}

.er24hps.is-loading .er24hps-status,
.er24hps.is-empty .er24hps-status {
    display: block;
}

.er24hps-result {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #EEF2F7;
    color: var(--er24hps-text) !important;
    text-decoration: none !important;
    background: #fff;
    transition: background-color .18s ease;
}

.er24hps-result:hover,
.er24hps-result.is-active {
    background: var(--er24hps-soft);
}

.er24hps-result img {
    width: 58px;
    height: 58px;
    display: block;
    border-radius: 5px;
    object-fit: cover;
    background: var(--er24hps-soft);
}

.er24hps-result-title {
    display: block;
    margin-bottom: 5px;
    color: var(--er24hps-text);
    font-size: 13px;
    line-height: 1.32;
    font-weight: 600;
}

.er24hps-result-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.er24hps-price {
    color: var(--er24hps-blue-dark);
    font-size: 13px;
    font-weight: 650;
}

.er24hps-price del {
    color: #98A2B1;
    font-size: 11px;
}

.er24hps-price ins {
    color: var(--er24hps-blue-dark);
    text-decoration: none;
}

.er24hps-sku {
    color: var(--er24hps-muted);
    font-size: 10px;
}

.er24hps-all {
    display: block;
    padding: 12px 14px;
    background: #fff;
    color: var(--er24hps-blue) !important;
    font-size: 12px;
    font-weight: 650;
    text-align: center;
    text-decoration: none !important;
}

.er24hps-all:hover {
    background: var(--er24hps-soft);
    color: var(--er24hps-blue-dark) !important;
}

@media (max-width: 1240px) and (min-width: 1100px) {
    .er24hps {
        width: 210px;
    }
}

@media (max-width: 1099px) {
    .er24hps {
        width: 44px;
    }

    .er24hps-toggle {
        display: inline-flex;
    }

    .er24hps-panel {
        display: none;
        position: absolute;
        top: calc(100% + 9px);
        right: 0;
        width: min(360px, calc(100vw - 32px));
        padding: 10px;
        border: 1px solid var(--er24hps-line);
        border-radius: 7px;
        background: #fff;
        box-shadow: 0 18px 50px rgba(32,41,56,.13);
    }

    .er24hps.is-open .er24hps-panel {
        display: block;
    }

    .er24hps-dropdown {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 8px;
        box-shadow: none;
    }
}
