.epa-locked-overlay {
	display: flex;
	justify-content: center;
	padding: 40px 20px;
	font-family: var(--epa-font-family);
}

.epa-locked-page {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50vh;
	box-sizing: border-box;
}

.epa-modal {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--epa-modal-width);
	padding: var(--epa-modal-padding);
	background: var(--epa-modal-background);
	border-radius: var(--epa-modal-radius);
	box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16);
	color: var(--epa-text-color);
	text-align: center;
}

.epa-modal .epa-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	background-image: none;
	box-shadow: none;
	outline: none;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.2s ease;
}

.epa-modal .epa-modal-close::before,
.epa-modal .epa-modal-close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2px;
	background: #4b5563;
	border-radius: 2px;
}

.epa-modal .epa-modal-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.epa-modal .epa-modal-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.epa-modal .epa-modal-close:hover,
.epa-modal .epa-modal-close:focus {
	background: rgba(0, 0, 0, 0.08);
}

.epa-modal-image {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 100px;
	margin: 0 auto 20px;
	object-fit: contain;
}

.epa-modal-icon {
	display: block;
	width: auto;
	height: auto;
	margin: 0 auto 16px;
	color: var(--epa-heading-color);
	font-size: 46px;
}

.epa-modal h1 {
	margin: 0 0 12px;
	color: var(--epa-heading-color);
	font-size: var(--epa-heading-size);
	line-height: 1.2;
}

.epa-modal-intro,
.epa-modal-content {
	margin: 0 0 20px;
	color: var(--epa-text-color);
	font-size: var(--epa-text-size);
	line-height: 1.6;
}

.epa-modal-content h1,
.epa-modal-content h2,
.epa-modal-content h3,
.epa-modal-content h4 {
	color: var(--epa-heading-color);
}

.epa-modal-content img {
	max-width: 100%;
	height: auto;
}

.epa-modal form {
	margin-top: 20px;
}

.epa-modal label {
	display: block;
	margin-bottom: 8px;
	color: var(--epa-text-color);
	font-size: var(--epa-text-size);
	font-weight: 700;
	text-align: left;
}

.epa-modal input {
	box-sizing: border-box;
	width: 100%;
	padding: var(--epa-input-padding-y, 13px) var(--epa-input-padding-x, 14px);
	border: 1px solid #9ca3af;
	border-radius: var(--epa-input-radius, 6px);
	background: #ffffff;
	color: #111827;
	font-family: inherit;
	font-size: var(--epa-text-size);
}

.epa-modal button {
	width: 100%;
	margin-top: 16px;
	padding: var(--epa-button-padding-y) var(--epa-button-padding-x);
	border: 0;
	border-radius: var(--epa-button-radius);
	background: var(--epa-button-background);
	color: var(--epa-button-text-color);
	cursor: pointer;
	font-family: inherit;
	font-size: var(--epa-button-size);
	font-weight: 700;
	line-height: 1.3;
	transition: opacity 0.2s ease;
}

.epa-modal button:hover,
.epa-modal button:focus {
	background: var(--epa-button-hover-background, #1d4ed8);
}

.epa-modal button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.epa-access-message {
	min-height: 24px;
	margin: 14px 0 0 !important;
	font-size: 14px !important;
}

.epa-access-message.is-error {
	color: var(--epa-error-color, #b42318);
}

.epa-access-message.is-success {
	color: var(--epa-success-color, #067647);
}

@media (max-width: 767px) {
	.epa-locked-page {
		min-height: 55vh;
		padding: 24px 16px;
	}

	.epa-modal h1 {
		font-size: var(--epa-heading-size-mobile);
	}

	.epa-modal-intro,
	.epa-modal-content,
	.epa-modal label {
		font-size: var(--epa-text-size-mobile);
	}

	.epa-modal button {
		font-size: var(--epa-button-size-mobile);
	}
}