/**
 * Минимальные стили для поиска прайса
 * Интегрируется с существующими FAQ стилями
 */

/* ==================================
   Панель управления прайсом
   ================================== */

.price-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.price-search-wrapper {
    position: relative;
    flex: 1 1 300px;
    min-width: 250px;
}

.price-search {
    width: 100%;
    padding: 12px 45px 12px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

.price-search:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(101, 91, 150, 0.1);
}

.price-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.price-search-clear:hover {
    color: #333;
}

.price-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-toggle-all {
    padding: 12px 24px;
    background: #fff;
    border: 2px solid var(--gold);
    color: var(--gold);
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-toggle-all:hover {
    background: var(--gold);
    color: #fff;
}

.price-results {
    padding: 8px 16px;
    background: var(--akcent, #655B96);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* ==================================
   Таблица услуг
   ================================== */

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.price-row {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row:hover {
    background: #fafafa;
}

.price-table td {
    padding: 15px 0;
    vertical-align: middle;
}

.service-name {
    width: 50%;
}

.service-title {
    font-size: 15px;
    line-height: 1.5;
}

.service-price {
    width: 20%;
    text-align: right;
    font-weight: 600;
    font-size: 16px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    font-weight: normal;
}

.current-price {
    color: var(--akcent, #655B96);
}

.service-action {
    width: 30%;
    text-align: right;
}
.service-sub-name {
    font-size: 20px;
    font-weight: bold;
}
.service-price__duration {
    white-space: nowrap;
}
.price-row__desc {
    font-weight: 400;
    margin-top: 6px;
}
.service-name.service-sub-name .service-title {
    font-size: 20px;
}
.prices-table table td {
    border-bottom: 1px solid #d5d5d5;
}

/* ==================================
   Подсветка найденного текста
   ================================== */

mark {
    background: #fff59d;
    color: #000;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* ==================================
   Сообщение "Ничего не найдено"
   ================================== */

.no-results {
    background: #e5eafd;
    border-radius: 0 20px 0 20px;
}

.no-results .faq-question {
    padding-bottom: 30px;
}

.no-results-content {
    text-align: center;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--akcent, #655B96);
    font-weight: bold;
}

.no-results p {
    font-size: 16px;
    color: #666;
}

.no-results a {
    color: var(--akcent, #655B96);
    text-decoration: underline;
    font-weight: 600;
}

.no-results a:hover {
    text-decoration: none;
}

/* ==================================
   Группа с количеством услуг
   ================================== */

.group-count {
    margin-left: 8px;
    font-size: 14px;
    opacity: 0.7;
    font-weight: normal;
}

/* ==================================
   Мобильная адаптация
   ================================== */

@media (max-width: 768px) {
    .price-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .price-search-wrapper {
        width: 100%;
    }

    .price-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-toggle-all {
        width: 100%;
    }

    .price-results {
        text-align: center;
    }

    .price-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .price-table tbody {
        display: block;
    }

    .price-row {
        display: flex;
        flex-direction: column;
        padding: 15px;
        border-bottom: 2px solid #e0e0e0;
    }

    .price-table td {
        display: block;
        padding: 8px 0;
        width: 100% !important;
        text-align: left !important;
    }

    .service-price {
        font-size: 18px;
        margin: 10px 0;
    }

    .service-action {
        margin-top: 10px;
    }

    .service-action .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .price-search {
        font-size: 14px;
        padding: 10px 40px 10px 15px;
    }

    .btn-toggle-all {
        padding: 10px 20px;
        font-size: 14px;
    }

    .service-code {
        display: block;
        margin-bottom: 8px;
        width: fit-content;
    }
}

/* ==================================
   Печать
   ================================== */

@media print {
    .price-controls,
    .service-action {
        display: none !important;
    }
}