@charset "utf-8";
/* Appointment modal (scoped).
   IMPORTANT: element must be: <div id="appointment-modal" class="modal-container">...</div>
*/

html.fixed, body.fixed { overflow: hidden; }

#appointment-modal, #appointment-modal * { box-sizing: border-box; }
#ext_summary_wrap {
	width: 100%;
}

/* Overlay container */
#appointment-modal.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

/* CSS Document */
#appointment-modal #modal {
    position: relative;
    display: flex;
    flex: 0 0 50%;
    flex-flow: column nowrap;
	justify-content: flex-start;
    align-items: center;
    min-width: 450px;
    overflow: hidden;
    padding: 20px 20px 40px 20px;
    border-radius: 6px;
    text-transform: none;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0, 0, 0.2, 1);
    background: linear-gradient(0deg, #365382, #508EF4 40%, #3972D1);
    font-family: Ubuntu, sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #FFFFFF;
}

#appointment-modal #modal a {
	color: #fff;
	text-decoration: none;
}

#appointment-modal #modal_logo {
	display: flex;
	order: 1;
	width: 150px;
	height: 24px;
	margin: 0;
	padding: 0;
	background-image: url(../images/icons/logo_scroll.svg);
	background-repeat: no-repeat;
}

#appointment-modal #modal_content {
	display: flex;
	order: 2;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 50%;
	margin: auto
}

#appointment-modal #modal_name {
	display: flex;
	order: 0;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	margin: 20px auto;
}

#appointment-modal #modal_icon_back {
	display: flex;
	background-image: url(../images/icons/arrow_left_wh.svg);
	background-size: 18px 18px;
	background-repeat: no-repeat;
	width: 18px;
	height: 18px;
	margin-right: 10px;
}

#appointment-modal #modal_search {
	display: flex;
	width: 90%;
	margin-bottom: 30px;
}

#appointment-search-form {
	order: 4;
	align-self: center;
	display: flex;
	flex-flow: column;
	align-items: flex-end;
	justify-content: center;
	width: 90%;
	margin: 0 auto 0 auto;
	font-family: 'Ubuntu', sans-serif;
	font-size: 18px;
	text-transform: none;
	font-weight: 300;
}

#appointment-search-form .search_input_wrapper {
	order: 1;
	align-self: center;
	display: flex;
	flex-flow: row;
	flex-wrap: nowrap;
	align-items: flex-end;
	width: 100%;
}

#appointment-modal #appointment-search-form .search_input input[type=text] {
	border: none;
	border-radius: 6px;
	margin-bottom: 0;
	height: 40px;
	border-bottom-color: #C0CADB;
	text-align: left;
	width: 100%;
	transition: ease-in-out 0.2s;
	padding: 0 0 0 10px;
}

#appointment-modal ::placeholder {
	color: #73a9ff;
}

#appointment-modal input {
	font: 24px 'Rubik', sans-serif;
	color: #365282;
}

#appointment-modal .modal_header {
	display: flex;
	text-align: center;
	margin: 0 auto;
	padding: 0 6px;
	color: white;
	font-size: 22.4px;
	font-weight: normal;
}

#appointment-modal .modal_header_emph {
	background-color: #293E61;
	padding: 6px 8px;
	border-radius: 6px
}

#appointment-modal #modal_shedule_spec {
	display: flex;
	order: 1;
	width: 94%;
}

#appointment-modal #modal_shedule {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 4px;
	margin: 0 auto;
	color: #fff;
	width: 98%;
}

#appointment-modal #modal_shedule_month {
	display: flex; 
	align-items: flex-start;
	justify-content: flex-start;
	margin: 10px 20px;
	font-size: 22.4px;
	font-weight: 400;
}

#appointment-modal #modal_shedule_table {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
}

#appointment-modal #modal_shedule_table_arrow_left {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	width: 18px;
	min-height: 18px;
	margin: 10px 0px;
	background-image: url(../images/icons/arrow_left_wh.svg);
	background-size: 18px 18px;
	background-repeat: no-repeat;
}

#appointment-modal #modal_shedule_table_arrow_right {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	width: 18px;
	min-height: 18px;
	margin: 10px 0px;
	background-image: url(../images/icons/arrow_right_wh.svg);
	background-size: 18px 18px;
	background-repeat: no-repeat;
}

#appointment-modal .modal_shedule_table_day {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	margin: 0 2px;
}

#appointment-modal .modal_shedule_day_name {
	font-size: 12.8px;
	font-weight: normal;
}

#appointment-modal .modal_shedule_day_number {
	font-size: 19.2px;
	font-weight: 600;
	margin-bottom: 10px;
}

#appointment-modal .modal_shedule_time_available {
	padding: 8px;
	background: #365382;
	border-radius: 10px;
	margin: 2px 0;
	font-size: 19.2px;
	font-weight: 400;
}
#appointment-modal .modal_shedule_time_available:hover {
	background: #f00;
	color: #fff;
}

#appointment-modal #modal_items_wrapper {
	display: flex;
	order: 2;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
	width: 90%;
	height: 500px;
	margin: auto;
	border: 1px solid #659FFD;
	overflow-y: scroll;
}

#appointment-modal #modal_items {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: flex-start;
	width: 100%;
	padding: 0;
}

#appointment-modal .modal_items_link, #appointment-modal a .modal_items_link:active, #appointment-modal a .modal_items_link:hover, #appointment-modal a .modal_items_link:visited {
	display: contents;
	text-align: center;
}

#appointment-modal .modal_item_avatar_name, #appointment-modal .modal_item_dir_avatar_name {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: flex-start;
	order: 0;
	min-height: 60px;
	margin-right: auto;
}

#appointment-modal .modal_item_dir_avatar_name {
	align-items: center;
	min-width: 200px;
}

#appointment-modal .modal_item_avatar {
	background-color: #3972D1;
	background-repeat: no-repeat;
	min-width: 60px; height: 60px;
	border: solid 3px #fff;
	border-radius: 40px;
	margin-right: 20px;
	overflow: hidden;
	background-size: cover;
	order: 0;
	background-position: 50% 0;
}

#appointment-modal .modal_item_avatar_default {
	background-image: url(../images/icons/icon_spec.svg);
	background-color: #3972D1;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	min-width: 60px; height: 60px;
	border: solid 3px #fff;
	border-radius: 40px;
	margin-right: 20px;
	overflow: hidden;
	order: 0;
	background-position: 0px 6px;
}

#appointment-modal .modal_item_avatar_dir {
	background-image: url(../images/icons/icon_menu_directions_wh.svg);
	background-size: 40px 40px;
	background-repeat: no-repeat;
	background-position: center;
	background-color: #3972D1;
	width: 60px;
	height: 60px;
	border: solid 3px #fff;
	border-radius: 40px;
	margin-right: 20px;
	overflow: hidden;
	order: 0;
}

#appointment-modal .modal_item_marg_auto {
	margin: auto;
}

#appointment-modal .modal_item_name {
	display: flex;
	flex: 1;
	order: 1;
	text-align: left;
	color: #fff;
	font-size: 16px;
	line-height: 1;
}

#appointment-modal .modal_item span {
	display: contents;
	font-size: 19px;
	font-weight: 500;
	line-height: normal; 
}

#appointment-modal .modal_item_shedule_icon_date {
	display: flex;
	flex-direction: column;
	align-items: center;
	order: 1;
	margin-left: 6px;
}

#appointment-modal .modal_item_shedule_icon {
	display: flex;
	order: 0;
	background: url(../images/icons/icon_calendar.svg);
	background-repeat: no-repeat;
	background-position: center;
	width: 30px;
	height: 30px;
	background-size: 22px 22px;
}

#appointment-modal .modal_item_shedule_date {
	display: flex;
	order: 1;
	font-size: 10px;
	line-height: 1.3;
	text-align: center;
	text-wrap: nowrap;
	color: #fff;
}

#appointment-modal .modal_item {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
	padding: 8px 30px;
}

#appointment-modal a .modal_item:hover {
	background: #365382;
}

#appointment-modal .modal_data_field {
	height: 32px;
	padding: 0 5px;
	margin: 6px 0;
	border: 0px;
	border-radius: 6px;	
	background-color: #fff;
	font-family: Rubik, sans-serif;
}

#appointment-modal .modal_button {
	background: #2958a5;
    /* box-shadow: 0px 0px 2px 1px #3C4F6E; */
    border-radius: 6px;
    padding: 10px 40px;
    font-family: Rubik, sans-serif;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    width: auto;
    height: auto;
    transition: all ease-in-out 0.2s;
    border: 0;
}
#appointment-modal .modal_button_red {
	background: #f00;
    /* box-shadow: 0px 0px 2px 1px #3C4F6E; */
    border-radius: 6px;
    padding: 4px 20px;
    font-family: Rubik, sans-serif;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    width: auto;
    height: auto;
    transition: all ease-in-out 0.2s;
    border: 0;
	margin: 0 0 20px 0;
}

#appointment-modal .modal_button:hover, #appointment-modal .modal_button_red:hover {
	background-color: #3972D1 !important;
    box-shadow: 0px 0px 3px 1px #fff;
    cursor: pointer;
}

#appointment-modal #modal_agree {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: center;
	width: 80%;
	margin: 5px auto;
	font-size: 12.8px;
}

#appointment-modal .modal_checkbox_input {
	appearance: none;
	position: relative;
	min-width: 24px;
	height: 24px;
	background: #fff;
	border: none;
	border-radius: 6px;
}

#appointment-modal .modal_checkbox_label {
	padding-left: 10px;
}

#appointment-modal .modal_checkbox_input::after {
  	content: "";
  	position: absolute;
  	width: 0px;
  	height: 0px;
  	background-image: url("../images/icons/icon_checked.svg");
  	background-size: 18px 18px;
  	background-position: center;
  	background-repeat: no-repeat;
}

#appointment-modal .modal_checkbox_input:checked::after {
  	width: 24px;
  	height: 24px;
}

#appointment-modal .modal_checkbox_input:disabled {
  	background: #ccc;
  	border-color: #ccc;
}

#appointment-modal .checkbox-input:disabled::after {
  	filter: grayscale(100%);
}

#appointment-modal #modal_appoint_summary {
	justify-content: center;
	width: 100%;
	background: #365382;
	padding: 20px 0;	
	margin: 20px 0;
}

#appointment-modal #modal_agree a {
	text-decoration: underline;
}

#appointment-modal #modal_close_container {
	display: none;
}
#appointment-modal #modal_closemark {
	display: none;
}

@media screen and (max-width:768px){
#appointment-modal #modal {
    flex: 0 0 100%;
	justify-content: flex-start;
	width: 100%;
	height: 100%;
	min-width: 320px;
	padding: 0;
	align-items: normal;
}
#appointment-modal #modal_content {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	width: 100%;
	height: 100%;
	margin: 0;
}

#appointment-modal #modal_search {
	display: none;
}
#appointment-modal .modal_search_input_mobile_wrapper {
    order: 1;
    align-self: center;
    display: flex;
    flex-flow: row;
    flex-wrap: nowrap;
    align-items: flex-end;
}

#appointment-modal #modal_search_modile {
	visibility: visible;
	display: flex;
	width: 90%;
	margin-bottom: 30px;
}
#appointment-modal .modal_search_input {
	height: 40px;
	border: none;
	border-radius: 8px;
	background: #fff no-repeat;
	background-image: url(../images/icons/icon_search_scroll.svg);
	background-size: 24px;
	background-position: 2% 50%;
	padding: 0 0 0 40px;
	margin: 0 auto;
}
	
#appointment-modal ::placeholder {
	font-size: 18px;
}
	
#appointment-modal input {
	font-size: 18px;
}
	
#appointment-modal #modal_items_wrapper {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
	width: 100%;
	height: 100%;
	margin: 0 0 80px 0;
	border: none;
}
#appointment-modal #modal_logo {
	min-height: 24px;
    align-self: center;
	margin-top: -20px;
}
#appointment-modal #modal_close_container {
	visibility: visible;
	display: flex;
	order: 0;
	width: 100%;
	flex-direction: row;
	align-items: flex-end;
	justify-content: flex-end;
}
#appointment-modal #modal_closemark {
	visibility: visible;
	display: flex;
	align-self: flex-end;
	background-color: #FF0000;
	background-repeat: no-repeat;
	width: 30px;
	min-height: 30px;
	border: none;
	border-radius: 40px;
	order: 0;
	background-image: url(../images/icons/close_mark_wh.svg);
	background-size: 60% 60%;
	background-position: 50% 50%;
	margin: 2px;
}
}

@media screen and (max-width:425px) {
#appointment-modal .modal_shedule_time_available {
	font-size: 11.2px;
	border-radius: 4px;
}
	
#appointment-modal .modal_header {
	font-size: 19.2px;
}
}

@media screen and (max-width:375px) {
#appointment-modal .modal_item {
	overflow-wrap:  anywhere;
}
	
#appointment-modal #modal_shedule_month {
	margin: 6px 10px;
	font-size: 17.6px;
}

#appointment-modal .modal_shedule_day_number {
	font-size: 16px;
	font-weight: 500;
}
	
#appointment-modal .modal_shedule_time_available {
	padding: 4px;
	border-radius: 4px;
	font-size: 11.2px;
	font-weight: normal;
}
}

@media screen and (max-width:320px) {

#appointment-modal .modal_shedule_time_available {
	padding: 2px;
    font-size: 9.6px;
}

}

/* ===== Search: icon inside input, no button ===== */

#appointment-modal #appointment-search-form .search_input input[type="text"] {
	/* лупа внутри поля (как в мобильном варианте) */
	background: #fff no-repeat;
	background-image: url(../images/icons/icon_search_scroll.svg);
	background-size: 24px 24px;
	background-position: 12px 50%;

	/* сдвигаем текст вправо, чтобы не наезжал на лупу */
	padding: 0 10px 0 44px;
}

/* если кнопку "Поиск" пока не удалили из шаблона — просто скрываем */
#appointment-modal #appointment-search-form .contact_button,
#appointment-modal #appointment-search-form .contact_form_button {
	display: none !important;
}

/* чтобы инпут был по центру по вертикали */
#appointment-search-form .search_input_wrapper {
	align-items: center;
}

/* ВАЖНО: если у тебя нет #modal_search_modile в шаблоне — на мобилке поиск сейчас скрывается.
   Тогда включи #modal_search обратно. */
@media screen and (max-width: 768px) {
	#appointment-modal #modal_search {
		display: flex;
	}
}
