.modal.fade.show {
    position: fixed;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.64);
    z-index: 99999999;
}

.modal {
    display: none;
}

.modal-dialog {
    width: 946px;
    max-width: 90%;
}

.order-content a.btn_order_clinic {
    color: #fff !important;
}

span.close-modal {
    cursor: pointer;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 946px;
    max-width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: .3rem;
    outline: 0;
}

.widget-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    width: 100%;
    border-bottom: 1px solid #DCE3EB;
    box-sizing: border-box;
}

.widget-title img {
    width: 278px;
    height: 40px;
}

.order-content {
    position: relative;
}

#loader_button {
    width: 152.2px; 
    height: 46px;
}

.widget-title .left-header-help {
    font-family: Gilroy;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 0%;
    color: #00B39E;
    text-wrap: nowrap;
}

.widget-title .tel {
    display: flex;
    flex-direction: column;
}

.widget-title .tel .left-header-tel {
    text-wrap: nowrap;
    font-family: Gilroy;
    font-weight: 800;
    font-size: 22px;
    line-height: 30px;
    text-align: center;
    color: #00375B;
}

.widget-title .tel span {
    font-family: Gilroy;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    text-wrap: nowrap;
    color: #69757D;
}

.order-content {
    padding: 0px 32px 10px 32px;
}

.order-tabs {
    display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 32px 0px 24px 0px;
	position: relative;
	width: 100%;
}

.order-tab {
    display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	position: relative;
	flex: 1;
    cursor: pointer;
}

.order-tab.active .circle {
    background-color: #00B39E;
    color: #FFFFFF;
}

.order-tab.ended .circle {
    background-color: #00B39E;
    color: #FFFFFF;
}

.order-tab.active span {
    color: #030303;
}

.order-tab span {
    color: #90A4AE;
    font-family: Gilroy;
    font-weight: 700;
    font-style: Bold;
    font-size: 18px;
    text-align: center;
}

/* Серые линии между всеми элементами */
.order-tab:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 21px; /* центр круга */
	right: -50%;
	width: 100%;
	height: 2px;
	background-color: #e0e0e0;
	z-index: 0;
}

/* Заполненная часть линии у активного */
.order-tab.active:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 21px;
	left: 50%;
	width: 34%; /* до середины линии */
	height: 2px;
	background-color: #00B39E;
	z-index: 1;
}

/* Заполненная часть линии у активного */
.order-tab.ended:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 21px;
	left: 50%;
	width: 100%; /* до середины линии */
	height: 2px;
	background-color: #00B39E;
	z-index: 1;
}


.order-tab .circle {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background-color: #E9EEF4;
	color: #000000;
	font-family: Gilroy;
	font-weight: 700;
	font-size: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	z-index: 2;
    border: 4px solid #fff;
}

.order-tab .circle span {
    color: #FFFFFF;
}

.field-block.order-search {
    position: relative;
}

.field-block.order-search input {
    width: calc(100% - 64px);
    height: 64px;
    background-color: #E9EEF4;
    border-radius: 6px;
    border: none;
    color: #030303;
}

.field-block.order-search input::placeholder {
    color: #030303;
}

.btn-content {
    display: flex;
    justify-content: space-between;
    padding: 24px 32px;
}

.btn-content .btn-left {
    /* width: 184px;
    height: 53px; */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00B39E;
    color: #FFFFFF;
    font-family: Gilroy;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: 0px 4px 12px 0px #00000029;
    border-radius: 4px;
    cursor: pointer;
}
.btn-content .btn-left a {
    padding: 20px 38px;
}

.btn-content .btn-right a {
    padding: 20px 38px;
}

.btn-content .btn-right {
    border: 1px solid #00B39E;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00B39E;
    font-family: Gilroy;
    font-weight: 900;
    font-style: Black;
    font-size: 12px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
}


.map-clinic-list iframe {
    width: 882px;
    height: 393px;
    max-width: 100%;
}

.clinic-list, .services-list, .doctors-list {
    margin-top: 24px;
    height: 287px;
    padding: 0px 51px;
    overflow-y: scroll;
}

.clinic-item {
    display: flex;
    gap: 12px;
    min-height: 24px;
    align-items: center;
    margin-bottom: 11px;
    cursor: pointer;
}

.custom-radio-btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.clinic-item .custom-radio-btn input {
    width: 16px;
    height: 16px;
}

.custom-radio-btn input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #00B39E;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  cursor: pointer;
  background: #fff;
}

.custom-radio-btn input[type="radio"]:checked {
  background-color: #fff;
}

.custom-radio-btn input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  background-color: #00B39E;
  border-radius: 50%;
}

.clinic-title {
    color: #00375B;
    font-family: Gilroy;
    font-weight: 600;
    font-size: 18px;
}

.services-item {
    display: flex;
    gap: 12px;
    min-height: 24px;
    padding: 12px 0px;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 2px solid #DCE3EB;
    cursor: pointer;
}

.services-item .services-info {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.services-item .services-info .services-title {
    font-family: Gilroy;
    font-weight: 600;
    font-size: 18px;
    color: #00375B;
}

.services-item .services-info .next-order {
    display: flex;
    align-items: center;
    color: #00A994;
    background: #00A9941F;
    gap: 8px;
    border-radius: 32px;
    padding: 9px 18px;
}

.services-item .services-info .next-order svg {
    width: 16px;
    height: 16px;
}

.doctors-item {
    display: flex;
    gap: 12px;
    min-height: 24px;
    padding: 12px 0px;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 2px solid #DCE3EB;
    cursor: pointer;
}

.doctors-item .doctor-img {
    width: 80px;
    height: 80px;
    border-radius: 100%;
    border: 1px solid #DADADA;
    overflow: hidden;
    flex-shrink: 0;
}

.doctors-item .doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctors-item .doctors-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doctors-item .doctors-info .doctors-title {
    font-family: Gilroy;
    font-weight: 600;
    font-size: 22px;
    color: #00375B;
}

.doctors-item .doctors-info .next-order {
    display: flex;
    align-items: center;
    color: #00A994;
    background: #00A9941F;
    gap: 8px;
    border-radius: 32px;
    padding: 9px 18px;
}

.doctors-item .doctors-info .next-order svg {
    width: 16px;
    height: 16px;
}

.order-tab-content .d-bg {
    background-color: #E9EEF4;
    width: 100%;
    border-radius: 16px;
    padding: 24px;
    box-sizing: border-box;
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 471px;
}

.dates-select {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#js-calendarD {
    width: 50%;
}

.select-time-right {
    width: 45%;
}

.select-time-right .time-item {
    flex: 0 0 calc(calc(100% - 24px) / 3);
}

.order-tab.ended .circle span {
    display: none;
}

.order-tab.ended .circle .ended {
    display: block;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.order-tab .circle .ended {
    display: none;
}

.select-time {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.select-time .time-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 13px 17px;
    font-size: 14px;
    font-weight: 100;
    border-radius: 4px;
    color: #464553;
    cursor: pointer;
    transition: 0.2s;
    box-sizing: border-box;
    background-color: #FFFFFF;
    font-family: Gilroy;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    color: #00B39E;
}

.time-item:hover {
    background: #00B39E;
    color: #FFFFFF;
}

.time-item.active {
    background: #00B39E;
    color: #FFFFFF;
}

.order-tab-title {
    margin: 0px auto 12px auto;
    font-family: Gilroy;
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    text-align: center;
    color: #030303;
}

.ui-widget.ui-widget-content {
    width: 100% !important;
    background: white;
    box-shadow: 0px 3px 24px rgba(0, 136, 203, 0.12);
    border-radius: 15px;
    border: 0 !important;
}

.ui-datepicker .ui-datepicker-header {
    background: #fff;
    border: 0;
    font-weight: 500;
    color: #464553;
    padding: 0;
    margin-bottom: 20px;
    margin-top: 20px;
}

.ui-datepicker .ui-datepicker-header {
    position: relative;
    padding: .2em 0;
}

.ui-datepicker table {
    width: 100%;
    font-size: .9em;
    border-collapse: collapse;
    margin: 0 0 .4em;
}

.ui-datepicker th {
    padding: .7em .3em;
    text-align: center;
    font-weight: bold;
    border: 0;
}

.ui-datepicker th {
    font-weight: 400 !important;
    color: #464553 !important;
    font-size: 12px !important;
}

.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled {
    opacity: .35;
    filter: Alpha(Opacity=35);
    background-image: none;
}

.ui-datepicker td {
    padding: 9px !important;
}

.ui-state-disabled {
    cursor: default !important;
    pointer-events: none;
}

.ui-widget-content .ui-datepicker-unselectable > span.ui-state-default {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: #E7E7E7;
    border: 1px solid #E7E7E7;
    color: #464553;
    font-size: 12px;
}

.ui-datepicker td > a.ui-state-default {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: #FFFFFF;
    border: 1px solid #E5E7E7;
    font-size: 12px;
}

.ui-widget-content .ui-state-active {
    color: #FFFFFF !important;
    background: #00B39E !important;
    border: 1px solid #00B39E !important;
    font-size: 12px;
}

.ui-widget-header .ui-icon {
    background-image: url(/local/templates/main/img/svg/arrow-calendar.svg) !important;
}

.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span {
    display: block;
    position: absolute;
    left: 50%;
    margin-left: -8px;
    top: 50%;
    margin-top: -8px;
}

.ui-datepicker .ui-datepicker-next {
    right: 2px;
}

.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next {
    position: absolute;
    top: 2px;
    width: 1.8em;
    height: 1.8em;
}

.ui-icon-circle-triangle-e {
    background-position: center !important;
    width: 10px !important;
    height: 12px !important;
    cursor: pointer;
}

.ui-icon-circle-triangle-w {
    background-position: center !important;
    transform: rotate(180deg);
    width: 10px !important;
    height: 12px !important;
    cursor: pointer;
}

a.ui-corner-all.ui-state-hover {
    border: 0 !important;
    background: #fff !important;
    top: 2px !important;
}

.doctor-data {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    padding: 12px 22px;
    border: 1px solid #DCE3EB;
    border-radius: 16px;
    gap: 30px;
    align-items: center;
}

.doctor-data-img {
    width: 116px;
    height: 116px;
    border-radius: 100%;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}

.doctor-data-img img {
    width: 116px;
    height: 116px;
    object-fit: cover;
}

.doctor-data-name {
    font-family: Gilroy;
    font-weight: 600;
    font-size: 22px;
    color: #00375B;
}

.doctor-data-spec {
    font-family: Gilroy;
    font-weight: 600;
    font-size: 14px;
    color: #999FA6;
    margin-top: 4px;
}

.doctor-data-order {
    margin-top: 14px;
    display: flex;
    align-items: center;
    color: #00A994;
    background: #00A9941F;
    gap: 8px;
    border-radius: 32px;
    padding: 9px 18px;
    width: max-content;
    font-family: Gilroy;
}

.doctor-data-address {
    padding: 9px 18px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    width: max-content;
    gap: 8px;
    font-family: Gilroy;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 14px;
    color: #00375B;
}

.input-order {
    margin-top: 24px;
}

.input-order label {
    color: #939393;
    font-family: sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    vertical-align: bottom;
}

.input-order input {
    width: 100%;
    background-color: #E9EEF4;
    border-radius: 6px;
    height: 42px;
    padding-left: 12px;
    color: #030303;
    box-sizing: border-box;
    border: 1px solid #e9eef400;
}

.input-order input::placeholder {
    color: #030303;
}

.inputs-order {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.inputs-order .input-order {
    width: 264px;
    max-width: calc(100% / 3 - 12px);
    box-sizing: border-box;
}

.padingX64 {
    padding: 0px 64px;
}

input#order-comment {
    min-height: 76px;
}

.btn-content .btns-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-content .btns-right button[type="submit"] {
    background-color: #00B39E;
    color: #FFFFFF;
    box-shadow: 0px 4px 12px 0px #00000029;
    font-family: Gilroy;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 16px 40px;
    border: none;
    box-sizing: border-box;
}

.custom-checkbox-label.custom-checkbox-label-order {
    display: flex;
    align-items: center;
    max-width: 364px;
    gap: 6px;
}

span.custom-checkbox-text-label {
    font-family: sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #939393;
    max-width: calc(100% - 30px);
}

span.custom-checkbox-text-label a {
    font-family: Gilroy;
    font-weight: 600;
    font-size: 13px;
    text-decoration: underline;
    text-decoration-style: solid;
    color: #00B39E;
}

.custom-checkbox-label.custom-checkbox-label-order input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #00B39E;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.custom-checkbox-label.custom-checkbox-label-order input[type="checkbox"]:checked {
    background-color: #00B39E;
    border-color: #00B39E;
}

.custom-checkbox-label.custom-checkbox-label-order input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.doctor-data-right {
    width: 80%;
    box-sizing: border-box;
}
.mp-reviews-more-btn.light-blue-btn, .mp-top-slide-action__btn.green-sh-btn {
    color: #fff;
}
.order-content a {
    color: #00B39E;
}

.save-data-message {
    display: none;
    margin-top: 24px;
    padding: 0px 64px;
}

.save-data-message div {
    background: #00b39e;
    padding: 15px;
    border-radius: 15px;
    width: 100%;
    font-size: 14px;
    color: #fff;
    box-sizing: border-box;
}

@media (max-width: 1024px){
    .clinic-title { 
        font-size: 13px;
    }
    a.left-header-help {
        display: none !important;
    }

    .save-data-message {
        display: none !important;
    }

    #loader_button {
        width: 100%;
        height: auto;
    }
    .save-data-message {
        padding: 0;
    }

    .order-tabs {
        display: none;
    }

    .order-content {
        padding: 20px;
    }

    .clinic-list, .services-list, .doctors-list {
        padding: 0px;
    }

    .clinic-item {
        margin-bottom: 11px;
    }

    .btn-content {
        padding: 24px 0px;
    }

    .btn-content .btn-left a {
        padding: 20px 18px;
    }

    .widget-title {
        padding: 24px 12px;
    }
    
    .widget-title img {
        width: 123px;
        height: auto;
    }

    .widget-title .left-header-help {
        font-size: 10px;
        text-wrap: wrap;
    }

    .widget-title .tel .left-header-tel {
        font-size: 12px;
    }

    .widget-title .tel span {
        font-size: 10px;
        text-wrap: wrap;
    }

    .field-block.order-search input {
        width: 100%;
        box-sizing: border-box;
    }

    .services-item .services-info .next-order, .doctors-item .doctors-info .next-order, .doctor-data-order {
        font-size: 11px;
    }

    .services-item .services-info .services-title, .doctors-item .doctors-info .doctors-title {
        font-size: 14px;
    }

    .doctors-item .doctor-img {
        width: 60px;
        height: 60px;
    }

    .dates-select {
        flex-direction: column;
    }

    #js-calendarD {
        width: 100%;
    }

    .select-time-right {
        width: 100%;
        margin-top: 20px;
    }

    .ui-datepicker td {
        padding: 0px !important;
    }

    .padingX64 {
        padding: 0;
    }

    .doctor-data-img img, .doctor-data-img {
        width: 60px;
        height: 60px;
    }

    .doctor-data {
        gap: 10px;
    }

    .doctor-data-name {
        font-size: 14px;
    }

    .doctor-data-spec {
        font-size: 11px;
    }

    .doctor-data-address {
        font-size: 11px;
    }

    .doctor-data-order, .doctor-data-address {
        width: unset;
    }

    .btn-content.form-mobile {
        flex-direction: column-reverse;
    }

    .btn-content.form-mobile .btns-right {
        align-items: unset;
        flex-direction: column;
        margin-bottom: 10px;
    }
}

.time-item {
    border: 1px solid;
}

#map-orderD {
    height: 400px;
    width: 100%;
}

.balloon-order-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.balloon-order-img img {    
    min-height: 100%;
    width: 100%;
}

.balloon-order-title {
    font-size: 14px;
    font-weight: 600;
    color: #00B39E;
    width: 100%;
}

.balloon-order-coords {
    font-size: 12px;
    font-weight: 100;
    color: #0000007d;
    padding: 5px 0;
}

.balloon-order-map a {
    margin-top: 6px;
}

.baloon-item-picture-w-name {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.baloon-item-picture-w-name .balloon-order-img {
    width: 80px;
    flex-shrink: 0;
}

.balloon-order-map {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.balloon-order-item {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.balloon-order-map .btn_order_clinic {
    margin-top: auto;
}


.btn_order_clinic {
    padding: 10px;
    background: linear-gradient(45deg, #00a792 0%, #00b6a1 100%);
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.btn_order_clinic:hover {
    background: linear-gradient(45deg, #00b6a1 0%, #00a792 100%);
}










.clinic-item.error,
.services-item.error,
.time-item.error,
.custom-checkbox-label-order.error input,
.input-order.error input,
.input-order.error textarea {
    border-color: red !important;
}
.error-text {
    color: red;
    font-family: Gilroy;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 14px;
}
