/* ==========================================================================
   Singularity WooCommerce Suite – Front-end Styles
   ========================================================================== */

/* ── EIN field ─────────────────────────────────────────────────────────── */
.sws-registration-field {
	margin-top: 20px;
}

.sws-registration-field,
.sws-account-section {
	margin-bottom: 20px;
}

.sws-ein-input {
	letter-spacing: 0.08em;
}

.sws-field-description {
	display: block;
	font-size: 12px;
	color: #767676;
	margin-top: 4px;
}

/* Valid / invalid visual feedback on the EIN input */
.sws-ein-valid {
	border-color: #28a745 !important;
	box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.sws-ein-invalid {
	border-color: #dc3545 !important;
	box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* ── Account EIN section ───────────────────────────────────────────────── */
.sws-account-section {
	max-width: 720px;
	padding: 4px 0 8px;
}

.sws-account-section h2 {
	margin: 0 0 12px;
	font-size: 28px;
	line-height: 1.2;
}

.sws-account-copy {
	margin: 0 0 20px;
	color: #4b5563;
}

.sws-account-form {
	padding: 24px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
}

.sws-account-form .button[disabled],
.sws-account-form input[disabled] {
	opacity: 0.75;
	cursor: not-allowed;
}

.sws-account-meta {
	font-size: 13px;
	color: #555;
	margin: 8px 0 20px;
}

/* ── Reminder banner ───────────────────────────────────────────────────── */
.sws-reminder-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99999;
	background: #d63638;
	color: #fff;
	padding: 10px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	font-size: 14px;
	font-weight: 500;
}

.sws-reminder-banner a {
	color: #fff;
	text-decoration: underline;
	font-weight: 700;
}

/* Shift page content down on desktop so the fixed banner does not overlap */
@media (min-width: 768px) {
	body:has(.sws-reminder-banner) {
		padding-top: 42px;
	}
}

/* ── EIN success dialog ────────────────────────────────────────────────── */
.sws-dialog-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sws-dialog {
	background: #fff;
	border-radius: 8px;
	padding: 32px 40px;
	max-width: 420px;
	width: 90%;
	text-align: center;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
	animation: sws-pop-in 0.2s ease;
}

@keyframes sws-pop-in {
	from { transform: scale(0.85); opacity: 0; }
	to   { transform: scale(1);    opacity: 1; }
}

.sws-dialog-icon {
	font-size: 48px;
	margin-bottom: 12px;
}

.sws-dialog h2 {
	margin: 0 0 8px;
	font-size: 20px;
}

.sws-dialog p {
	margin: 0 0 20px;
	color: #555;
}

.sws-dialog button {
	cursor: pointer;
}

@media (max-width: 640px) {
	.sws-reminder-banner {
		flex-direction: column;
		align-items: flex-start;
		padding: 12px 16px;
	}

	.sws-account-form {
		padding: 20px 16px;
	}
}

/* ── Turnstile widget wrapper ──────────────────────────────────────────── */
.sws-turnstile-wrapper {
	margin: 16px 0 8px;
}
