/*
 * Mijn account only (loaded on the account page): the logged-out login card with sign-up and the
 * forgot-password window, the logged-in menu card, dashboard, adoptions, addresses and forms, and
 * Wordfence's passkeys and 2FA panels and pop-ups restyled to match. Tokens and motion curves come
 * from theme.json and sections.css.
 */

/* ---------- Account (Mijn account) ----------
 * Logged out: the login form as one calm card. Logged in: the pages as a list with
 * icons on the left, the page on the right; a greeting, the latest adoption and
 * tiles on the dashboard; orders as rows with a status label; addresses as cards. */
.woocommerce-account .wp-block-post-title,
.woocommerce-account .wp-block-post-content > .woocommerce {
	max-width: var(--wp--style--global--wide-size, 1240px) !important;
}

.woocommerce-account.logged-in .wp-block-post-content > .woocommerce {
	display: grid;
	grid-template-columns: 15rem minmax(0, 1fr);
	gap: var(--wp--preset--spacing--70, 3.38rem);
	align-items: start;
}

.woocommerce-account.logged-in .wp-block-post-content > .woocommerce::before,
.woocommerce-account.logged-in .wp-block-post-content > .woocommerce::after {
	content: none;
}

.woocommerce-account.logged-in .wp-block-post-content > .woocommerce > * {
	grid-column: 1 / -1;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce-account.logged-in .wp-block-post-content > .woocommerce > .bd-account-side {
	grid-column: 1;
}

.woocommerce-account.logged-in .wp-block-post-content > .woocommerce > .woocommerce-MyAccount-content {
	grid-column: 2;
}

/* Navigation */
/* The menu in a card, with the customer on top. */
.bd-account-side {
	position: sticky;
	top: 1.5rem;
	padding: 1.25rem;
	background: var(--wp--preset--color--surface);
}

.bd-account-me {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 1.1rem;
	min-width: 0;
}

.bd-account-me__initial {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.2rem;
	font-weight: 800;
}

.bd-account-me__text {
	display: grid;
	min-width: 0;
	line-height: 1.3;
}

.bd-account-me__text span {
	overflow: hidden;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.woocommerce-MyAccount-navigation {
	margin: 0;
}

.bd-account-side .woocommerce-MyAccount-navigation ul {
	margin: 0;
}

.bd-account-side .woocommerce-MyAccount-navigation li:last-child {
	border-bottom: 0;
}

.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
}

.woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	margin: 0;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	text-decoration: none;
}

.woocommerce-MyAccount-navigation a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.95rem 0.75rem;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.woocommerce-MyAccount-navigation a::before {
	content: "";
	flex: none;
	width: 1.35rem;
	height: 1.35rem;
	background: currentColor;
	-webkit-mask: url("../icons/hart.svg") center / contain no-repeat;
	mask: url("../icons/hart.svg") center / contain no-repeat;
}

/* Icons: set per item (a url() inside a custom property would resolve against the page, not this file). */
.woocommerce-MyAccount-navigation-link--dashboard a::before {
	-webkit-mask-image: url("../icons/huis.svg");
	mask-image: url("../icons/huis.svg");
}

.woocommerce-MyAccount-navigation-link--orders a::before {
	-webkit-mask-image: url("../icons/doos.svg");
	mask-image: url("../icons/doos.svg");
}

.woocommerce-MyAccount-navigation-link--edit-address a::before {
	-webkit-mask-image: url("../icons/pin.svg");
	mask-image: url("../icons/pin.svg");
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
	-webkit-mask-image: url("../icons/persoon.svg");
	mask-image: url("../icons/persoon.svg");
}

.woocommerce-MyAccount-navigation-link--customer-logout a::before {
	-webkit-mask-image: url("../icons/uitloggen.svg");
	mask-image: url("../icons/uitloggen.svg");
}

.woocommerce-MyAccount-navigation a::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6rem;
	bottom: 0.6rem;
	width: 3px;
	background: var(--wp--preset--color--primary);
	transform: scaleY(0);
	transition: transform 220ms var(--bd-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.woocommerce-MyAccount-navigation a:hover {
		background: color-mix(in srgb, var(--wp--preset--color--base) 60%, transparent);
	}
}

.woocommerce-MyAccount-navigation .is-active a {
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--base);
}

.woocommerce-MyAccount-navigation .is-active a::after {
	transform: none;
}

.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

/* Content */
.woocommerce-MyAccount-content > p:first-child,
.woocommerce-MyAccount-content > .woocommerce-notices-wrapper:first-child + p {
	margin-top: 0;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3,
.woocommerce-MyAccount-content legend {
	font-size: var(--wp--preset--font-size--large);
}

/* Dashboard: a green welcome with the real Boris and Doris, the latest adoption with its photo, and a tile per page. */
.bd-account-hello {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 1.5rem;
	padding: clamp(1.5rem, 1rem + 2vw, 2.25rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
}

.woocommerce-account .bd-account-hello__title {
	margin: 0;
	color: var(--wp--preset--color--on-accent);
	font-size: var(--wp--preset--font-size--xx-large, 2.4rem) !important;
	line-height: 1.05;
}

.bd-account-hello__text {
	margin: 0.6rem 0 0;
	max-width: 40ch;
	color: var(--wp--preset--color--on-accent);
	line-height: 1.55;
}

.bd-account-hello__photo {
	width: clamp(8rem, 14vw, 11rem);
	margin: -0.5rem 0;
	transform: rotate(4deg);
	transition: transform 600ms var(--bd-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.bd-account-hello:hover .bd-account-hello__photo {
		transform: rotate(1.5deg) translateY(-3px);
	}
}

.bd-account-last {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 1.1rem;
	margin-top: var(--wp--preset--spacing--50, 1.5rem);
	padding: 1rem 1.25rem 1rem 1rem;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: border-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.bd-account-last:hover {
		border-color: var(--wp--preset--color--primary);
	}
}

.bd-account-last__photo {
	width: 4.5rem;
	height: 4.5rem;
	object-fit: cover;
	background: var(--wp--preset--color--surface);
}

.bd-account-last__body {
	display: grid;
	gap: 0.2rem;
	min-width: 0;
}

.bd-account-last__label {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.bd-account-last__name {
	overflow: hidden;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.bd-account-last__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.9rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.bd-account-last__number {
	font-weight: 700;
}

.bd-account-last__total {
	font-weight: 800;
	white-space: nowrap;
}

.bd-account-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: var(--wp--preset--spacing--40, 1rem);
	margin: var(--wp--preset--spacing--50, 1.5rem) 0 0;
	padding: 0;
	list-style: none;
}

.bd-account-tiles > li {
	display: flex;
	margin: 0;
}

.bd-account-tile {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	padding: 1.4rem 1.4rem 2.6rem;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: background-color 200ms ease, transform 200ms var(--bd-ease-out);
}

.bd-account-tile__icon {
	width: 2.9rem;
	height: 2.9rem;
	margin-bottom: 0.6rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, var(--wp--preset--color--base));
	-webkit-mask: none;
	mask: none;
	position: relative;
}

.bd-account-tile__icon::after {
	content: "";
	position: absolute;
	inset: 0.7rem;
	background: var(--wp--preset--color--primary);
}

.bd-account-tile--orders .bd-account-tile__icon::after { -webkit-mask: url("../icons/doos.svg") center / contain no-repeat; mask: url("../icons/doos.svg") center / contain no-repeat; }
.bd-account-tile--edit-address .bd-account-tile__icon::after { -webkit-mask: url("../icons/pin.svg") center / contain no-repeat; mask: url("../icons/pin.svg") center / contain no-repeat; }
.bd-account-tile--edit-account .bd-account-tile__icon::after { -webkit-mask: url("../icons/persoon.svg") center / contain no-repeat; mask: url("../icons/persoon.svg") center / contain no-repeat; }

.bd-account-tile__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
}

.bd-account-tile__text {
	color: var(--wp--preset--color--muted);
	line-height: 1.5;
}

.bd-account-tile__arrow {
	position: absolute;
	right: 1.4rem;
	bottom: 1.1rem;
	color: var(--wp--preset--color--primary);
	font-size: 1.2rem;
	font-weight: 700;
	transition: transform 260ms var(--bd-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.bd-account-tile:hover {
		background: color-mix(in srgb, var(--wp--preset--color--detail) 12%, var(--wp--preset--color--surface));
	}

	.bd-account-tile:hover .bd-account-tile__arrow {
		transform: translateX(4px);
	}
}

.bd-account-tile:active {
	transform: scale(0.99);
}

.bd-account-shop {
	margin: 0;
	padding-top: var(--wp--preset--spacing--60, 2.25rem); /* padding: the content's paragraph margins get reset */
}

.bd-account-shop .wp-element-button {
	display: inline-block;
	text-decoration: none;
}

/* Every page but the dashboard opens with its title. */
.woocommerce-account .bd-account-title {
	margin: 0 0 var(--wp--preset--spacing--50, 1.5rem);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.1;
}

@media (max-width: 781px) {
	.bd-account-hello {
		grid-template-columns: minmax(0, 1fr);
	}

	.bd-account-hello__photo {
		display: none;
	}

	.bd-account-last {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.bd-account-last__total {
		grid-column: 2;
	}
}

/* Status labels: in the latest adoption, the order list and on an order page. */
.bd-status,
.woocommerce-MyAccount-content mark.order-status {
	--bd-status: var(--wp--preset--color--muted);
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--bd-status) 14%, var(--wp--preset--color--base));
	color: color-mix(in srgb, var(--bd-status) 80%, var(--wp--preset--color--contrast));
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.5;
}

.bd-status--processing { --bd-status: var(--wp--preset--color--accent); }
.bd-status--completed { --bd-status: #2f7a4a; }
.bd-status--on-hold,
.bd-status--pending { --bd-status: var(--wp--preset--color--detail); }
.bd-status--cancelled,
.bd-status--failed,
.bd-status--refunded { --bd-status: var(--wp--preset--color--primary); }

/* Orders */
.woocommerce-account table.shop_table {
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	margin: 0 0 var(--wp--preset--spacing--50, 1.5rem);
}

.woocommerce-account table.shop_table th,
.woocommerce-account table.shop_table td {
	padding: 1rem 0.75rem;
	border: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
	vertical-align: middle;
}

.woocommerce-account table.shop_table thead th {
	padding-block: 0.6rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	border-bottom-color: var(--wp--preset--color--contrast);
}

.woocommerce-orders-table__cell-order-number a {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.woocommerce-orders-table__cell-order-actions {
	text-align: right;
}

.woocommerce-account .woocommerce-orders-table .button,
.woocommerce-account .woocommerce-MyAccount-content .button {
	margin: 0.15rem 0 0.15rem 0.4rem;
	padding: 0.5rem 1rem;
	border: 1.5px solid var(--wp--preset--color--contrast);
	border-radius: var(--bd-radius);
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.woocommerce-account .woocommerce-MyAccount-content .button:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.woocommerce-account .woocommerce-MyAccount-content :is(button[type="submit"], .woocommerce-Button[type="submit"]) {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-size: var(--wp--preset--font-size--medium);
	padding: 0.8rem 1.6rem;
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-content :is(button[type="submit"], .woocommerce-Button[type="submit"]):hover {
	border-color: var(--wp--preset--color--accent-strong);
	background: var(--wp--preset--color--accent-strong);
}

/* Addresses as cards */
.woocommerce-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: var(--wp--preset--spacing--40, 1rem);
}

.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after {
	content: none;
}

.woocommerce-account .woocommerce .woocommerce-Addresses .woocommerce-Address {
	float: none;
	width: auto;
	max-width: none;
	padding: 1.4rem 1.5rem;
	background: var(--wp--preset--color--surface);
}

.woocommerce-account .woocommerce-Address-title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.3rem;
	margin-bottom: 0.9rem;
}

.woocommerce-account .woocommerce-Address-title::before,
.woocommerce-account .woocommerce-Address-title::after {
	content: none;
}

.woocommerce-account .woocommerce-Address-title h2 {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
}

.woocommerce-account .woocommerce-Address-title .edit {
	float: none;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-underline-offset: 0.25em;
}

.woocommerce-account .woocommerce-Address address {
	font-style: normal;
	line-height: 1.6;
}

/* Forms: account details, addresses, login, lost password */
.woocommerce-account .woocommerce form .form-row {
	margin: 0 0 1.1rem;
	padding: 0;
}

.woocommerce-account .woocommerce form .form-row label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	line-height: 1.4;
}

.woocommerce-account .woocommerce form .form-row .required {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.woocommerce-account .woocommerce form :is(.input-text, select, textarea),
.woocommerce-account .woocommerce .select2-container .select2-selection--single {
	width: 100%;
	min-height: 3rem;
	padding: 0.7rem 0.9rem;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--contrast) 25%, transparent);
	border-radius: 0;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.woocommerce-account .woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0;
	line-height: 1.6;
}

.woocommerce-account .woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
	top: 50%;
	transform: translateY(-50%);
	right: 0.5rem;
}

.woocommerce-account .woocommerce form :is(.input-text, select, textarea):focus {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--accent) 20%, transparent);
	outline: none;
}

.woocommerce-account .woocommerce form .form-row :is(em, .description) {
	display: block;
	margin-top: 0.35rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
}

.woocommerce-account .woocommerce form fieldset {
	margin: var(--wp--preset--spacing--50, 1.5rem) 0;
	padding: 1.4rem 1.5rem 0.4rem;
	border: 0;
	background: var(--wp--preset--color--surface);
}

.woocommerce-account .woocommerce form fieldset legend {
	float: left;
	width: 100%;
	margin: 0 0 1rem;
	padding: 0;
	font-weight: 800;
}

.woocommerce-account .woocommerce form fieldset legend + * {
	clear: both;
}

/* Logged out: the login (and lost password) form as one card */
/* Lost password and other logged-out forms: one card. The login itself: the card beside a green welcome panel. */
.woocommerce-account:not(.logged-in) .wp-block-post-content > .woocommerce:not(:has(.bd-login)) {
	box-sizing: border-box;
	max-width: 30rem !important;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	background: var(--wp--preset--color--surface);
}

.woocommerce-account:not(.logged-in) .wp-block-post-title {
	max-width: 30rem !important;
}

.woocommerce-account:not(.logged-in):has(.bd-login) .wp-block-post-title,
.woocommerce-account:not(.logged-in) .wp-block-post-content > .woocommerce:has(.bd-login) {
	max-width: 58rem !important;
}

.bd-login {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.bd-login__welcome {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.6rem;
	overflow: hidden;
	padding: clamp(1.75rem, 1rem + 2.5vw, 2.75rem);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
}

.bd-login__photo {
	display: block;
	width: 88%;
	margin: 0 auto auto;
	transform: rotate(-3deg);
	transition: transform 600ms var(--bd-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.bd-login:hover .bd-login__photo {
		transform: rotate(-1deg) translateY(-4px);
	}
}

.woocommerce-account .bd-login__title {
	margin: 1.5rem 0 0;
	color: var(--wp--preset--color--on-accent);
	font-size: var(--wp--preset--font-size--xx-large, 2.4rem);
	line-height: 1.05;
}

.bd-login__text {
	margin: 0;
	max-width: 32ch;
	color: var(--wp--preset--color--on-accent);
	line-height: 1.55;
}

.bd-login__form {
	padding: clamp(1.75rem, 1rem + 2.5vw, 2.75rem);
	background: var(--wp--preset--color--surface);
}

.bd-login__form > h2:first-child {
	margin-top: 0;
}

@media (max-width: 781px) {
	.bd-login {
		grid-template-columns: minmax(0, 1fr);
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 1.25rem));
	}

	.bd-login__photo {
		display: none;
	}

	.woocommerce-account .bd-login__title {
		margin: 0;
		font-size: var(--wp--preset--font-size--x-large);
	}
}

/* Passkey button (Wordfence): dark, the key-person icon nudges on hover, a press gives, and while
 * the browser asks for the passkey the icon breathes. */
.woocommerce-account .wfls-passkey-container .wfls-passkey-submit {
	transition: background-color 180ms ease, transform 160ms var(--bd-ease-out);
}

.woocommerce-account .wfls-passkey-container .wfls-passkey-icon {
	transition: transform 320ms var(--bd-ease-play);
}

@media (hover: hover) and (pointer: fine) {
	.woocommerce-account .wfls-passkey-container .wfls-passkey-submit:hover:not(:disabled) {
		background-color: color-mix(in srgb, var(--wp--preset--color--contrast) 88%, var(--wp--preset--color--primary));
	}

	.woocommerce-account .wfls-passkey-container .wfls-passkey-submit:hover:not(:disabled) .wfls-passkey-icon {
		transform: rotate(-12deg) scale(1.12);
	}
}

.woocommerce-account .wfls-passkey-container .wfls-passkey-submit:active:not(:disabled) {
	transform: scale(0.98);
}

.woocommerce-account .wfls-passkey-container .wfls-passkey-submit:disabled {
	opacity: 1;
	cursor: progress;
}

.woocommerce-account .wfls-passkey-container .wfls-passkey-submit:disabled .wfls-passkey-icon {
	animation: bd-breathe 1.4s ease-in-out infinite;
}

@keyframes bd-breathe {
	50% { transform: scale(1.18); opacity: 0.7; }
}

/* The "of" between the two buttons sits on the card's colour, not in a white box. */
.woocommerce-account .wfls-passkey-divider-label {
	background: var(--wp--preset--color--surface) !important;
	color: var(--wp--preset--color--muted);
}

/* The window while the browser asks for the passkey. */
.bd-passkey {
	width: min(24rem, calc(100vw - 2rem));
	padding: 2.75rem 2rem 2rem;
	border: 0;
	border-top: 4px solid var(--wp--preset--color--detail);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	text-align: center;
	box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent);
	opacity: 1;
	transform: none;
	transition: opacity 240ms var(--bd-ease-out), transform 320ms var(--bd-ease-play), overlay 240ms allow-discrete, display 240ms allow-discrete;
}

@starting-style {
	.bd-passkey[open] {
		opacity: 0;
		transform: translateY(12px) scale(0.96);
	}
}

.bd-passkey:not([open]) {
	opacity: 0;
	transform: translateY(6px) scale(0.98);
	transition-duration: 160ms;
}

.bd-passkey::backdrop {
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent);
	backdrop-filter: blur(2px);
}

.bd-passkey__mark {
	position: relative;
	display: grid;
	place-items: center;
	width: 5.5rem;
	height: 5.5rem;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, var(--wp--preset--color--base));
}

.bd-passkey__ring {
	position: absolute;
	inset: 0;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 50%;
	opacity: 0;
	animation: bd-ring 2.2s var(--bd-ease-out) infinite;
}

.bd-passkey__ring + .bd-passkey__ring {
	animation-delay: 1.1s;
}

@keyframes bd-ring {
	0% { transform: scale(0.9); opacity: 0.55; }
	100% { transform: scale(1.6); opacity: 0; }
}

.bd-passkey__icon {
	width: 2.4rem;
	height: 2.4rem;
	background: var(--wp--preset--color--primary);
	-webkit-mask: var(--bd-passkey-icon, url("../icons/schild.svg")) center / contain no-repeat;
	mask: var(--bd-passkey-icon, url("../icons/schild.svg")) center / contain no-repeat;
}

.bd-passkey__title {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.15;
}

.bd-passkey__text {
	margin: 0;
	line-height: 1.55;
}

.bd-passkey__note {
	margin: 1rem 0 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

@media (prefers-reduced-motion: reduce) {
	.bd-passkey,
	.bd-login__photo,
	.woocommerce-account .wfls-passkey-container .wfls-passkey-icon {
		transition: none;
	}

	.bd-passkey__ring,
	.woocommerce-account .wfls-passkey-container .wfls-passkey-submit:disabled .wfls-passkey-icon {
		animation: none;
	}
}

.woocommerce-account:not(.logged-in) .woocommerce h2 {
	margin-top: 0;
}

.woocommerce-account .woocommerce form.login {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.woocommerce-account .woocommerce-form-login__rememberme {
	display: flex !important;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.25rem !important;
	font-weight: 500 !important;
}

.woocommerce-account .woocommerce form.login :is(.woocommerce-form-login__submit, button[type="submit"]) {
	float: none;
	width: 100%;
	margin: 0;
	padding: 0.9rem 1.5rem;
	border: 0;
	border-radius: var(--bd-radius);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
}

.woocommerce-account .woocommerce form.login :is(.woocommerce-form-login__submit, button[type="submit"]):hover {
	background: var(--wp--preset--color--accent-strong);
}

.woocommerce-account .woocommerce-LostPassword {
	margin: 1.25rem 0 0;
	text-align: center;
}

.woocommerce-account .woocommerce-LostPassword a {
	color: var(--wp--preset--color--contrast);
	text-underline-offset: 0.25em;
}

/* Notices (no orders yet, saved, errors) */
.woocommerce-account .woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	margin: 0 0 var(--wp--preset--spacing--50, 1.5rem);
	padding: 1.1rem 1.4rem;
	border: 0;
	border-left: 4px solid var(--wp--preset--color--detail);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	list-style: none;
}

.woocommerce-account .woocommerce .woocommerce-error {
	border-left-color: var(--wp--preset--color--primary);
}

.woocommerce-account .woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before,
.woocommerce-account .woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::after {
	content: none;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content :is(.woocommerce-message, .woocommerce-info) .button {
	order: 2;
	float: none;
	margin: 0;
	padding: 0.7rem 1.3rem;
	border: 0;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content :is(.woocommerce-message, .woocommerce-info) .button:hover {
	background: var(--wp--preset--color--accent-strong);
	color: var(--wp--preset--color--on-accent);
}

/* Order page */
.woocommerce-account .woocommerce-MyAccount-content mark {
	background: none;
	color: inherit;
	font-weight: 700;
}

.woocommerce-account .woocommerce-order-details,
.woocommerce-account .woocommerce-customer-details {
	margin-top: var(--wp--preset--spacing--50, 1.5rem);
}

.woocommerce-account .woocommerce-customer-details address {
	padding: 1.25rem 1.4rem;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--surface);
	font-style: normal;
	line-height: 1.6;
}

.woocommerce-account table.shop_table tfoot th {
	font-weight: 600;
}

.woocommerce-account table.shop_table tfoot tr:last-child :is(th, td) {
	border-bottom: 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
}

/* Phones and tablets: the pages become a row of tabs above the content, orders become cards. */
@media (max-width: 900px) {
	.woocommerce-account.logged-in .wp-block-post-content > .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--wp--preset--spacing--50, 1.5rem);
	}

	.woocommerce-account.logged-in .wp-block-post-content > .woocommerce > :is(.bd-account-side, .woocommerce-MyAccount-content) {
		grid-column: 1;
	}

	.bd-account-side {
		position: static;
		padding: 0;
		background: none;
	}

	.bd-account-me {
		margin-bottom: 0.9rem;
	}

	.woocommerce-MyAccount-navigation {
		position: static;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 1.25rem));
	}

	.woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 0.5rem;
		overflow-x: auto;
		padding: 0 var(--wp--style--root--padding-left, 1.25rem) 0.25rem;
		border: 0;
		scrollbar-width: none;
	}

	.woocommerce-MyAccount-navigation li {
		flex: none;
		border: 0;
	}

	.woocommerce-MyAccount-navigation a {
		padding: 0.6rem 0.95rem;
		border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--contrast) 14%, transparent);
		white-space: nowrap;
	}

	.woocommerce-MyAccount-navigation a::before {
		width: 1.1rem;
		height: 1.1rem;
	}

	.woocommerce-MyAccount-navigation a::after {
		content: none;
	}

	.woocommerce-MyAccount-navigation .is-active a {
		border-color: var(--wp--preset--color--primary);
	}

	.bd-account-last__total {
		margin-left: 0;
	}
}

@media (max-width: 768px) {
	.woocommerce-account table.shop_table_responsive tbody tr {
		display: block;
		margin-bottom: 0.75rem;
		padding: 0.5rem 1rem;
		background: var(--wp--preset--color--surface);
	}

	.woocommerce-account table.shop_table_responsive tbody :is(th, td) {
		border-top: 0;
		display: flex !important;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.55rem 0;
		text-align: right !important;
		background: none !important;
	}

	.woocommerce-account table.shop_table_responsive tbody :is(th, td)::before {
		color: var(--wp--preset--color--muted);
		font-weight: 600;
	}

	.woocommerce-account table.shop_table_responsive tbody tr > :last-child {
		border-bottom: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bd-account-tile,
	.woocommerce-MyAccount-navigation a::after {
		transition: none;
	}
}

/* Accountdetails: tabs Gegevens and Beveiliging; under Beveiliging a smaller switch for Passkeys and 2FA (Wordfence). */
.bd-subtabs ul {
	display: flex;
	gap: 0.25rem 1.75rem;
	margin: 0 0 var(--wp--preset--spacing--50, 1.5rem);
	padding: 0;
	list-style: none;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
}

.bd-subtabs li {
	margin: 0;
}

.bd-subtabs a {
	display: block;
	margin-bottom: -1px;
	padding: 0.4rem 0 0.8rem;
	border-bottom: 3px solid transparent;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	text-decoration: none;
	transition: color 160ms ease, border-color 160ms ease;
}

.bd-subtabs a:hover {
	color: var(--wp--preset--color--contrast);
	border-bottom-color: var(--wp--preset--color--detail);
}

.bd-subtabs a[aria-current="page"] {
	color: var(--wp--preset--color--primary);
	border-bottom-color: var(--wp--preset--color--primary);
}

.bd-subtabs--minor ul {
	gap: 0.5rem;
	border-bottom: 0;
}

.bd-subtabs--minor a {
	margin: 0;
	padding: 0.4rem 0.95rem;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--contrast) 14%, transparent);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
}

.bd-subtabs--minor a:hover {
	border-color: var(--wp--preset--color--contrast);
}

.bd-subtabs--minor a[aria-current="page"] {
	border-color: var(--wp--preset--color--primary);
	background: color-mix(in srgb, var(--wp--preset--color--primary) 7%, var(--wp--preset--color--base));
	color: var(--wp--preset--color--primary);
}

/* ---------- Beveiliging (Wordfence passkeys and 2FA inside Accountdetails) ----------
 * Wordfence's grey admin panels become the account's own: surface cards with a heading
 * in the site font, the square fields, outlined buttons and the accent for the one action
 * that matters (add a passkey, activate 2FA). Scoped to the two embedded containers. */
:is(#wfls-passkey-management-embedded, #wfls-management-embedded) {
	--bd-line: color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.55;
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) > p:first-child {
	max-width: 60ch;
	margin: 0 0 1.5rem;
	color: var(--wp--preset--color--muted);
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) > .wfls-flex-row {
	gap: 1rem;
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-flex-row > .wfls-flex-row {
	padding: 0 !important;
	flex: 1 1 18rem;
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-block {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--surface);
	box-shadow: none;
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-block-header {
	padding: 1.1rem 1.4rem;
	border-bottom: 1px solid var(--bd-line);
	background: none;
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-block-title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
	color: var(--wp--preset--color--contrast);
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-block-title strong {
	font-weight: 800;
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) :is(.wfls-passkey-card-title-icon, .wfls-two-factor-card-title-icon) {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, var(--wp--preset--color--base));
	color: var(--wp--preset--color--primary);
	font-size: 1rem;
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-block-content {
	padding: 1.1rem 1.4rem 1.4rem;
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-block-content p {
	margin: 0 0 0.9rem;
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-block-footer {
	padding: 0.9rem 1.4rem;
	border-top: 1px solid var(--bd-line);
	background: none;
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-block-footer-content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	font-size: var(--wp--preset--font-size--small);
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) a:not(.wfls-btn) {
	color: var(--wp--preset--color--contrast);
	text-underline-offset: 0.2em;
}

/* Buttons: outlined; the main action filled in the accent. */
:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 2.75rem;
	padding: 0.55rem 1.1rem;
	border: 1.5px solid var(--wp--preset--color--contrast);
	border-radius: var(--bd-radius);
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--bd-ease-out);
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-btn:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-btn:active {
	transform: scale(0.97);
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) :is(#wfls-passkey-add, #wfls-activate) {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) :is(#wfls-passkey-add, #wfls-activate):hover {
	border-color: var(--wp--preset--color--accent-strong);
	background: var(--wp--preset--color--accent-strong);
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-btn.wfls-disabled {
	opacity: 0.4;
	pointer-events: none;
}

/* Fields */
:is(#wfls-passkey-management-embedded, #wfls-management-embedded) input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 2.75rem;
	padding: 0.6rem 0.85rem;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--contrast) 25%, transparent);
	border-radius: 0;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	box-shadow: none;
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) input[type="text"]:focus {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--accent) 20%, transparent);
	outline: none;
}

#wfls-management-embedded #wfls-activate-field {
	max-width: 14rem;
	margin-left: 0 !important;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-align: center;
}

#wfls-passkey-management-embedded .wfls-passkey-add-row {
	display: flex;
	gap: 0.5rem;
}

#wfls-passkey-management-embedded .wfls-passkey-add-row .wfls-btn {
	flex: none;
	width: 2.75rem;
	padding: 0;
}

/* A registered passkey: a white row with its name and dates, and a quiet remove button. */
#wfls-passkey-management-embedded .wfls-passkey-item {
	margin: 0 0 0.6rem;
	padding: 0.85rem 1rem;
	background: var(--wp--preset--color--base);
}

#wfls-passkey-management-embedded .wfls-passkey-item-row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

#wfls-passkey-management-embedded .wfls-passkey-item-details {
	flex: 1;
	min-width: 0;
	line-height: 1.4;
}

#wfls-passkey-management-embedded .wfls-passkey-item-details small {
	color: var(--wp--preset--color--muted);
}

#wfls-passkey-management-embedded .wfls-passkey-remove {
	width: 2.5rem;
	min-height: 2.5rem;
	padding: 0;
	border-color: transparent;
	color: var(--wp--preset--color--muted);
}

#wfls-passkey-management-embedded .wfls-passkey-remove:hover {
	border-color: var(--wp--preset--color--primary);
	background: transparent;
	color: var(--wp--preset--color--primary);
}

/* 2FA: the QR code on a white tile, the key below it, the recovery codes as a white list. */
#wfls-management-embedded #wfls-qr-code {
	display: grid;
	place-items: center;
	width: fit-content;
	height: auto;
	min-height: 0;
	margin: 0.5rem auto 1rem;
	padding: 0.9rem;
	background: var(--wp--preset--color--base);
}

#wfls-management-embedded #wfls-qr-code-text {
	font-family: ui-monospace, "SFMono-Regular", Menlo, monospace !important;
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

#wfls-management-embedded .wfls-recovery-codes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.35rem 1rem;
	margin: 0 0 1rem;
	padding: 0.9rem 1rem;
	list-style: none;
	background: var(--wp--preset--color--base);
	font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
	font-size: var(--wp--preset--font-size--small);
}

#wfls-management-embedded hr.wfls-half {
	width: 100%;
	margin: 1.25rem 0;
	border: 0;
	border-top: 1px solid var(--bd-line);
}

@media (max-width: 600px) {
	#wfls-management-embedded .wfls-recovery-codes {
		grid-template-columns: minmax(0, 1fr);
	}
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-block .wfls-block-header .wfls-block-title,
:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-block .wfls-block-header .wfls-block-title strong {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
	line-height: 1.25;
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-block .wfls-btn {
	text-transform: none;
	letter-spacing: normal;
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-block-header-content,
:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-block-header .wfls-block-title {
	flex: 1;
	width: auto;
	max-width: none;
}

/* 2FA and passkeys: the cards in a row start at the top and share the row's height
 * (Wordfence centres them, which pushes the shorter one down). */
:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-flex-row {
	align-items: stretch;
}

:is(#wfls-passkey-management-embedded, #wfls-management-embedded) .wfls-flex-row > .wfls-flex-row > .wfls-block {
	flex: 1;
	align-self: stretch;
}

/* Wordfence's confirmation window (jQuery UI dialog): the site's own window. */
#wfls-standalone-modal-overlay {
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent);
	opacity: 1;
	backdrop-filter: blur(2px);
}

#wfls-standalone-modal {
	max-width: calc(100vw - 2rem);
	padding: 0;
	border: 0;
	border-top: 4px solid var(--wp--preset--color--detail);
	border-radius: 0;
	background: var(--wp--preset--color--base);
	box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent);
	font-family: var(--wp--preset--font-family--body);
	animation: bd-modal-in 280ms var(--bd-ease-play);
}

@keyframes bd-modal-in {
	from { opacity: 0; transform: translateY(10px) scale(0.97); }
}

#wfls-standalone-modal .ui-dialog-titlebar {
	display: none;
}

#wfls-standalone-modal .ui-dialog-content {
	padding: 0;
	background: none;
}

#wfls-standalone-modal .wfls-modal {
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.55;
}

#wfls-standalone-modal .wfls-modal .wfls-modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem 1.5rem 0;
	border: 0;
	background: none;
}

#wfls-standalone-modal .wfls-modal .wfls-modal-title,
#wfls-standalone-modal .wfls-modal .wfls-modal-title strong {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	line-height: 1.2;
}

#wfls-standalone-modal .wfls-modal .wfls-modal-header-action-close a {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease;
}

#wfls-standalone-modal .wfls-modal .wfls-modal-header-action-close a:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

#wfls-standalone-modal .wfls-modal .wfls-modal-content {
	padding: 0.75rem 1.5rem 1.25rem;
	font-size: 1rem;
}

#wfls-standalone-modal .wfls-modal .wfls-modal-footer {
	padding: 0 1.5rem 1.5rem;
	border: 0;
	background: none;
}

#wfls-standalone-modal .wfls-modal .wfls-modal-footer ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

#wfls-standalone-modal .wfls-modal .wfls-modal-footer li {
	margin: 0;
	padding: 0;
}

#wfls-standalone-modal .wfls-modal .wfls-btn {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.55rem 1.2rem;
	border: 1.5px solid var(--wp--preset--color--contrast);
	border-radius: var(--bd-radius);
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
	box-shadow: none;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--bd-ease-out);
}

#wfls-standalone-modal .wfls-modal .wfls-btn:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

#wfls-standalone-modal .wfls-modal .wfls-btn.wfls-btn-primary {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
}

#wfls-standalone-modal .wfls-modal .wfls-btn.wfls-btn-primary:hover {
	border-color: var(--wp--preset--color--accent-strong);
	background: var(--wp--preset--color--accent-strong);
}

#wfls-standalone-modal .wfls-modal .wfls-btn:active {
	transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
	#wfls-standalone-modal {
		animation: none;
	}
}

/* Passkeys: the two cards side by side are the same height; Wordfence's promotional
 * "Wachtwoordloze aanmelding met Passkeys" box is left out (the intro above says it in our words). */
#wfls-passkey-management-embedded .wfls-flex-row-wrapped,
#wfls-passkey-management-embedded .wfls-flex-row-wrapped > .wfls-flex-row {
	align-items: stretch !important;
}

#wfls-passkey-management-embedded .wfls-passkey-information {
	display: none !important;
}

/* "Hoe wil je inloggen?": its own card below the two passkey cards, with the choices as
 * white rows (the picked one outlined in red) and the recommendation as the site's yellow label. */
#wfls-passkey-management-embedded .wfls-flex-row-wrapped ~ .wfls-flex-row-wrapped {
	margin-top: 1.5rem;
}

#wfls-passkey-management-embedded .wfls-passkey-password-auth-options {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	border: 0;
}

#wfls-passkey-management-embedded .wfls-passkey-password-auth-choice {
	padding: 0.9rem 1rem;
	border: 1.5px solid transparent;
	background: var(--wp--preset--color--base);
	transition: border-color 160ms ease;
}

#wfls-passkey-management-embedded .wfls-passkey-password-auth-choice:has(:checked) {
	border-color: var(--wp--preset--color--primary);
}

#wfls-passkey-management-embedded .wfls-passkey-password-auth-choice label {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0;
	cursor: pointer;
}

#wfls-passkey-management-embedded [type=radio].wfls-option-radio + label::before {
	flex: none;
	margin: 0.1rem 0 0 !important;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 30%, transparent) !important;
}

#wfls-passkey-management-embedded [type=radio].wfls-option-radio:checked + label::before {
	color: var(--wp--preset--color--primary) !important;
}

#wfls-passkey-management-embedded [type=radio].wfls-option-radio:focus-visible + label {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 4px;
}

#wfls-passkey-management-embedded .wfls-passkey-password-auth-choice-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem 0.6rem;
	font-weight: 700;
}

#wfls-passkey-management-embedded .wfls-passkey-password-auth-recommended-badge {
	padding: 0.15rem 0.6rem;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--detail);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
}

#wfls-passkey-management-embedded .wfls-passkey-password-auth-choice .wfls-option-subtitle {
	display: block;
	margin-top: 0.2rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

#wfls-passkey-management-embedded .wfls-passkey-password-auth-warning {
	margin-top: 0.9rem;
	padding: 0.9rem 1rem;
	border: 0;
	border-left: 4px solid var(--wp--preset--color--primary);
	background: var(--wp--preset--color--base);
}

/* 2FA: no link to Wordfence's help article; the Activeren button on its own at the right. */
#wfls-management-embedded #wfls-activation-help-link-container {
	display: none;
}

#wfls-management-embedded .wfls-block-footer-content {
	justify-content: flex-end;
}

#wfls-management-embedded #wfls-activation-controls .wfls-block-content .wfls-center,
#wfls-management-embedded #wfls-activation-controls .wfls-block-content p {
	text-align: left !important;
}

#wfls-management-embedded #wfls-activation-controls #wfls-qr-code + p,
#wfls-management-embedded #wfls-activation-controls #wfls-qr-code + p input {
	text-align: center !important;
}

#wfls-management-embedded #wfls-activation-controls .wfls-block-content > p:first-child:has(em) {
	font-weight: 700;
}

#wfls-management-embedded .wfls-text-small {
	margin-left: 0.3rem;
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

/* Log in or create an account (when sign-up is on): WooCommerce's two columns become one
 * view at a time in the form half of the card; the switch fades the new form in. */
.bd-login__form .col2-set {
	display: block;
	width: 100%;
}

.bd-login__form .col2-set::before,
.bd-login__form .col2-set::after {
	content: none;
}

.bd-login__form .col2-set > :is(.u-column1, .u-column2) {
	float: none;
	width: 100%;
	max-width: none;
}

.bd-login__form .col2-set > .u-column2 {
	margin-top: 2.5rem;
}

.bd-login.has-register .col2-set > .u-column2,
.bd-login.has-register.is-register .col2-set > .u-column1 {
	display: none;
}

.bd-login.has-register.is-register .col2-set > .u-column2 {
	display: block;
	margin-top: 0;
	animation: bd-view-in 260ms var(--bd-ease-out);
}

.bd-login.has-register:not(.is-register) .col2-set > .u-column1 {
	animation: bd-view-in 260ms var(--bd-ease-out);
}

@keyframes bd-view-in {
	from { opacity: 0; transform: translateY(6px); }
}

.bd-login__form .col2-set h2 {
	margin-top: 0;
}

.woocommerce-account .woocommerce form.register {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.woocommerce-account .woocommerce form.register :is(.woocommerce-form-register__submit, button[type="submit"]) {
	float: none;
	width: 100%;
	margin: 0;
	padding: 0.9rem 1.5rem;
	border: 0;
	border-radius: var(--bd-radius);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
}

.woocommerce-account .woocommerce form.register :is(.woocommerce-form-register__submit, button[type="submit"]):hover {
	background: var(--wp--preset--color--accent-strong);
}

.woocommerce-account .woocommerce form.register > p:not(.form-row):not(.bd-login-switch),
.woocommerce-account .woocommerce form.register .woocommerce-privacy-policy-text {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.bd-login-switch {
	margin: 1.5rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
	text-align: center;
}

.bd-login-switch a {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	text-underline-offset: 0.25em;
}

@media (prefers-reduced-motion: reduce) {
	.bd-login.has-register .col2-set > :is(.u-column1, .u-column2) {
		animation: none;
	}
}

/* Forgot password window (and any other .bd-window): the passkey window's look, left-aligned. */
.bd-window {
	position: relative;
	width: min(28rem, calc(100vw - 2rem));
	padding: 2rem 1.75rem 1.75rem;
	border: 0;
	border-top: 4px solid var(--wp--preset--color--detail);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent);
	opacity: 1;
	transform: none;
	transition: opacity 240ms var(--bd-ease-out), transform 320ms var(--bd-ease-play), overlay 240ms allow-discrete, display 240ms allow-discrete;
}

@starting-style {
	.bd-window[open] {
		opacity: 0;
		transform: translateY(12px) scale(0.96);
	}
}

.bd-window:not([open]) {
	opacity: 0;
	transform: translateY(6px) scale(0.98);
	transition-duration: 160ms;
}

.bd-window::backdrop {
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent);
	backdrop-filter: blur(2px);
}

.bd-window__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--wp--preset--color--muted);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease;
}

.bd-window__close:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

.woocommerce-account .bd-window__title {
	margin: 0 2rem 0.75rem 0;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.15;
}

.bd-lost form.lost_reset_password {
	margin: 0;
}

.bd-lost form.lost_reset_password > p:first-child {
	margin: 0 0 1.1rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.55;
}

.woocommerce-account .bd-lost .form-row-first {
	float: none;
	width: 100%;
}

.woocommerce-account .bd-lost button[type="submit"] {
	width: 100%;
	margin: 0.25rem 0 0;
	padding: 0.9rem 1.5rem;
	border: 0;
	border-radius: var(--bd-radius);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	transition: background-color 160ms ease, opacity 160ms ease;
}

.woocommerce-account .bd-lost button[type="submit"]:hover {
	background: var(--wp--preset--color--accent-strong);
}

.bd-lost.is-busy button[type="submit"] {
	opacity: 0.6;
	cursor: progress;
}

.bd-lost__notice {
	margin: 0 0 1rem;
	padding: 0.8rem 1rem;
	border-left: 4px solid var(--wp--preset--color--primary);
	background: var(--wp--preset--color--surface);
	font-size: var(--wp--preset--font-size--small);
}

.bd-lost__sent {
	margin: 0;
	line-height: 1.55;
	animation: bd-view-in 260ms var(--bd-ease-out);
}

@media (prefers-reduced-motion: reduce) {
	.bd-window {
		transition: none;
	}
}

/* A login or sign-up message, moved into the form half of the card: white on the grey card, above the fields. */
.bd-login__form > :is(.wc-block-components-notice-banner, .woocommerce-error, .woocommerce-message, .woocommerce-info) {
	margin: 0 0 1.5rem;
	background: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	animation: bd-view-in 260ms var(--bd-ease-out);
}

.wc-block-components-notice-banner .wc-block-components-notice-banner__content a:not(.wc-forward) {
	color: inherit !important;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* Wordfence's login message (a classic WooCommerce error list) in the card, as one of our notices. */
.bd-login__form > .wfls-login-message {
	margin: 0 0 1.5rem;
	animation: bd-view-in 260ms var(--bd-ease-out);
}

.bd-login__form .wfls-login-message :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
	margin: 0;
	padding: 0.9rem 1.1rem;
	border: 0;
	border-left: 4px solid var(--wp--preset--color--primary);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
	list-style: none;
}

.bd-login__form .wfls-login-message :is(.woocommerce-message, .woocommerce-info) {
	border-left-color: var(--wp--preset--color--detail);
}

.bd-login__form .wfls-login-message :is(.woocommerce-error, .woocommerce-message, .woocommerce-info)::before {
	content: none;
}

.bd-login__form .wfls-login-message li {
	margin: 0;
	padding: 0;
}

.bd-login__form .wfls-login-message a {
	color: inherit;
	font-weight: 700;
	text-underline-offset: 0.2em;
}
