/* Font definitions needed for icons */
@font-face {
    font-family: icons_rew;
    font-display: swap;
    src: url(/templates/booking/app/fonts/icons.woff2) format("woff2");
    font-weight: 400;
    font-style: normal
}

.head-expert__title.title {
    margin-bottom: 0px;
}

/* Base icon styling */
[class*=_icon-]::before {
    font-family: icons;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

/* Specific icons used in the component */
._icon-star:before {
    content: ""
}

._icon-loc-em:before {
    content: ""
}

/* Main container styles */
.expert-time__content {
    display: grid;
    align-items: start;
    gap: 1.875rem;
    grid-template-columns: repeat(1, 50% 50%);
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;

}

/* Profile section */
.expert-time__profile {
    /* No specific styles needed */
}

.profile-expert-time {
    height: 100%;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.profile-expert-time__image {
    overflow: hidden;
    border-radius: 0.9375rem;
    max-width: 11.25rem;
    min-width: 11.25rem;
}

.profile-expert-time__image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.profile-expert-time__body {
    display: grid;
    justify-items: start;
    gap: 0.9375rem;
    padding-top: 25px;
}

/* Doctor name and specialty */
.profile-expert-time__name h4 {
    line-height: 120%;
    font-size: 1.5625rem;
}

.profile-expert-time__name span {
    display: flex;
    font-weight: 400;
    margin-top: 0.4375rem;
    font-size: 1rem;
}

/* Profile items with icons */
.profile-expert-time__item {
    display: flex;
    gap: 0.3125rem;
    font-weight: 400;
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
}

.profile-expert-time__item::before {
    color: #30b391;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.profile-expert-time__item:first-child {
    font-weight: 700;
    color: #30b391;
}

.profile-expert-time__item span {
    color: #30b391;
}

/* Recommendation rate */
.profile-expert-time__rate {
    color: #ddbb72;
    text-align: center;
    align-items: center;
    display: inline-flex;
    font-size: 0.875rem;
    border-radius: 0.4375rem;
    justify-content: center;
    background-color: #f4e5c5;
    padding: 0.4375rem 0.9375rem;
}

/* Time selection section */
.expert-time__clocks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    padding-top: 30px;
}

.expert-time__clock {
    width: 6.875rem;
    font-weight: 700;
    background-color: #fff;
    border-radius: 0.9375rem;
    transition: background-color 0.3s ease 0s, color 0.3s ease 0s;
    box-shadow: rgba(0, 0, 0, 0.1) 0 1px 1px 0, rgba(0, 0, 0, 0.03) 0 1px 1px 0;
    font-size: 1.125rem;
    min-height: 3.4375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.expert-time__clock--active {
    color: #fff;
    background-color: #30b391;
}

/* Hover effects */
@media (any-hover: hover) {
    .expert-time__clock:hover {
        background-color: #30b391;
        color: #fff;
    }
}

/* Responsive styles for smaller screens */
@media (max-width: 47.99875em) {
    .expert-time__content {
        gap: 0.9375rem;
    }

    .profile-expert-time {
        gap: 0.625rem;
    }

    .profile-expert-time__body {
        gap: 0.625rem;
    }

    .profile-expert-time__name h4 {
        font-size: 1rem;
    }

    .profile-expert-time__name span {
        font-size: 0.75rem;
    }

    .profile-expert-time__item {
        font-size: 0.875rem;
    }

    .profile-expert-time__item::before {
        font-size: 1rem;
    }

    .profile-expert-time__rate {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }

    .expert-time__clocks {
        gap: 0.3125rem;
    }

    .expert-time__clock {
        width: 5rem;
        border-radius: 0.625rem;
        font-size: 0.875rem;
        min-height: 2rem;
    }
}

@media (max-width: 29.99875em) {
    .profile-expert-time {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

.review_body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding-right: 30px;
}

.review_head {
    display: flex;
    gap: 10px;
}

.review_name {
    font-weight: 700;
    color: #000000;
    font-size: 1rem;
}

.review_date {
    color: #4b4b4b;
    font-size: 1rem;
}

.review_answer {
    font-style: italic;
}

.all_rew {
    text-align: right;
}

.all_rew a {
    color: #ed9231;
    position: relative;
    margin-right: 20px;
}

.all_rew a::after {
    font-family: icons;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    content: "";
    color: #ed9231;
    align-self: stretch;
    display: flex;
    font-size: 1rem;
    justify-content: center;
    align-items: center;
    transform: rotate(90deg);
    transition: 0.3s;
    position: absolute;
    right: -20px;
    top: 2px;
    transform: rotate(0deg);
}

@media (min-width: 20em) and (max-width: 76.875em) {
    @supports (gap:clamp(0.9375rem, 0.6078296703rem + 1.6483516484vw, 1.875rem)) {
        .expert-time__content {
            gap: clamp(.9375rem, .6078296703rem + 1.6483516484vw, 1.875rem);
        }
    }
}

@media (min-width: 20em) and (max-width: 76.875em) {
    @supports (gap:clamp(0.625rem, 0.4052197802rem + 1.0989010989vw, 1.25rem)) {
        .profile-expert-time {
            gap: clamp(.625rem, .4052197802rem + 1.0989010989vw, 1.25rem);
        }
    }
}

@media (min-width: 20em) and (max-width: 76.875em) {
    @supports (gap:clamp(0.3125rem, 0.2026098901rem + 0.5494505495vw, 0.625rem)) {
        .expert-time__clocks {
            gap: clamp(.3125rem, .2026098901rem + .5494505495vw, .625rem);
        }
    }
}



@media (max-width: 960px) {
    .expert-time__content {
        display: flex;
        flex-direction: column;
    }

    .profile-expert-time__image {
        overflow: hidden;
        border-radius: 0.9375rem;
        max-width: 7rem;
        min-width: 7rem;
    }

    .profile-expert-time__body {
        padding-top: 0px;
    }

    .all_rew {
        text-align: left;
    }
}

.white-popup {
    position: relative;
    background: #FFF;
    padding: 100px;
    width: auto;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 6px;
}

.review_title {
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 80px;
    font-weight: 700;
}

.review_modal .form-confirm__labels input,
.review_modal textarea {
    background-color: #f6f6f6;
    color: #3a3a3a;
}

.review_modal .form-confirm__labels input::placeholder,
.review_modal textarea::placeholder {
    color: #868ea8;
}

.review_modal textarea {
    padding: 10px;
}

.btn_wrap {
    text-align: center;
}


.review_title_wrap .open-popup-link span {
    z-index: 1;
    position: relative;
    display: flex;
    gap: 20px;
    align-content: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;

}

.review_title_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}


@media (max-width: 768px) {
    .review_title_wrap {
        display: flex;
        justify-content: space-between;
        margin-bottom: 30px;
    }

    .head-expert__title {
        margin-bottom: 0px;
    }

    .title {
        margin-bottom: 0px;
    }

    .head-expert__title:not(:last-child) {
        margin-bottom: 0px;
    }

    .review_title_wrap .form-confirm__button {
        margin-top: 0px;
    }

    .white-popup {
        max-width: 100%;
        padding: 20px;
    }

    .form-confirm__labels {
        display: flex;
        flex-direction: column;
    }
}

/* Кастомные select в форме отзыва */
.review_modal select[hidden] {
    display: none !important;
}

.review_modal .select {
    width: 100%;
}

.review_modal .select__title {
    width: 100%;
    min-height: 3.625rem;
    background-color: #f6f6f6;
    border: 1px solid rgba(75, 84, 114, .1);
    border-radius: 6px;
    font-size: 16px;
    color: #3a3a3a;
    box-shadow: none;
}

.review_modal .select__value {
    min-height: 3.625rem;
    align-items: center;
    font-size: 16px;
}

.review_modal .select__input {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    font: inherit;
    line-height: normal;
    color: #42ae8d;
    outline: none;
}

.review_modal .select__options {
    max-height: 300px;
    overflow-y: auto;
}

/* Единый размер и цвет текста полей формы отзыва */
.review_modal .form-confirm__labels input,
.review_modal .form-confirm__labels textarea,
.review_modal .select__value,
.review_modal .select__input {
    font-size: 16px;
}

.review_modal .select__input::placeholder {
    color: #42ae8d;
    opacity: 1;
}

/* Зелёный placeholder "ФИО врача" в форме отзыва */
.review_modal .select_form .select__input::placeholder {
    color: #42ae8d !important;
    opacity: 1;
}