/* Попап «Ціни» в картці виконавця (/uslugi, категорії виконавців).
   Відкриття/закриття — common.js (inline display:block/none), тут лише вигляд. */

.employee_find .type_services_inf_wrap.prices-popup {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 200px;
    right: 25px;
    z-index: 10;
    float: none;
    width: auto !important;
    height: auto;
    padding: 0;
    transform: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
    overflow: hidden;
    text-align: left;
}

/* JS ставить display:block — робимо колонку, щоб низ попапу був притиснутий донизу */
.employee_find .type_services_inf_wrap.prices-popup[style*="block"] {
    display: flex !important;
}

.prices-popup__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 12px 14px 10px 22px;
    border-bottom: 1px solid #f2f4f7;
}

.prices-popup .prices-popup__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #101828;
}

.employee_find .type_services_inf_wrap.prices-popup .close_inf.prices-popup__close {
    position: static;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f2f4f7 url(../img/ico/close.png) no-repeat center / 12px 12px;
    transition: background-color .15s;
}

.employee_find .type_services_inf_wrap.prices-popup .close_inf.prices-popup__close:hover {
    background-color: #e4e7ec;
}

.prices-popup .prices-popup__list {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 6px 22px;
    list-style: none;
    overflow-y: auto;
}

.employee_find .prices-popup .type_services_block.prices-popup__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px dashed #e4e7ec;
}

.employee_find .prices-popup .prices-popup__row:last-child {
    border-bottom: 0;
}

.prices-popup .prices-popup__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: #344054;
    text-align: left;
    overflow-wrap: anywhere;
}

.employee_find .prices-popup .cost_work.prices-popup__price {
    display: inline-block;
    flex: 0 0 auto;
    max-width: 55%;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff6e8;
    border: 1px solid #ffd9a8;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #b54708;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prices-popup__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    flex: 0 0 auto;
    padding: 10px 22px 12px;
    border-top: 1px solid #f2f4f7;
    background: #fcfcfd;
}

.employee_find .prices-popup .show_all_serv.prices-popup__all {
    float: none;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #219ae7;
}

.employee_find .prices-popup .show_all_serv.prices-popup__all span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.employee_find .prices-popup .show_all_serv.prices-popup__all:after {
    content: none;
}

.employee_find .prices-popup .show_all_serv.prices-popup__all:hover {
    color: #0b7bc4;
}

.employee_find .prices-popup .order_serv.prices-popup__order {
    float: none;
    width: auto;
    margin: 0;
    padding: 9px 16px;
    border-radius: 6px;
    background: #ff9900;
    font-size: 14px;
}

.employee_find .prices-popup .order_serv.prices-popup__order:hover {
    background: #f08f00;
}

/* Посилання «Ціни» в активному стані */
.employee_find .type_services.active {
    background: transparent;
    color: #ff9900;
}

@media (max-width: 767px) {
    .employee_find .type_services_inf_wrap.prices-popup {
        top: 8px;
        bottom: 8px;
        left: 8px;
        right: 8px;
    }

    .prices-popup__head {
        padding: 14px 14px 10px 16px;
    }

    .prices-popup .prices-popup__list {
        padding: 4px 16px;
    }

    .employee_find .prices-popup .type_services_block.prices-popup__row {
        gap: 10px;
    }

    .prices-popup .prices-popup__name {
        font-size: 14px;
    }

    .employee_find .prices-popup .cost_work.prices-popup__price {
        max-width: 50%;
        padding: 3px 8px;
        font-size: 13px;
        white-space: normal;
    }

    .prices-popup__foot {
        padding: 12px 16px 14px;
    }
}

@media (max-width: 359px) {
    /* вузький екран — ціна під назвою, без обрізання */
    .employee_find .prices-popup .type_services_block.prices-popup__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .employee_find .prices-popup .cost_work.prices-popup__price {
        max-width: 100%;
        white-space: normal;
        text-align: left;
    }
}
