/* =====================================================================
 * Кольори винесені у змінні: міняєш тут — міняється всюди.
 * ===================================================================== */

.price-service,
.prices {
    --ps-main:   #56222E; /* бордовий: назва, ціна, іконка */
    --ps-accent: #ff0000; /* червоний: акційна ціна, ховер іконки */
    --ps-grey:   #979797; /* стара ціна */
    --ps-bg:     #f7faf8; /* фон рядка — дуже світлий зелений */
    --ps-hover:  #e6f0ea; /* фон рядка при наведенні — світлий зелений */
    --ps-border: #dde8e2; /* роздільник рядків */
}

.price-service__wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    column-gap: 0;
}

.price-service__list {
    list-style: none;
    margin: 0;
    padding: 12px 0px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.price-service__list > .list__item {
    display: grid;
    grid-template-columns: 1fr auto 54px;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 12px 20px;
    background: var(--ps-bg);
    border-bottom: 1px solid var(--ps-border);
    border-radius: 0;
    transition: background-color .2s;
}

.price-service__list > .list__item:first-child {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.price-service__list > .list__item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.price-service__list > .list__item:hover {
    background-color: var(--ps-hover);
}

/* Обгортка «схлопується», щоб aside і action стали колонками грида */
.price-service__bottom {
    display: contents;
}

.price-service__info {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding-right: 24px;
    min-width: 0;
}

.price-service .price-service__name {
    margin: 0;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.35;
    color: var(--ps-main);
}

.price-service .price-service__description {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: #5c5c5c;
}

.price-service__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 130px;
    padding-right: 16px;
}

.price-service .price-service__cost {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin: 0;
    white-space: nowrap;
}

.price-service__cost-new {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: var(--ps-main);
}

.price-service__cost-old {
    font-size: 15px;
    line-height: 1.2;
    color: var(--ps-grey);
    text-decoration: line-through;
}

.price-service__cost--sale .price-service__cost-new {
    color: var(--ps-accent);
}

.price-service__action {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Кнопка запису (посилання, що відкриває попап Elementor) */
.kds-price__order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--ps-main);
    text-decoration: none;
    box-shadow: none;
    transition: color .2s, background-color .2s;
}

.kds-price__order:hover,
.kds-price__order:focus {
    color: var(--ps-accent);
    background: rgba(41, 96, 71, .08);
    text-decoration: none;
}

.price-service .kds-price__order-icon {
    display: block;
    width: 40px;
    height: 35px;
    /* Власний color сильніший за успадкований від <a>,
       тому іконка не перефарбовується стилями теми на ховері. */
    color: var(--ps-main);
}

/* ------------------------------- мобільний ------------------------ */
@media (max-width: 768px) {
    .price-service__list {
        gap: 14px;
        padding: 12px 0px;
    }

    .price-service__list > .list__item {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 18px 20px;
        border-radius: 14px;
        border-bottom: none;
        background: var(--ps-bg);
        align-items: stretch;
    }

    .price-service__info {
        padding-right: 0;
    }

    .price-service__bottom {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .price-service__aside {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
        padding-right: 0;
        min-width: 0;
    }

    .price-service__cost {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }

    .price-service__name {
        font-size: 18px;
    }
}

/* =====================================================================
 * ВІТРИНА ЦІН — випадашка напрямків  [kds_prices]
 * ===================================================================== */

.df-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 0 0 24px;
}

.df-dropdown {
    position: relative;
    min-width: 280px;
    flex-shrink: 1;
    user-select: none;
}

.df-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    background: var(--ps-main);
    color: #fff;
    border: 1px solid var(--ps-main);
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.df-trigger:hover,
.df-dropdown.is-open .df-trigger {
    background: #6b2b39;
    border-color: #6b2b39;
}

.df-dropdown.is-open .df-trigger {
    border-radius: 12px 12px 0 0;
    border-bottom-color: transparent;
}

.df-arrow {
    display: flex;
    flex-shrink: 0;
    color: #fff;
    transition: transform .25s;
}

.df-dropdown.is-open .df-arrow {
    transform: rotate(180deg);
}

.df-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--ps-main);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(86, 34, 46, .12);
    z-index: 999;
    max-height: 320px;
    overflow-y: auto;
}

.df-dropdown.is-open .df-list {
    display: block;
}

.df-option {
    margin: 0;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ps-main);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.df-option:hover {
    background: var(--ps-hover);
}

.df-option.is-selected {
    background: var(--ps-bg);
    color: var(--ps-accent);
    font-weight: 600;
}

.df-list::-webkit-scrollbar { width: 4px; }
.df-list::-webkit-scrollbar-track { background: transparent; }
.df-list::-webkit-scrollbar-thumb { background: var(--ps-hover); border-radius: 4px; }

.df-select-native { display: none; }

/* Панелі напрямків: показуємо лише активну */
.prices__item {
    display: none;
}

.prices__item--active {
    display: block;
}

.prices__item-title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.3;
    color: var(--ps-main);
}

@media (max-width: 576px) {
    .df-dropdown {
        min-width: 0;
        width: 100%;
    }

    .prices__item-title {
        font-size: 19px;
    }
}
