/* Spam Email Protector — frontend */

.sep-modal .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* No visual overrides — only mark protected emails as clickable */
[data-sep-token] {
	cursor: pointer;
}

[data-sep-token][data-sep-revealed],
[data-sep-revealed] {
	cursor: inherit;
}

/* Overlay */
.sep-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sep-overlay.sep-open {
	opacity: 1;
	visibility: visible;
}

.sep-modal {
	width: 100%;
	max-width: 400px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	padding: 24px;
	transform: translateY(12px) scale(0.98);
	transition: transform 0.2s ease;
}

.sep-overlay.sep-open .sep-modal {
	transform: translateY(0) scale(1);
}

.sep-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.sep-modal__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.3;
	color: #0f172a;
}

.sep-modal__close {
	appearance: none;
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
	padding: 0 4px;
}

.sep-modal__close:hover {
	color: #0f172a;
}

.sep-modal__subtitle {
	margin: 0 0 20px;
	color: #64748b;
	font-size: 0.95rem;
}

.sep-modal__question {
	margin: 0 0 10px;
	font-weight: 600;
	color: #0f172a;
}

.sep-modal__input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 1rem;
	margin-bottom: 12px;
}

.sep-modal__input:focus {
	outline: 2px solid #0b5fff;
	outline-offset: 1px;
	border-color: #0b5fff;
}

.sep-modal__error {
	display: none;
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fef2f2;
	color: #b91c1c;
	font-size: 0.9rem;
}

.sep-modal__error.sep-show {
	display: block;
}

.sep-modal__actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 8px;
}

.sep-btn {
	appearance: none;
	border: 0;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
}

.sep-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.sep-btn--primary {
	background: #0b5fff;
	color: #fff;
}

.sep-btn--primary:hover:not(:disabled) {
	background: #0842b3;
}

.sep-btn--ghost {
	background: #f1f5f9;
	color: #334155;
}

.sep-btn--ghost:hover:not(:disabled) {
	background: #e2e8f0;
}

.sep-recaptcha-wrap {
	margin-bottom: 12px;
	display: flex;
	justify-content: center;
}

.sep-loading {
	text-align: center;
	color: #64748b;
	padding: 20px 0;
}

@media (max-width: 480px) {
	.sep-modal {
		padding: 20px 16px;
	}

	.sep-modal__actions {
		flex-direction: column-reverse;
	}

	.sep-btn {
		width: 100%;
	}
}
