/* Стили для затемненного фона */
#modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: flex-start; /* Выравнивание по верху */
    justify-content: center;
    z-index: 1000;
    opacity: 1;
}

/* Стили для модального окна */
.modal_win {
    background: #f9f9f9;
    padding: 0px 0px 20px 0px;
    width: 100%;
    max-width: 800px;
    max-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    position: relative;
    top: 0px;
    -webkit-box-shadow: 0px 36px 80px rgba(0, 0, 0, 0.15) !important;
    -moz-box-shadow: 0px 36px 80px rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0px 36px 80px rgba(0, 0, 0, 0.15) !important;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    margin-top: 2vh;
    margin-left: auto;
    margin-right: auto;
}

.modal_win .error {	
    text-align: left;
    background-color: #f8d7da;
    color: #ac1c2a;
    border-radius: 5px;
    margin: 0px 0px;
}

.modal_win .error p {
    display: none;
    font-size: 0.8em;
    margin: 0;
    padding: 7px 10px 7px 10px;
}

.modal_win-header {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr auto;
    grid-template-columns: 1fr auto;
    -ms-grid-rows: auto;
    align-items: center;
    margin-bottom: 10px;	
    background: #fff;
}

.modal_win-header .left h3 {
    text-align: left;
    margin: 0;
    padding-left: 20px;
    font-size: 0.9em;
}

.modal_win-header .right {
    text-align: right; /* Выравнивание содержимого в правом блоке */
}

.modal_win-header .right #close_win:hover {
    cursor: pointer;
	opacity: 0.5;
}

.modal_win-content {
    min-height: 179px;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    height: 80vh;
    padding: 0px 20px 0px 20px;
}

.modal_win-content>div{
    margin: 10px 0;
}
.buttons_win {
    padding: 30px 0px 0px 0px;
    display: flex;
    justify-content: flex-end; /* Выровнять по правому краю */
}

.modal_win-footer {
	margin-top: 20px;
	text-align: right;
	display: flex;
    align-items: center; /* Выравнивание по верху */
    justify-content: flex-end;
	padding: 0px 20px 13% 20px;
}

/* Стили для радиокнопок в виде кнопок */
.radio-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0px;
}

.selected-option,
.radio-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    color: #ec2929;
    padding: 10px 8px;
    font-size: 16px;
    border: 1px solid #ec2929;
    text-align: center;    
    background-color: rgba(255, 255, 255, 1);
    font-weight: 700;
    margin: 0;
    cursor: pointer;
    -webkit-transition: background-color 0.3s, border-color 0.3s;
    -moz-transition: background-color 0.3s, border-color 0.3s;
    transition: background-color 0.3s, border-color 0.3s;
}

.radio-group label {
    display: inline-block;
    width: 50%;
}

.selected-option {
	padding: 10px;
	user-select: none;
	cursor: pointer;
}

.radio-button:hover {
    color: #FFF;
    background-color: #ec2929;
}

.radio-button input {
	display: none;
}

.radio-button.selected {
	background-color: #ec2929;
	color: #fff;
	border-color: #ec2929;
}

/* Кнопка */
button important {
	display: inline-block;
}

.custom-select-container {
    position: relative;
    width: 100%;
    margin: 0px 0;
}

.options-container {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 430px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1;
}

.option {
	padding: 10px;
	cursor: pointer;
	text-align: left;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #555;
	/* Серый цвет для текста невыбранного элемента */
	transition: background-color 0.3s, color 0.3s;
}


.option span {
	font-size: 0.8em;
}

.option:hover {
	background: #e0e0e0;
}

.option.selected {
	background: #d0ffd0;
	/* Светло-зеленый фон для выбранного элемента */
	color: #008000;
	/* Зеленый цвет текста для выбранного элемента */
}

.checkmark {
	display: none;
	color: green;
}

.option.selected .checkmark {
	display: inline;
}

/* Стиль для всплывающего окна */
.my-popup {
    display: none;
    position: fixed;
    background: #0012ff;
    border: 4px solid #0012ff;
    color: #ffffff;
    -webkit-box-shadow: 0px 0px 13px -5px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0px 0px 13px -5px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 13px -5px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    padding: 20px;
    width: 220px;
    border-radius: 5px;
    text-align: center;
}

.my-popup-arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #0012ff;  /* Меняем направление стрелки на верх */
    position: absolute;
    top: -10px;  /* Перемещаем стрелку вверх */
    left: 50%;
    transform: translateX(-50%);
}

.my-popup-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
	line-height: 18px;
	margin-right: 15px;
	text-align: left;
}

.my-close-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: #ffffff;
    position: absolute;
    top: 0px;
    right: 0px;
    cursor: pointer;
}

.my-close-btn:hover {
    color: #000;
}