﻿.store-search-history {
    margin: 14px 0 18px;
}

.store-search-history--home {
    margin-top: -10px;
    margin-bottom: 22px;
}

.store-search-history__box {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
}

.store-search-history__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.store-search-history__title {
    font-size: 14px;
    font-weight: 700;
    color: #172033;
}

.store-search-history__clear {
    border: 0;
    background: transparent;
    color: #8a94a6;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
}

    .store-search-history__clear:hover {
        color: #e5484d;
    }

.store-search-history__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.store-search-history__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: 240px;
    padding: 7px 9px;
    border-radius: 999px;
    border: 1px solid #dfe6ef;
    background: #f8fafc;
    color: #172033;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    transition: 0.15s ease;
}

    .store-search-history__item:hover {
        background: #eef6ff;
        border-color: #b9d9ff;
        color: #0b67c2;
    }

.store-search-history__badge {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #0b67c2;
    font-size: 11px;
    font-weight: 700;
}

.store-search-history__text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-search-history__remove {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: #edf1f6;
    color: #7c8798;
    cursor: pointer;
    font-size: 14px;
    line-height: 18px;
    padding: 0;
}

    .store-search-history__remove:hover {
        background: #ffe9e9;
        color: #e5484d;
    }

.store-search-history-tabs {
    margin: 0 0 12px;
}

.store-search-history-tabs__list {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.store-search-history-tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 190px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f6f8fb;
    border: 1px solid #e1e7ef;
    color: #172033;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
}

    .store-search-history-tabs__item:hover {
        background: #eef6ff;
        border-color: #b9d9ff;
        color: #0b67c2;
    }

.store-search-history-tabs__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-search-history-tabs__remove {
    width: 17px;
    height: 17px;
    border: 0;
    border-radius: 50%;
    background: #e9eef5;
    color: #7c8798;
    cursor: pointer;
    font-size: 13px;
    line-height: 17px;
    padding: 0;
}

    .store-search-history-tabs__remove:hover {
        background: #ffe9e9;
        color: #e5484d;
    }

@media (max-width: 768px) {
    .store-search-history__box {
        padding: 10px;
        border-radius: 14px;
    }

    .store-search-history__item {
        max-width: 210px;
    }

    .store-search-history-tabs__item {
        max-width: 170px;
    }
}
.store-search-history-tabs-wrapper {
    margin-bottom: 12px;
}

.store-search-history-tabs-title {
    font-size: 13px;
    font-weight: 600;
    color: #6b7686;
    margin-bottom: 6px;
    padding-left: 2px;
}