.avpc-b2b-card {
	--avpc-b2b-border: color-mix(in srgb, currentColor 22%, transparent);
	--avpc-b2b-border-soft: color-mix(in srgb, currentColor 12%, transparent);
	box-sizing: border-box;
	width: min(900px, calc(100% - 2rem));
	margin: 2rem auto;
	padding: 1.5rem;
	border: 1px solid currentColor;
	border-color: var(--avpc-b2b-border);
	border-radius: var(--wp--custom--border-radius, var(--wp--custom--radius, 0.5rem));
	background: transparent;
	color: inherit;
	box-shadow: none;
}

.avpc-b2b-card *,
.avpc-b2b-card *::before,
.avpc-b2b-card *::after {
	box-sizing: border-box;
}

.avpc-b2b-card > h2 {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.avpc-b2b-card > h2 + p {
	margin-top: 0;
}

.avpc-b2b-login {
	width: min(620px, calc(100% - 2rem));
}

.avpc-b2b-form {
	display: grid;
	gap: 1rem;
	margin: 1.25rem 0 0;
	padding: 0;
	color: inherit;
	font: inherit;
}

.avpc-b2b-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
}

.avpc-b2b-field {
	margin: 0;
}

.avpc-b2b-field label,
.avpc-b2b-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.avpc-b2b-field select,
.avpc-b2b-field textarea {
	display: block;
	width: 100%;
}

.avpc-b2b-field label {
	margin-bottom: 0.35rem;
	font-weight: 600;
	line-height: 1.35;
}

.avpc-b2b-field input:not([type="checkbox"]):not([type="radio"]),
.avpc-b2b-field select,
.avpc-b2b-field textarea {
	min-height: 2.65rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid currentColor;
	border-color: var(--avpc-b2b-border);
	border-radius: var(--wp--custom--border-radius, var(--wp--custom--radius, 0.35rem));
	background: transparent;
	color: inherit;
	font: inherit;
}

.avpc-b2b-field input[type="file"] {
	padding: 0.55rem;
}

.avpc-b2b-field .description,
.avpc-b2b-password-generator span {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.92em;
	line-height: 1.4;
	opacity: 0.8;
}

.avpc-b2b-password-field {
	display: flex;
	align-items: stretch;
	width: 100%;
}

.avpc-b2b-password-field input {
	flex: 1 1 auto;
	min-width: 0;
	border-start-end-radius: 0 !important;
	border-end-end-radius: 0 !important;
}

.avpc-b2b-password-toggle {
	flex: 0 0 auto;
	margin: 0;
	padding: 0.55rem 0.75rem;
	border: 1px solid currentColor;
	border-left: 0;
	border-color: var(--avpc-b2b-border);
	border-radius: 0 var(--wp--custom--border-radius, var(--wp--custom--radius, 0.35rem)) var(--wp--custom--border-radius, var(--wp--custom--radius, 0.35rem)) 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.avpc-b2b-password-toggle:focus-visible,
.avpc-b2b-button:focus-visible,
.avpc-b2b-link-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.avpc-b2b-check {
	margin: 0;
}

.avpc-b2b-check label {
	display: flex;
	gap: 0.45rem;
	align-items: flex-start;
	line-height: 1.45;
}

.avpc-b2b-check input[type="checkbox"] {
	flex: 0 0 auto;
	margin-top: 0.2em;
}

.avpc-b2b-actions,
.avpc-b2b-links,
.avpc-b2b-password-generator {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 0.85rem;
	align-items: center;
	margin: 0;
}

.avpc-b2b-links {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid currentColor;
	border-top-color: var(--avpc-b2b-border-soft);
}

.avpc-b2b-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.6rem;
	padding: 0.65rem 1rem;
	border: 1px solid currentColor;
	border-radius: var(--wp--custom--border-radius, var(--wp--custom--radius, 0.35rem));
	background: var(--wp--preset--color--contrast, currentColor);
	color: var(--wp--preset--color--base, Canvas);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.avpc-b2b-button-secondary {
	background: transparent;
	color: inherit;
}

.avpc-b2b-button:disabled,
.avpc-b2b-link-button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.avpc-b2b-message {
	margin: 0 0 1rem;
	padding: 0.8rem 1rem;
	border: 1px solid currentColor;
	border-radius: var(--wp--custom--border-radius, var(--wp--custom--radius, 0.35rem));
}

.avpc-b2b-message-error,
.avpc-b2b-passkey-message.is-error {
	border-width: 2px;
}

.avpc-b2b-message-success {
	font-weight: 600;
	border-width: 2px;
}

.avpc-b2b-account-summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem 1.25rem;
	margin: 1rem 0;
	padding: 1rem;
	border: 1px solid currentColor;
	border-color: var(--avpc-b2b-border-soft);
	border-radius: var(--wp--custom--border-radius, var(--wp--custom--radius, 0.35rem));
}

.avpc-b2b-account-summary p {
	margin: 0;
}

.avpc-b2b-document-form,
.avpc-b2b-passkey {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid currentColor;
	border-top-color: var(--avpc-b2b-border-soft);
}

.avpc-b2b-passkey h3 {
	margin-top: 0;
}

.avpc-b2b-passkey-list {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.avpc-b2b-passkey-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid currentColor;
	border-bottom-color: var(--avpc-b2b-border-soft);
}

.avpc-b2b-link-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.avpc-b2b-passkey-message {
	margin-top: 0.75rem;
}

.avpc-b2b-login-modal {
	width: min(100% - 2rem, 32rem);
	max-height: min(90vh, 55rem);
	padding: 0;
	border: 0;
	border-radius: 0.75rem;
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
}

.avpc-b2b-login-modal::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

.avpc-b2b-login-modal .avpc-b2b-card {
	margin: 0;
}

.avpc-b2b-modal-close {
	position: absolute;
	top: 0.35rem;
	right: 0.5rem;
	z-index: 1;
}

.avpc-b2b-modal-close button {
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	cursor: pointer;
}

.avpc-b2b-status {
	display: inline-block;
	padding: 0.2rem 0.45rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.92em;
	font-weight: 600;
}

.avpc-b2b-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 720px) {
	.avpc-b2b-card,
	.avpc-b2b-login {
		width: calc(100% - 1rem);
		margin: 1rem auto;
		padding: 1rem;
	}

	.avpc-b2b-grid,
	.avpc-b2b-account-summary {
		grid-template-columns: 1fr;
	}

	.avpc-b2b-actions .avpc-b2b-button,
	.avpc-b2b-password-generator .avpc-b2b-button {
		width: 100%;
	}
}
