/* PAFSO – Passkeys */

.pafso-passkeys-login {
	margin: 0 0 16px;
	clear: both;
}

.pafso-passkeys-login[hidden],
.pafso-passkeys-section [hidden] {
	display: none !important;
}

.pafso-passkeys-or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 4px 0 12px;
	color: #50575e; /* 7.0:1 on white */
	font-size: 13px;
	text-transform: lowercase;
}

.pafso-passkeys-or::before,
.pafso-passkeys-or::after {
	content: "";
	flex: 1;
	border-top: 1px solid #c3c4c7;
}

.pafso-passkeys-button {
	width: 100%;
	justify-content: center;
	text-align: center;
	cursor: pointer;
}

.pafso-passkeys-button:focus-visible,
.pafso-passkeys-add:focus-visible,
.pafso-passkeys-table button:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.pafso-passkeys-button[disabled],
.pafso-passkeys-add[disabled] {
	cursor: progress;
	opacity: 0.75;
}

.pafso-passkeys-status {
	min-height: 1.4em;
	margin: 8px 0 0;
	font-size: 14px;
}

.pafso-passkeys-status:empty {
	min-height: 0;
	margin: 0;
}

.pafso-passkeys-status.is-error {
	color: #b32d2e; /* 5.7:1 on white */
}

/* wp-login: the block sits between the password field and "Remember me". */
.login .pafso-passkeys-login--wp-login {
	margin-top: 4px;
}

/* Elementor login widget: match the form's width. */
.pafso-passkeys-login--elementor {
	margin-top: 16px;
}

.pafso-passkeys-login--elementor .pafso-passkeys-button,
.pafso-passkeys-login--woocommerce .pafso-passkeys-button {
	min-height: 44px;
	padding: 10px 16px;
	border: 2px solid currentColor;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	border-radius: 3px;
}

/* Profile section */
.pafso-passkeys-section {
	margin: 2em 0;
	max-width: 760px;
}

.pafso-passkeys-table {
	margin: 1em 0;
}

.pafso-passkeys-table th[scope="row"] {
	font-weight: 600;
}

.pafso-passkeys-actions {
	white-space: nowrap;
	text-align: right;
}

.pafso-passkeys-actions .button-link {
	min-height: 24px;
	padding: 2px 4px;
}

.pafso-passkeys-section .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.pafso-passkeys-section h2:focus,
.pafso-passkeys-section h3:focus {
	outline: none;
}

@media (max-width: 600px) {
	.pafso-passkeys-table thead {
		display: none;
	}
	.pafso-passkeys-table tr,
	.pafso-passkeys-table th,
	.pafso-passkeys-table td {
		display: block;
		text-align: left;
	}
}

/* Hop page (bare page on the main domain) */
body.pafso-passkeys-hop {
	margin: 0;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f1;
	color: #1d2327;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.pafso-passkeys-hop__box {
	box-sizing: border-box;
	width: 100%;
	max-width: 420px;
	margin: 16px;
	padding: 28px 24px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.pafso-passkeys-hop__site {
	margin: 0 0 4px;
	color: #50575e;
	font-size: 14px;
}

.pafso-passkeys-hop h1 {
	margin: 0 0 12px;
	font-size: 24px;
	line-height: 1.25;
}

.pafso-passkeys-hop .pafso-passkeys-button {
	display: block;
	min-height: 44px;
	padding: 10px 16px;
	border: 0;
	border-radius: 3px;
	background: #2271b1;
	color: #fff;
	font: inherit;
	font-weight: 600;
}

.pafso-passkeys-hop .pafso-passkeys-button:hover {
	background: #135e96;
}

.pafso-passkeys-hop__back a {
	color: #2271b1;
}

/* Offer after signing in */
.pafso-passkeys-offer {
	box-sizing: border-box;
	width: min(92vw, 460px);
	padding: 24px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
	color: #1d2327;
	font-size: 15px;
	line-height: 1.5;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.pafso-passkeys-offer::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.pafso-passkeys-offer h2 {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.3;
	color: #1d2327;
}

.pafso-passkeys-offer p {
	margin: 0 0 12px;
	color: #1d2327;
}

.pafso-passkeys-offer__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 8px;
}

.pafso-passkeys-offer .button,
.pafso-passkeys-offer .button-primary {
	min-height: 40px;
	padding: 6px 16px;
	font-size: 15px;
	cursor: pointer;
}

.pafso-passkeys-offer .button-link {
	padding: 4px 0;
	border: 0;
	background: none;
	color: #2271b1;
	text-decoration: underline;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.pafso-passkeys-offer :focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

/* Front end: the theme doesn't style WordPress admin buttons. */
.pafso-passkeys-offer .button {
	border: 1px solid #2271b1;
	border-radius: 3px;
	background: #fff;
	color: #2271b1;
}

.pafso-passkeys-offer .button-primary {
	background: #2271b1;
	color: #fff;
}

.pafso-passkeys-offer [hidden] {
	display: none !important;
}

/* Profile: the row inside Account Management */
.user-passkeys-wrap .pafso-passkeys-table {
	max-width: 640px;
}
