body.yk-modal-open {
	overflow: hidden;
}

.yk-modal[hidden] {
	display: none !important;
}

.yk-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.72);
	box-sizing: border-box;
}

.yk-modal__dialog {
	position: relative;
	width: min(860px, 100%);
	max-height: 90vh;
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.yk-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 999px;
	background: #f2f2f2;
	color: #333;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.yk-modal__body {
	padding: 28px 24px 16px;
	overflow-y: auto;
	line-height: 1.9;
	font-size: 18px;
	color: #222;
}

.yk-title {
	margin: 0 0 18px;
	padding-right: 44px;
	font-size: 28px;
	line-height: 1.4;
	color: #0f3b63;
}

.yk-step p,
.yk-parents p {
	margin: 0 0 1.1em;
}

.yk-modal__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 16px 24px 24px;
	border-top: 1px solid #e5e5e5;
	background: #fff;
}

.yk-btn {
	appearance: none;
	border: none;
	border-radius: 999px;
	padding: 12px 20px;
	font-size: 16px;
	line-height: 1.4;
	cursor: pointer;
	background: #0f69b4;
	color: #fff;
}

.yk-btn:hover,
.yk-modal__close:hover {
	opacity: 0.9;
}

.yk-btn--sub {
	background: #6b7280;
}

.yk-step[hidden],
.yk-parents[hidden] {
	display: none !important;
}

.yk-modal ruby rt {
	font-size: 0.6em;
}

@media (max-width: 767px) {
	.yk-modal {
		padding: 10px;
	}

	.yk-modal__dialog {
		max-height: 94vh;
		border-radius: 14px;
	}

	.yk-modal__body {
		padding: 22px 16px 12px;
		font-size: 16px;
		line-height: 1.85;
	}

	.yk-title {
		font-size: 22px;
		margin-bottom: 14px;
	}

	.yk-modal__footer {
		padding: 14px 16px 18px;
	}

	.yk-btn {
		width: 100%;
	}
}