/* Поиск по каталогу (плагин CatalogSearch) */

/* ---------- подсказки под строкой поиска ---------- */
.cs-suggest {
    position: absolute;
    z-index: 5000;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #80A4DE;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(53, 103, 172, .18);
}

.cs-suggest__item {
    display: block;
    padding: 8px 16px;
    color: #333;
    border-bottom: 1px solid #eef2f9;
    text-decoration: none;
}

.cs-suggest__item:hover,
.cs-suggest__item--active {
    background: #f3f7fd;
    color: #333;
    text-decoration: none;
}

.cs-suggest__name {
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.cs-suggest__name mark {
    background: none;
    color: #3567ac;
    font-weight: 700;
}

.cs-suggest__path {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: #8a94a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-suggest__all {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: #3567ac;
    background: #fafcff;
}

.cs-suggest__all:hover {
    color: #3567ac;
    background: #f3f7fd;
    text-decoration: none;
}

/* ---------- окно «ничего не найдено» ---------- */
.cs-modal-backdrop {
    position: fixed;
    z-index: 6000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 34, 58, .55);
}

.cs-modal {
    max-width: 460px;
    width: 100%;
    padding: 28px 30px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.cs-modal__title {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #2b3a55;
}

.cs-modal__text {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.cs-modal__actions .cs-btn + .cs-btn {
    margin-left: 10px;
}

/* ---------- кнопка ---------- */
.cs-btn {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid #80A4DE;
    border-radius: 6px;
    background: #fff;
    color: #3567ac;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
}

.cs-btn:hover {
    background: #f3f7fd;
    color: #3567ac;
    text-decoration: none;
}

.cs-btn--primary {
    background: #80A4DE;
    border-color: #80A4DE;
    color: #fff;
}

.cs-btn--primary:hover {
    background: #3567ac;
    border-color: #3567ac;
    color: #fff;
}

/* ---------- страница результатов ---------- */
.cs-page {
    margin: 10px 0 30px;
}

.cs-page__hint,
.cs-page__notice,
.cs-page__summary {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.cs-page__empty {
    margin: 10px 0 30px;
    padding: 20px 24px;
    background: #f3f7fd;
    border: 1px solid #d6e2f5;
    border-radius: 8px;
}

.cs-page__empty p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.6;
}

.cs-group {
    margin: 0 0 26px;
}

.cs-group__title {
    margin: 0 0 10px;
    padding-bottom: 8px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: #2b3a55;
    border-bottom: 1px solid #e3eaf5;
}

.cs-group__title a {
    color: #2b3a55;
    text-decoration: none;
}

.cs-group__title a:hover {
    color: #3567ac;
    text-decoration: underline;
}

.cs-group__number {
    display: inline-block;
    min-width: 26px;
    height: 26px;
    margin-right: 10px;
    border-radius: 13px;
    background: #80A4DE;
    color: #fff;
    font-size: 14px;
    line-height: 26px;
    text-align: center;
}

.cs-group__items {
    margin: 0;
    padding: 0 0 0 36px;
    list-style: none;
}

.cs-item {
    padding: 7px 0;
    border-bottom: 1px dashed #eef2f9;
}

.cs-item:last-child {
    border-bottom: 0;
}

.cs-item__name {
    display: inline-block;
    font-size: 15px;
    line-height: 1.4;
    color: #3567ac;
    text-decoration: none;
}

.cs-item__name:hover {
    color: #2b3a55;
    text-decoration: underline;
}

.cs-item__name mark {
    background: none;
    color: #2b3a55;
    font-weight: 700;
}

.cs-item__path {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: #8a94a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- селектор источника поиска ---------- */
select.selectProvider,
.nice-select.selectProvider {
    border: 0;
    border-radius: 10px;
    padding-right: 10px;
    margin-right: 10px;
}

/* ширину подстраивает скрипт (catalog-search.js) под выбранный пункт;
   границы ниже — страховка на случай, если скрипт ещё не успел выполниться */
.nice-select.selectProvider {
    min-width: 0;
    max-width: 240px;
    white-space: nowrap;
}

.nice-select.selectProvider .current {
    white-space: nowrap;
}

/* раскрытый список не уже 240px, чтобы длинные пункты не переносились */
.nice-select.selectProvider .list {
    min-width: 240px;
    max-width: calc(100vw - 30px);
}

.nice-select.selectProvider .option {
    white-space: nowrap;
}

