/* Two-Factor & Passkeys for WooCommerce */

.rolt2fa-manage [hidden],
.rolt2fa-passwordless[hidden],
.rolt2fa-passkey-error[hidden],
.rolt2fa-pk-unsupported[hidden],
.rolt2fa-msg[hidden],
.rolt2fa-backup-reveal[hidden] {
	display: none !important;
}

.rolt2fa-profile-wrap {
	margin: 24px 0;
}

.rolt2fa-manage {
	max-width: 780px;
}

.rolt2fa-woo-title {
	margin-top: 0;
}

/* Status banner */
.rolt2fa-status {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 12px 16px;
	margin: 14px 0 18px;
	background: #f8f9fa;
	border: 1px solid #dcdcdc;
	border-radius: 8px;
}

.rolt2fa-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.rolt2fa-status--active .rolt2fa-badge {
	background: #d1fae5;
	color: #065f46;
}

.rolt2fa-status--inactive .rolt2fa-badge {
	background: #e5e7eb;
	color: #374151;
}

.rolt2fa-status--grace .rolt2fa-badge {
	background: #fef3c7;
	color: #92400e;
}

.rolt2fa-status--locked .rolt2fa-badge {
	background: #fee2e2;
	color: #991b1b;
}

.rolt2fa-status__detail {
	color: #4b5563;
	font-size: 14px;
}

/* Alerts & AJAX messages */
.rolt2fa-alert,
.rolt2fa-msg {
	padding: 12px 16px;
	margin: 0 0 16px;
	border-radius: 6px;
	border-left: 4px solid #6b7280;
	background: #f3f4f6;
	font-size: 14px;
	line-height: 1.5;
}

.rolt2fa-alert--warn {
	border-left-color: #d97706;
	background: #fffbeb;
	color: #78350f;
}

.rolt2fa-msg--ok {
	border-left-color: #059669;
	background: #ecfdf5;
	color: #065f46;
}

.rolt2fa-msg--err,
.rolt2fa-passkey-error {
	border-left: 4px solid #dc2626;
	background: #fef2f2;
	color: #991b1b;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	margin: 10px 0;
}

/* Cards */
.rolt2fa-card {
	background: #ffffff;
	border: 1px solid #dcdcdc;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rolt2fa-card h3 {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: 17px;
	line-height: 1.3;
}

.rolt2fa-ok {
	color: #065f46;
	font-weight: 600;
}

/* Setup steps & QR code */
.rolt2fa-steps {
	margin: 0 0 0 20px;
	padding: 0;
}

.rolt2fa-steps > li {
	margin-bottom: 16px;
	line-height: 1.5;
}

.rolt2fa-steps > li:last-child {
	margin-bottom: 0;
}

.rolt2fa-qr {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 196px;
	min-height: 196px;
	margin: 12px 0;
	padding: 8px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-sizing: border-box;
}

.rolt2fa-qr svg {
	display: block;
	width: 180px;
	max-width: 100%;
	height: auto;
}

.rolt2fa-manual {
	margin-top: 8px;
	font-size: 13px;
}

.rolt2fa-manual summary {
	cursor: pointer;
	color: #2271b1;
	font-weight: 500;
	margin-bottom: 8px;
}

.rolt2fa-secret {
	display: inline-block;
	padding: 6px 10px;
	margin: 4px 8px 4px 0;
	background: #f3f4f6;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 13px;
	letter-spacing: 0.06em;
	word-break: break-all;
}

/* Inputs & action rows */
.rolt2fa-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}

.rolt2fa-code-input {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.2em;
	padding: 8px 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #ffffff;
	color: #111827;
	box-sizing: border-box;
}

.rolt2fa-manage .rolt2fa-code-input {
	width: 180px;
	max-width: 100%;
}

.rolt2fa-confirm label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.rolt2fa-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 14px 0 0;
}

.rolt2fa-btn-danger {
	color: #b32d2e !important;
	border-color: #b32d2e !important;
	background: #ffffff !important;
}

.rolt2fa-btn-danger:hover {
	background: #fef2f2 !important;
	color: #991b1b !important;
}

/* Passkeys table inside WooCommerce or Admin */
.rolt2fa-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
	font-size: 14px;
}

.rolt2fa-table th,
.rolt2fa-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

/* Backup codes reveal card */
.rolt2fa-backup-reveal {
	border-color: #93c5fd;
	background: #f8fbff;
}

ol.rolt2fa-codes {
	display: grid;
	grid-template-columns: repeat(2, minmax(140px, 1fr));
	gap: 8px 20px;
	margin: 16px 0;
	padding-left: 24px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

ol.rolt2fa-codes li {
	padding: 6px 10px;
	background: #ffffff;
	border: 1px solid #dbeafe;
	border-radius: 4px;
}

@media (max-width: 520px) {
	ol.rolt2fa-codes {
		grid-template-columns: 1fr;
	}
}

/* Admin editing another user */
.rolt2fa-admin-facts {
	margin: 0 0 12px 18px;
	list-style: disc;
}

.rolt2fa-admin-facts li {
	margin-bottom: 4px;
}

/* Login challenge & passwordless button */
.custom-my-account-page,
.custom-my-account-wrap,
.custom-my-account-page .myaccount-login,
.custom-my-account-wrap .myaccount-login {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	overflow: visible !important;
	box-sizing: border-box;
}

.custom-my-account-page {
	padding-bottom: 48px;
}

.rolt2fa-custom-login-box {
	max-width: 480px;
	width: 100%;
	margin: 32px auto 48px;
}

.rolt2fa-woo-login {
	max-width: 440px;
	margin: 24px auto;
	padding: 28px 24px;
	background: #ffffff;
	border: 1px solid #dcdcdc;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.myaccount-login .rolt2fa-woo-login {
	border: 0;
	box-shadow: none;
	padding: 8px 4px;
	margin: 0;
	max-width: 100%;
	background: transparent;
}

.rolt2fa-woo-login h2 {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 16px;
	color: #111827;
	text-align: center;
}

.rolt2fa-challenge__icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #eef2ff;
	color: #1f1b68;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rolt2fa-challenge__intro {
	text-align: center;
	color: #4b5563;
	font-size: 14.5px;
	line-height: 1.5;
	margin: 0 0 20px;
}

.rolt2fa-challenge label[for="rolt2fa_code"] {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	text-align: left;
}

.rolt2fa-challenge .rolt2fa-code-input {
	width: 100%;
	height: 52px !important;
	font-size: 22px !important;
	letter-spacing: 0.25em;
	text-align: center;
	border: 1.5px solid #d1d5db !important;
	border-radius: 8px !important;
	background: #f9fafb !important;
	transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.rolt2fa-challenge .rolt2fa-code-input:focus {
	border-color: #1f1b68 !important;
	background: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(31, 27, 104, 0.12) !important;
	outline: none;
}

.rolt2fa-hint {
	font-size: 12.5px;
	line-height: 1.45;
	color: #6b7280;
	margin: 6px 0 16px;
	text-align: left;
}

.rolt2fa-remember {
	margin: 14px 0 18px !important;
	text-align: left;
}

.rolt2fa-remember label {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	cursor: pointer;
	margin: 0 !important;
}

.rolt2fa-remember input[type="checkbox"] {
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	margin: 0 !important;
	padding: 0 !important;
	display: inline-block !important;
	flex: 0 0 16px !important;
	accent-color: #1f1b68;
}

.rolt2fa-btn {
	width: 100%;
	justify-content: center;
	text-align: center;
	box-sizing: border-box;
}

.rolt2fa-challenge .submit {
	margin: 0 0 4px;
}

.rolt2fa-challenge .submit button.rolt2fa-btn {
	min-height: 48px;
	border-radius: 8px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
}

.rolt2fa-btn--passkey {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100%;
	min-height: 46px;
	padding: 11px 16px !important;
	background: #ffffff !important;
	color: #1f1b68 !important;
	border: 1.5px solid #1f1b68 !important;
	border-radius: 8px !important;
	font-size: 14.5px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.rolt2fa-btn--passkey:hover,
.rolt2fa-btn--passkey:focus-visible {
	background: #f5f6ff !important;
	color: #1f1b68 !important;
	border-color: #15124a !important;
}

.rolt2fa-btn__icon {
	flex-shrink: 0;
}

.rolt2fa-or {
	position: relative;
	text-align: center;
	margin: 18px 0;
	color: #6b7280;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.rolt2fa-or::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	border-top: 1px solid #e5e7eb;
}

.rolt2fa-or span {
	position: relative;
	padding: 0 12px;
	background: #ffffff;
}

.rolt2fa-passwordless {
	clear: both;
	margin-top: 16px;
}

.rolt2fa-back {
	margin-top: 18px;
	margin-bottom: 0;
	text-align: center;
	font-size: 13.5px;
}

/* Admin Users list columns */
.rolt2fa-col {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.rolt2fa-col--active {
	background: #d1fae5;
	color: #065f46;
}

.rolt2fa-col--inactive {
	background: #f3f4f6;
	color: #4b5563;
}

.rolt2fa-col--grace {
	background: #fef3c7;
	color: #92400e;
}

.rolt2fa-col--locked {
	background: #fee2e2;
	color: #991b1b;
}

.rolt2fa-col--na {
	color: #6b7280;
	font-weight: 400;
	padding: 0;
}
