.moepl-pdf-modal,
.moepl-video-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	background: #0b0e12;
	color: #ffffff;
}

.moepl-pdf-modal.is-open,
.moepl-video-modal.is-open {
	display: block;
}

.moepl-pdf-modal__dialog,
.moepl-video-modal__dialog {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.moepl-pdf-modal__header,
.moepl-video-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	padding: 12px 20px;
	background: #10141a;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	box-sizing: border-box;
}

.moepl-pdf-modal__title,
.moepl-video-modal__title {
	margin: 0;
	padding: 0;
	color: #ffffff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.moepl-pdf-modal__close,
.moepl-video-modal__close {
	appearance: none;
	min-width: 72px;
	padding: 11px 18px;
	border: 0;
	border-radius: 4px;
	background: #0f2ba6;
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.moepl-pdf-modal__close:hover,
.moepl-pdf-modal__close:focus-visible,
.moepl-video-modal__close:hover,
.moepl-video-modal__close:focus-visible {
	background: #173bd4;
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.moepl-pdf-modal__body {
	position: relative;
	flex: 1;
	min-height: 0;
	background: #242424;
	box-sizing: border-box;
	overflow: hidden;
}

.moepl-pdf-modal__pages {
	width: 100%;
	height: 100%;
	padding: 20px;
	box-sizing: border-box;
	overflow: auto;
	overscroll-behavior: contain;
	-webkit-user-select: none;
	user-select: none;
}

.moepl-pdf-modal__page {
	width: min(100%, 1400px);
	margin: 0 auto 18px;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.moepl-pdf-modal__canvas {
	display: block;
	max-width: 100%;
	margin: 0 auto;
	pointer-events: auto;
	-webkit-touch-callout: none;
	-webkit-user-drag: none;
	-webkit-user-select: none;
	user-select: none;
}

.moepl-pdf-modal__status {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	max-width: 560px;
	padding: 16px 20px;
	border-radius: 6px;
	background: rgba(16, 20, 26, 0.94);
	color: #ffffff;
	font-size: 15px;
	text-align: center;
	transform: translate(-50%, -50%);
}

.moepl-pdf-modal__status.is-error {
	background: #8b1e1e;
}

.moepl-video-modal__body {
	display: flex;
	flex: 1;
	min-height: 0;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: #15191e;
	box-sizing: border-box;
}

.moepl-video-modal__stage {
	display: flex;
	width: min(1280px, 100%);
	max-height: 100%;
	aspect-ratio: 16 / 9;
	align-items: center;
	justify-content: center;
	background: #000000;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.moepl-video-modal__player,
.moepl-video-modal__embed {
	display: block;
	width: 100%;
	height: 100%;
	max-height: calc(100vh - 112px);
	border: 0;
	background: #000000;
	object-fit: contain;
}

body.moepl-pdf-modal-open {
	overflow: hidden !important;
}

.moepl-disclaimer-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 28px;
	background: rgba(0, 0, 0, 0.58);
	box-sizing: border-box;
}

.moepl-disclaimer-modal.is-open {
	display: flex;
}

.moepl-disclaimer-modal__dialog {
	display: flex;
	flex-direction: column;
	width: min(1140px, 100%);
	max-height: min(78vh, 760px);
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.moepl-disclaimer-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px 34px 18px;
}

.moepl-disclaimer-modal__title {
	margin: 0;
	color: #20242a;
	font-family: inherit;
	font-size: 24px;
	font-weight: 700;
}

.moepl-disclaimer-modal__x {
	appearance: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: #151515;
	font-size: 34px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.moepl-disclaimer-modal__content {
	flex: 1;
	min-height: 180px;
	padding: 8px 40px 20px;
	color: #30343a;
	font-size: 16px;
	line-height: 1.65;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.moepl-disclaimer-modal__content > :first-child {
	margin-top: 0;
}

.moepl-disclaimer-modal__footer {
	display: flex;
	gap: 12px;
	padding: 18px 38px 34px;
	background: #ffffff;
}

.moepl-disclaimer-modal__decline,
.moepl-disclaimer-modal__accept {
	appearance: none;
	min-width: 138px;
	padding: 14px 22px;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.moepl-disclaimer-modal__decline {
	background: #747c85;
	color: #ffffff;
}

.moepl-disclaimer-modal__accept {
	background: #0f2ba6;
	color: #ffffff;
}

.moepl-disclaimer-modal__decline:hover,
.moepl-disclaimer-modal__decline:focus-visible {
	background: #5e656d;
}

.moepl-disclaimer-modal__accept:hover,
.moepl-disclaimer-modal__accept:focus-visible {
	background: #173bd4;
}

@media (max-width: 767px) {
	.moepl-disclaimer-modal {
		padding: 14px;
	}

	.moepl-disclaimer-modal__dialog {
		max-height: 88vh;
		border-radius: 14px;
	}

	.moepl-disclaimer-modal__header {
		padding: 20px 20px 12px;
	}

	.moepl-disclaimer-modal__title {
		font-size: 20px;
	}

	.moepl-disclaimer-modal__content {
		padding: 6px 20px 16px;
		font-size: 15px;
	}

	.moepl-disclaimer-modal__footer {
		padding: 14px 20px 22px;
		flex-wrap: wrap;
	}

	.moepl-disclaimer-modal__decline,
	.moepl-disclaimer-modal__accept {
		flex: 1;
		min-width: 130px;
	}

	.moepl-pdf-modal__header,
	.moepl-video-modal__header {
		min-height: 58px;
		padding: 10px 12px;
	}

	.moepl-pdf-modal__title,
	.moepl-video-modal__title {
		max-width: calc(100% - 82px);
		font-size: 14px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.moepl-pdf-modal__close,
	.moepl-video-modal__close {
		min-width: 64px;
		padding: 10px 14px;
	}

	.moepl-pdf-modal__body {
		padding: 0;
	}

	.moepl-pdf-modal__pages {
		padding: 8px;
	}

	.moepl-pdf-modal__page {
		margin-bottom: 10px;
	}

	.moepl-video-modal__body {
		padding: 0;
	}
}
