/* Sympl OTP Registration — styles (RTL-first, theme-friendly) */

.sympl-otp-wrap {
	max-width: 560px;
	margin-inline: auto;
	padding: 24px;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	background: #fff;
	font-size: 15px;
	line-height: 1.6;
}

.sympl-otp-title {
	margin: 0 0 14px;
	font-size: 1.3em;
}

.sympl-otp-note {
	color: #555;
	margin: 0 0 14px;
}

.sympl-otp-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 14px;
	margin-bottom: 14px;
}

.sympl-otp-grid label,
.sympl-otp-code-label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 600;
}

/* Keep the caption text and its required asterisk on one line. */
.sympl-otp-cap {
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
}

.sympl-otp-full { grid-column: 1 / -1; }

.sympl-otp-grid input,
.sympl-otp-code-label input {
	padding: 9px 12px;
	border: 1px solid #c9c9c9;
	border-radius: 8px;
	font: inherit;
	font-weight: 400;
	width: 100%;
	box-sizing: border-box;
}

.sympl-otp-grid input:focus,
.sympl-otp-code-label input:focus {
	outline: 2px solid #2e5496;
	outline-offset: 1px;
	border-color: #2e5496;
}

.sympl-otp-grid small {
	font-weight: 400;
	color: #777;
}

.sympl-otp-hint {
	color: #888;
	font-size: 0.85em;
}

.sympl-otp-grid small.sympl-otp-field-error,
.sympl-otp-field-error {
	color: #c0392b;
	font-size: 0.85em;
	font-weight: 500;
}

.sympl-otp-wrap input.sympl-otp-invalid {
	border-color: #c0392b;
}
.sympl-otp-wrap input.sympl-otp-invalid:focus {
	outline-color: #c0392b;
}

.req { color: #c0392b; margin-inline-start: 2px; }

.sympl-otp-passwrap {
	position: relative;
	display: block;
}

.sympl-otp-wrap .sympl-otp-toggle {
	position: absolute;
	inset-inline-end: 8px;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	border: 0;
	background: none;
	background-color: transparent;
	background-image: none;
	box-shadow: none;
	text-shadow: none;
	min-width: 0;
	min-height: 0;
	width: auto;
	height: auto;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 2px;
	color: #888;
	opacity: 0.75;
	transition: opacity 0.15s;
	-webkit-appearance: none;
	appearance: none;
}

.sympl-otp-wrap .sympl-otp-toggle:hover {
	opacity: 1;
	background: none;
	background-color: transparent;
	box-shadow: none;
}
.sympl-otp-wrap .sympl-otp-toggle.is-on { opacity: 1; color: #2e5496; }
.sympl-otp-wrap .sympl-otp-toggle:focus { outline: none; box-shadow: none; }
.sympl-otp-wrap .sympl-otp-toggle:focus-visible { outline: 2px solid #2e5496; outline-offset: 2px; border-radius: 4px; }

/* SVG eye icons: stroke only, never filled by the theme. */
.sympl-otp-wrap .sympl-otp-toggle .sympl-eye {
	display: block;
	fill: none;
	stroke: currentColor;
	pointer-events: none;
}
/* Default (password hidden) = eye-off (slashed). When .is-on, show plain eye. */
.sympl-otp-wrap .sympl-otp-toggle .sympl-eye-on { display: none; }
.sympl-otp-wrap .sympl-otp-toggle.is-on .sympl-eye-off { display: none; }
.sympl-otp-wrap .sympl-otp-toggle.is-on .sympl-eye-on { display: block; }

.sympl-otp-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 10px 0;
	font-weight: 400;
}

.sympl-otp-check input { margin-top: 4px; }

.sympl-otp-hp {
	position: absolute !important;
	inset-inline-start: -9999px !important;
	opacity: 0;
	height: 0;
	width: 0;
}

.sympl-otp-btn {
	display: block;
	width: 100%;
	padding: 12px 16px;
	margin-top: 8px;
	border: 0;
	border-radius: 8px;
	background: #2e5496;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s;
}

.sympl-otp-btn:hover:not(:disabled) { background: #1f3864; }
.sympl-otp-btn:disabled { opacity: 0.6; cursor: default; }

.sympl-otp-error {
	background: #fdecea;
	color: #8a1f14;
	border: 1px solid #f5c6c0;
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 12px;
}

.sympl-otp-code-label input {
	letter-spacing: 6px;
	text-align: center;
	font-size: 1.4em;
	max-width: 220px;
}

.sympl-otp-links {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.sympl-otp-wrap .sympl-otp-link {
	margin: 0;
	padding: 4px 2px;
	border: 0;
	background: none;
	background-color: transparent;
	background-image: none;
	box-shadow: none;
	text-shadow: none;
	min-width: 0;
	min-height: 0;
	width: auto;
	height: auto;
	color: #2e5496;
	font: inherit;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	line-height: 1.4;
	transition: color 0.15s;
	-webkit-appearance: none;
	appearance: none;
}

.sympl-otp-wrap .sympl-otp-link:hover {
	color: #1f3864;
	background: none;
	background-color: transparent;
	box-shadow: none;
}

.sympl-otp-wrap .sympl-otp-link:focus { outline: none; box-shadow: none; }
.sympl-otp-wrap .sympl-otp-link:focus-visible {
	outline: 2px solid #2e5496;
	outline-offset: 2px;
	border-radius: 3px;
}

.sympl-otp-wrap .sympl-otp-link:disabled {
	color: #9aa0a6;
	cursor: default;
	text-decoration: none;
	background: none;
	background-color: transparent;
	box-shadow: none;
	opacity: 1;
}

@media (max-width: 560px) {
	.sympl-otp-grid { grid-template-columns: 1fr; }
	.sympl-otp-wrap { padding: 16px; }
}
