/* HappyAccess inline login with an emailed code. Fonts and buttons come from the theme. */
.happyaccess-pl {
	margin-block: 1em 0;
}

.happyaccess-pl [hidden] {
	display: none;
}

.happyaccess-pl__panel {
	margin-block-start: 1em;
	padding: 1em;
	border: 1px solid rgba(127, 127, 127, 0.4);
	border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	border-radius: 4px;
}

/* The toggle as a text link: a real button, drawn like a link. */
.happyaccess-pl .happyaccess-pl__toggle--link {
	display: inline;
	inline-size: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-transform: none;
	cursor: pointer;
}

.happyaccess-pl .happyaccess-pl__toggle--link:hover {
	background: none;
	color: inherit;
	text-decoration: none;
}

.happyaccess-pl .happyaccess-pl__toggle--link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.happyaccess-pl__field label {
	display: block;
	margin-block-end: 0.25em;
}

.happyaccess-pl__field input {
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: 100%;
}

.happyaccess-pl__panel p {
	margin-block: 0 1em;
}

.happyaccess-pl__panel p:last-child {
	margin-block-end: 0;
}

.happyaccess-pl__message {
	margin-block-start: 1em;
}

/* The live region stays in the layout so a screen reader sees it before the first message. */
.happyaccess-pl__message:empty {
	margin: 0;
	padding: 0;
}

.happyaccess-pl__message.is-error {
	font-weight: 600;
}

.happyaccess-pl__message:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.happyaccess-pl[aria-busy="true"] button {
	cursor: progress;
}
