.ews-ocs-guard-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 24px;
	background: rgba(17, 24, 39, 0.72);
}

.ews-ocs-guard-dialog {
	width: min(100%, 620px);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	box-sizing: border-box;
	padding: clamp(24px, 5vw, 42px);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
	color: #172033;
}

.ews-ocs-guard-dialog h2 {
	margin: 0 0 16px;
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	line-height: 1.2;
}

.ews-ocs-guard-dialog h2:focus {
	outline: 3px solid #6f2c91;
	outline-offset: 4px;
}

.ews-ocs-guard-dialog p {
	margin: 0 0 16px;
	font-size: 1rem;
	line-height: 1.6;
}

.ews-ocs-guard-kicker {
	color: #5b267f;
	font-size: 0.82rem !important;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ews-ocs-guard-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 28px;
}

.ews-ocs-guard-actions form {
	margin: 0;
}

.ews-ocs-guard-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	box-sizing: border-box;
	padding: 11px 18px;
	border: 2px solid #6f2c91;
	border-radius: 4px;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
}

.ews-ocs-guard-button--primary {
	background: #6f2c91;
	color: #fff;
}

.ews-ocs-guard-button--secondary {
	background: #fff;
	color: #6f2c91;
}

.ews-ocs-guard-button:hover,
.ews-ocs-guard-button:focus-visible {
	outline: 3px solid #f0b429;
	outline-offset: 2px;
	text-decoration: none;
}

.ews-ocs-guard-button:disabled {
	cursor: wait;
	opacity: 0.7;
}

.ews-ocs-guard-success {
	margin: 0 0 18px;
	padding: 16px 18px;
	border-left: 5px solid #18794e;
	background: #eefaf4;
	color: #123c2c;
	line-height: 1.5;
}

@media (max-width: 600px) {
	.ews-ocs-guard-overlay {
		align-items: flex-end;
		padding: 12px;
	}

	.ews-ocs-guard-dialog {
		max-height: calc(100vh - 24px);
		padding: 24px 20px;
	}

	.ews-ocs-guard-actions,
	.ews-ocs-guard-actions form,
	.ews-ocs-guard-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ews-ocs-guard-button {
		scroll-behavior: auto;
	}
}
