/*
 * Area81 OptionFlow storefront styles.
 *
 * Inherits the theme's fonts, colours and input styling. The few values a
 * merchant may want to tune are custom properties; override them on
 * .a81of-form or :root.
 */
.a81of-form {
	--a81of-gap: 1rem;
	--a81of-gap-small: 0.375rem;
	--a81of-muted: color-mix(in srgb, currentColor 60%, transparent);
	--a81of-accent: currentColor;
	--a81of-required: #c62828;
	--a81of-border: color-mix(in srgb, currentColor 18%, transparent);
	--a81of-radius: 6px;
	display: block;
	margin: 0 0 var(--a81of-gap);
}

.a81of-set + .a81of-set {
	margin-top: var(--a81of-gap);
}

.a81of-field {
	display: block;
	margin: 0 0 var(--a81of-gap);
}

.a81of-field[hidden] {
	display: none;
}

.a81of-label {
	display: block;
	font-weight: 600;
	margin: 0 0 var(--a81of-gap-small);
}

.a81of-required {
	color: var(--a81of-required);
	margin-left: 0.15em;
}

.a81of-description {
	margin: 0 0 var(--a81of-gap-small);
	font-size: 0.9em;
	color: var(--a81of-muted);
}

.a81of-price {
	font-weight: 400;
	color: var(--a81of-muted);
	white-space: nowrap;
}

.a81of-control .a81of-input:not([type="radio"]):not([type="checkbox"]):not([type="color"]) {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.a81of-control input[type="color"] {
	width: 3rem;
	height: 2.25rem;
	padding: 0.125rem;
	border: 1px solid var(--a81of-border);
	border-radius: var(--a81of-radius);
	background: transparent;
	cursor: pointer;
}

.a81of-textarea {
	min-height: 5rem;
	resize: vertical;
}

.a81of-options {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--a81of-gap-small);
}

.a81of-option label {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin: 0;
	min-width: 0;
	cursor: pointer;
}

.a81of-option input {
	margin: 0;
	flex: 0 0 auto;
	position: relative;
	top: 0.1em;
}

/* Labels inherit the page text. Themes and builders style every <label>
   on a WooCommerce page (Breakdance gives it its form font, size, weight
   and colour), which would make the option rows differ from the text
   around them and from the sample in the settings. */
.a81of-form label.a81of-label,
.a81of-form .a81of-option label {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.a81of-form label.a81of-label {
	margin: 0 0 var(--a81of-gap-small);
}

.a81of-form .a81of-option label {
	font-weight: inherit;
	margin: 0;
}

/* The name takes the room that is left and wraps, even mid-word for a long
   SKU-like name; the price keeps its place at the end of the row. */
.a81of-option-label {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.a81of-option .a81of-price {
	flex: 0 0 auto;
	margin-left: auto;
	text-align: right;
}

.a81of-label,
.a81of-description,
.a81of-section-title,
.a81of-section-description,
.a81of-step-title,
.a81of-step-description {
	overflow-wrap: anywhere;
}

.a81of-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--a81of-gap);
	padding: 0.75rem 0;
	border-top: 1px solid var(--a81of-border);
	border-bottom: 1px solid var(--a81of-border);
	margin: 0 0 var(--a81of-gap);
}

.a81of-total[hidden] {
	display: none;
}

.a81of-total-label {
	font-weight: 600;
}

.a81of-total-value {
	font-size: 1.25em;
	font-weight: 700;
	color: var(--a81of-accent);
}

.a81of-option.is-disabled label {
	opacity: 0.55;
	cursor: not-allowed;
}

/* An option ruled out by its own conditions is not offered at all. */
.a81of-options .a81of-option[hidden] {
	display: none;
}

/* Validation --------------------------------------------------------------- */

/* The message under a field that failed, and the one line above the form. */
.a81of-error {
	margin: var(--a81of-gap-small) 0 0;
	font-size: 0.9em;
	color: var(--a81of-required);
}

.a81of-error[hidden],
.a81of-notice[hidden] {
	display: none;
}

.a81of-field.has-error > .a81of-label,
.a81of-field.has-error > .a81of-label .a81of-required {
	color: var(--a81of-required);
}

.a81of-field.has-error .a81of-control .a81of-input:not([type="radio"]):not([type="checkbox"]) {
	border-color: var(--a81of-required);
}

.a81of-field.has-error .a81of-option--buttons label,
.a81of-field.has-error .a81of-option--swatches label,
.a81of-field.has-error .a81of-option--cards label {
	border-color: color-mix(in srgb, var(--a81of-required) 55%, transparent);
}

.a81of-notice {
	margin: 0 0 var(--a81of-gap);
	padding: 0.6rem 0.9rem;
	border: 1px solid color-mix(in srgb, var(--a81of-required) 40%, transparent);
	border-left: 3px solid var(--a81of-required);
	border-radius: var(--a81of-radius);
	background: color-mix(in srgb, var(--a81of-required) 7%, transparent);
	font-size: 0.95em;
}

/* Quantity of a nested product ------------------------------------------- */

/* A row with a quantity control: the label takes the room, the control
   (- number +) sits at the end and shows only while the product is chosen. */
.a81of-option.has-qty {
	display: flex;
	align-items: center;
	gap: var(--a81of-gap-small);
}

.a81of-option.has-qty > label {
	flex: 1 1 auto;
	min-width: 0;
}

.a81of-option--buttons.has-qty,
.a81of-option--swatches.has-qty,
.a81of-option--cards.has-qty {
	flex-direction: column;
	align-items: stretch;
}

.a81of-qty {
	display: inline-flex;
	align-items: stretch;
	flex: 0 0 auto;
	align-self: center;
	border: 1px solid var(--a81of-border);
	border-radius: var(--a81of-radius);
	overflow: hidden;
}

.a81of-qty[hidden] {
	display: none;
}

.a81of-form .a81of-qty-btn {
	appearance: none;
	border: 0;
	border-radius: 0;
	margin: 0;
	padding: 0;
	width: 2em;
	min-height: 2em;
	background: color-mix(in srgb, currentColor 6%, transparent);
	color: inherit;
	font: inherit;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}

.a81of-form .a81of-qty-btn:hover:not(:disabled) {
	background: color-mix(in srgb, var(--a81of-accent) 14%, transparent);
}

.a81of-form .a81of-qty-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.a81of-form .a81of-control .a81of-qty-input {
	display: inline-block;
	width: 3.25em;
	max-width: none;
	min-height: 2em;
	margin: 0;
	padding: 0 0.25em;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: center;
	box-shadow: none;
	-moz-appearance: textfield;
}

.a81of-qty-input::-webkit-outer-spin-button,
.a81of-qty-input::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}

/* The dropdown's one control sits under the select. */
.a81of-select + .a81of-qty {
	margin-top: var(--a81of-gap-small);
}

/* Wizard ---------------------------------------------------------------- */

.a81of-progress {
	list-style: none;
	margin: 0 0 var(--a81of-gap);
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--a81of-gap-small) var(--a81of-gap);
	font-size: 0.9em;
	color: var(--a81of-muted);
}

.a81of-progress[hidden] {
	display: none;
}

/* Breadcrumbs: each step a numbered pill, a short line between them, the
   current one in the accent and the ones behind it filled in. */
.a81of-progress li {
	display: flex;
	align-items: center;
	gap: 0.4em;
}

.a81of-progress li + li::before {
	content: "";
	display: inline-block;
	width: 1.25em;
	height: 1px;
	background: var(--a81of-border);
	margin-right: 0.4em;
}

.a81of-progress li[hidden] {
	display: none;
}

.a81of-progress li.is-current {
	color: var(--a81of-accent);
	font-weight: 600;
}

.a81of-progress li.is-done {
	color: inherit;
}

.a81of-progress-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6em;
	height: 1.6em;
	border-radius: 50%;
	border: 1px solid currentColor;
	font-size: 0.85em;
	line-height: 1;
}

.a81of-progress li.is-done .a81of-progress-number {
	background: var(--a81of-accent);
	border-color: var(--a81of-accent);
	color: #fff;
}

.a81of-progress li.is-current .a81of-progress-number {
	border-width: 2px;
}

.a81of-step {
	border: 0;
	margin: 0 0 var(--a81of-gap);
	padding: 0;
	min-width: 0;
}

.a81of-step[hidden] {
	display: none;
}

.a81of-step-title {
	font-weight: 600;
	font-size: 1.1em;
	margin: 0 0 var(--a81of-gap-small);
	padding: 0;
}

.a81of-step-description {
	margin: 0 0 var(--a81of-gap);
	color: var(--a81of-muted);
}

.a81of-step-nav {
	display: flex;
	justify-content: space-between;
	gap: var(--a81of-gap);
	margin: 0 0 var(--a81of-gap);
}

.a81of-step-nav[hidden] {
	display: none;
}

.a81of-btn {
	font: inherit;
	padding: 0.6em 1.2em;
	border: 1px solid var(--a81of-border);
	border-radius: var(--a81of-radius);
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.a81of-btn--next {
	margin-left: auto;
	border-color: var(--a81of-accent);
	background: var(--a81of-accent);
	color: #fff;
}

.a81of-btn[hidden] {
	display: none;
}

.a81of-btn:disabled {
	opacity: 0.5;
	cursor: default;
}

/* The add-to-cart button waits for the last step. */
form.cart.a81of-wizard:not(.is-last-step) .single_add_to_cart_button,
form.cart.a81of-wizard:not(.is-last-step) .quantity {
	display: none !important;
}

@media (max-width: 480px) {
	.a81of-total {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--a81of-gap-small);
	}
}

/* Layout ---------------------------------------------------------------- */

/* Fields flow in rows. Widths come from the builder (a81of-w-*); anything
   without one takes the full row, as do the wizard's progress, steps and
   navigation. Under 600 px every field is full width unless the builder
   asked for half (a81of-wm-half). */
.a81of-set,
.a81of-step {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	column-gap: var(--a81of-gap);
}

.a81of-set > *,
.a81of-step > * {
	flex: 0 0 100%;
	min-width: 0;
	box-sizing: border-box;
}

.a81of-step {
	width: 100%;
}

.a81of-w-half {
	flex-basis: calc(50% - var(--a81of-gap) / 2);
}

.a81of-w-third {
	flex-basis: calc(33.3333% - var(--a81of-gap) * 2 / 3);
}

.a81of-w-two-thirds {
	flex-basis: calc(66.6667% - var(--a81of-gap) / 3);
}

.a81of-w-quarter {
	flex-basis: calc(25% - var(--a81of-gap) * 3 / 4);
}

/* Options per row (a81of-cols-N); the phone value is a81of-colsm-N. */
.a81of-options[class*="a81of-cols-"] {
	display: grid;
	column-gap: var(--a81of-gap);
	row-gap: var(--a81of-gap-small);
}

.a81of-options.a81of-cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.a81of-options.a81of-cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.a81of-options.a81of-cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 599px) {
	.a81of-w-half,
	.a81of-w-third,
	.a81of-w-two-thirds,
	.a81of-w-quarter {
		flex-basis: 100%;
	}

	.a81of-wm-half {
		flex-basis: calc(50% - var(--a81of-gap) / 2);
	}

	.a81of-options.a81of-cols-2,
	.a81of-options.a81of-cols-3,
	.a81of-options.a81of-cols-4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.a81of-options.a81of-colsm-2 {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.a81of-options.a81of-colsm-3 {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.a81of-options.a81of-colsm-4 {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Sections ---------------------------------------------------------------- */

/* A section groups the fields after it. Its own fields area is a flex row
   like the set (field widths apply) or, with columns, a grid where every
   field takes one cell. */
.a81of-section {
	flex: 0 0 100%;
	min-width: 0;
	margin: 0 0 var(--a81of-gap);
}

.a81of-section[hidden] {
	display: none;
}

.a81of-section--card {
	padding: var(--a81of-gap);
	border-radius: var(--a81of-radius);
	background: color-mix(in srgb, currentColor 4%, transparent);
}

.a81of-section--bordered {
	padding: var(--a81of-gap);
	border: 1px solid var(--a81of-border);
	border-radius: var(--a81of-radius);
}

.a81of-section--accent {
	padding: 0 0 0 var(--a81of-gap);
	border-left: 3px solid var(--a81of-accent);
}

.a81of-section-head {
	margin: 0 0 var(--a81of-gap);
}

.a81of-section-title {
	margin: 0;
	font-size: 1.1em;
	font-weight: 600;
	line-height: 1.3;
}

.a81of-section-description {
	margin: 0.25em 0 0;
	font-size: 0.95em;
	color: var(--a81of-muted);
}

.a81of-section-fields {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	column-gap: var(--a81of-gap);
}

.a81of-section-fields > * {
	flex: 0 0 100%;
	min-width: 0;
	box-sizing: border-box;
}

.a81of-section-fields[class*="a81of-grid-"] {
	display: grid;
	column-gap: var(--a81of-gap);
}

.a81of-section-fields[class*="a81of-grid-"] > .a81of-field {
	flex: none;
}

.a81of-section-fields.a81of-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.a81of-section-fields.a81of-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.a81of-section-fields.a81of-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Buttons, swatches and cards ---------------------------------------------- */

.a81of-options--buttons,
.a81of-options--swatches,
.a81of-options--cards {
	display: flex;
	flex-wrap: wrap;
	gap: var(--a81of-gap-small);
}

.a81of-options--buttons[class*="a81of-cols-"],
.a81of-options--swatches[class*="a81of-cols-"],
.a81of-options--cards[class*="a81of-cols-"] {
	display: grid;
}

.a81of-option--buttons label,
.a81of-option--swatches label,
.a81of-option--cards label {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	padding: 0.6rem 0.9rem;
	border: 1px solid var(--a81of-border);
	border-radius: var(--a81of-radius);
	background: transparent;
	cursor: pointer;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.a81of-option--buttons label:hover,
.a81of-option--swatches label:hover,
.a81of-option--cards label:hover {
	border-color: color-mix(in srgb, currentColor 40%, transparent);
}

/* The real input stays for the runtime and the post, out of sight. */
.a81of-option--buttons input,
.a81of-option--swatches input,
.a81of-option--cards input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.a81of-option--buttons label:has(input:checked),
.a81of-option--swatches label:has(input:checked),
.a81of-option--cards label:has(input:checked),
.a81of-option.is-selected label {
	border-color: var(--a81of-accent);
	box-shadow: inset 0 0 0 1px var(--a81of-accent);
}

.a81of-option--buttons label:has(input:focus-visible),
.a81of-option--swatches label:has(input:focus-visible),
.a81of-option--cards label:has(input:focus-visible) {
	outline: 2px solid var(--a81of-accent);
	outline-offset: 2px;
}

.a81of-option-body {
	display: flex;
	flex-direction: column;
	gap: 0.1em;
	min-width: 0;
}

.a81of-option--buttons .a81of-option-body {
	flex-direction: row;
	align-items: baseline;
	gap: 0.4em;
}

.a81of-option--buttons .a81of-option-label,
.a81of-option--swatches .a81of-option-label,
.a81of-option--cards .a81of-option-label {
	flex: 1 1 auto;
	min-width: 0;
}

.a81of-option--cards .a81of-option-body .a81of-price {
	margin-left: 0;
	text-align: inherit;
}

.a81of-swatch {
	flex: 0 0 auto;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.12);
	box-shadow: inset 0 0 0 2px #fff;
}

.a81of-option-media {
	flex: 0 0 auto;
	display: inline-flex;
}

.a81of-option-media img,
.a81of-option-img {
	display: block;
	width: 3rem;
	height: 3rem;
	object-fit: cover;
	border-radius: calc(var(--a81of-radius) / 2);
}

/* List with images: the native input, a thumbnail, then the name. */
.a81of-options--images {
	display: flex;
	flex-direction: column;
	gap: var(--a81of-gap-small);
}

.a81of-options--images[class*="a81of-cols-"] {
	display: grid;
	flex-direction: row;
}

.a81of-options--images .a81of-option label {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
}

.a81of-options--images .a81of-option-media img,
.a81of-options--images .a81of-option-img {
	width: 3.5rem;
	height: 3.5rem;
}

.a81of-form--option-style-boxed .a81of-options--images .a81of-option label {
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--a81of-border);
	border-radius: var(--a81of-radius);
}

.a81of-form--option-style-boxed .a81of-options--images .a81of-option label:has(input:checked) {
	border-color: var(--a81of-accent);
	box-shadow: inset 0 0 0 1px var(--a81of-accent);
}

/* Cards: picture on top, text under, the whole tile clickable. */
.a81of-option--cards label {
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
	padding: 0.75rem;
	height: 100%;
	box-sizing: border-box;
}

.a81of-option--cards .a81of-option-media {
	display: block;
}

.a81of-option--cards .a81of-option-media img,
.a81of-option--cards .a81of-option-img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
}

.a81of-option--cards .a81of-option-label {
	font-weight: 600;
}

.a81of-option--cards .a81of-price {
	white-space: normal;
}

/* Boxed option style (global setting) -------------------------------------- */

.a81of-form--option-style-boxed .a81of-options:not([class*="a81of-options--"]) .a81of-option label {
	padding: 0.6rem 0.9rem;
	border: 1px solid var(--a81of-border);
	border-radius: var(--a81of-radius);
	transition: border-color 0.12s ease;
}

.a81of-form--option-style-boxed .a81of-options:not([class*="a81of-options--"]) .a81of-option label:has(input:checked) {
	border-color: var(--a81of-accent);
	box-shadow: inset 0 0 0 1px var(--a81of-accent);
}

/* Form background (global setting, Theme design) --------------------------- */

/* The Theme design on a white card: the one thing it adds to the page. */
.a81of-form--surface-card {
	padding: var(--a81of-gap);
	background: var(--a81of-surface, #fff);
	border: 1px solid var(--a81of-border);
	border-radius: var(--a81of-radius);
	box-sizing: border-box;
}

.a81of-form--surface-card > .a81of-set:last-child > .a81of-field:last-child,
.a81of-form--surface-card > .a81of-total:last-child {
	margin-bottom: 0;
}

/* Breakdance Builder -------------------------------------------------------- */

/* With Breakdance active (Integrations\Breakdance adds the class) the form
   follows the site's Global Styles: Breakdance prints them as --bde-*
   custom properties on :root on every page, so a change in its Global
   Styles panel reaches the form at once. Every mapping has a fallback, and
   the merchant's own accent, radius and design preset still win: inline
   variables beat these, and the presets come later in this file. */
.a81of-form--breakdance {
	--a81of-accent: var(--bde-woo-base-primary-color, var(--bde-brand-primary-color, currentColor));
	--a81of-border: var(--bde-form-input-border-color, var(--bde-woo-base-border-color, color-mix(in srgb, currentColor 18%, transparent)));
	--a81of-radius: var(--bde-form-input-border-radius, 6px);
	--a81of-required: var(--bde-form-label-required-color, #c62828);
	--a81of-gap: var(--bde-form-gap, 1rem);
	--a81of-gap-small: var(--bde-form-after-label, 0.375rem);
	--a81of-muted: var(--bde-form-input-placeholder-color, color-mix(in srgb, currentColor 60%, transparent));
	--a81of-surface: var(--bde-woo-wrappers__background-color, var(--bde-form-input-background-color, #fff));
}

/* Fonts and text colour are inherited from the page, never read from
   --bde-body-font-family or --bde-heading-font-family: a site that styles
   its body and headings with a typography preset leaves those variables at
   Breakdance's defaults, so reading them would swap the site's font for
   the system stack. */
.a81of-form--breakdance .a81of-label,
.a81of-form--breakdance .a81of-total-label {
	color: var(--bde-form-label-color, inherit);
	font-weight: var(--bde-form-label-font-weight, 600);
}

.a81of-form--breakdance .a81of-section-title,
.a81of-form--breakdance .a81of-step-title {
	color: var(--bde-headings-color, inherit);
}

.a81of-form--breakdance .a81of-control .a81of-input:not([type="radio"]):not([type="checkbox"]):not([type="color"]):not([type="file"]) {
	font: inherit;
	color: var(--bde-form-text-color, inherit);
	background: var(--bde-form-input-background-color, transparent);
	border: var(--bde-form-input-border-width, 1px) solid var(--bde-form-input-border-color, var(--a81of-border));
	border-radius: var(--bde-form-input-border-radius, var(--a81of-radius));
	padding: var(--bde-form-input-padding-top, 0.6em) var(--bde-form-input-padding-right, 0.9em) var(--bde-form-input-padding-bottom, 0.6em) var(--bde-form-input-padding-left, 0.9em);
	box-shadow: var(--bde-form-input-input-shadow, none);
	transition: border-color var(--bde-transition-duration, 150ms) ease, box-shadow var(--bde-transition-duration, 150ms) ease;
}

.a81of-form--breakdance .a81of-control .a81of-input::placeholder {
	color: var(--bde-form-input-placeholder-color, inherit);
	opacity: 1;
}

.a81of-form--breakdance .a81of-control .a81of-input:not([type="radio"]):not([type="checkbox"]):not([type="color"]):not([type="file"]):focus {
	outline: none;
	background: var(--bde-form-input-focused-background-color, var(--bde-form-input-background-color, transparent));
	border-color: var(--bde-form-input-focused-border-color, var(--a81of-accent));
	box-shadow: var(--bde-form-input-focused-shadow, none);
}

/* Breakdance draws its own checkbox and radio (appearance: none) and fills
   the checked one with currentcolor, so the accent goes in as the colour. */
.a81of-form--breakdance .a81of-option input[type="radio"],
.a81of-form--breakdance .a81of-option input[type="checkbox"] {
	color: var(--a81of-accent);
	accent-color: var(--a81of-accent);
}

.a81of-form--breakdance .a81of-btn {
	font-weight: var(--bde-button-font-weight, inherit);
	padding: var(--bde-button-padding-sm, 0.6em 1.2em);
	border-width: var(--bde-button-border-width, 1px);
	border-radius: var(--bde-button-border-radius, var(--a81of-radius));
	transition: color var(--bde-transition-duration, 150ms) ease, background-color var(--bde-transition-duration, 150ms) ease, border-color var(--bde-transition-duration, 150ms) ease;
}

.a81of-form--breakdance .a81of-btn--back {
	color: var(--bde-button-secondary-text-color, inherit);
	background: var(--bde-button-secondary-background-color, transparent);
	border-color: var(--bde-button-secondary-border-color, var(--a81of-border));
}

.a81of-form--breakdance .a81of-btn--back:hover {
	color: var(--bde-button-secondary-text-color-hover, inherit);
	background: var(--bde-button-secondary-background-color-hover, transparent);
	border-color: var(--bde-button-secondary-border-color-hover, var(--a81of-border));
}

.a81of-form--breakdance .a81of-btn--next {
	color: var(--bde-button-primary-text-color, #fff);
	background: var(--bde-button-primary-background-color, var(--a81of-accent));
	border-color: var(--bde-button-primary-border-color, var(--a81of-accent));
}

.a81of-form--breakdance .a81of-btn--next:hover {
	color: var(--bde-button-primary-text-color-hover, #fff);
	background: var(--bde-button-primary-background-color-hover, var(--a81of-accent));
	border-color: var(--bde-button-primary-border-color-hover, var(--a81of-accent));
}

/* Design presets (global setting, or per set) ------------------------------ */

/* Minimal: airy, small uppercase labels, underlined inputs, thin dividers. */
.a81of-form--preset-minimal {
	--a81of-radius: 0;
	--a81of-border: color-mix(in srgb, currentColor 22%, transparent);
}

.a81of-form--preset-minimal .a81of-label,
.a81of-form--preset-minimal .a81of-section-title,
.a81of-form--preset-minimal .a81of-total-label {
	font-size: 0.78em;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.a81of-form--preset-minimal .a81of-control .a81of-input:not([type="radio"]):not([type="checkbox"]):not([type="color"]):not([type="file"]) {
	border-width: 0 0 1px;
	border-radius: 0;
	padding-left: 0;
	padding-right: 0;
	background: transparent;
	box-shadow: none;
}

.a81of-form--preset-minimal .a81of-control .a81of-input:focus-visible {
	outline: none;
	border-bottom-color: var(--a81of-accent);
	box-shadow: 0 1px 0 var(--a81of-accent);
}

.a81of-form--preset-minimal .a81of-field + .a81of-field {
	padding-top: var(--a81of-gap);
	border-top: 1px solid var(--a81of-border);
}

.a81of-form--preset-minimal .a81of-section--card {
	background: transparent;
	padding: 0;
}

.a81of-form--preset-minimal .a81of-total {
	border-bottom: 0;
}

/* Cards: the whole form in a card, boxed options, soft shadow. */
.a81of-form--preset-cards {
	--a81of-radius: 12px;
	padding: calc(var(--a81of-gap) * 1.25);
	border: 1px solid var(--a81of-border);
	border-radius: var(--a81of-radius);
	background: color-mix(in srgb, currentColor 3%, transparent);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -16px rgba(0, 0, 0, 0.2);
}

.a81of-form--preset-cards .a81of-options:not([class*="a81of-options--"]) .a81of-option label,
.a81of-form--preset-cards .a81of-options--images .a81of-option label {
	padding: 0.6rem 0.9rem;
	border: 1px solid var(--a81of-border);
	border-radius: calc(var(--a81of-radius) * 0.66);
	background: #fff;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.a81of-form--preset-cards .a81of-options:not([class*="a81of-options--"]) .a81of-option label:has(input:checked),
.a81of-form--preset-cards .a81of-options--images .a81of-option label:has(input:checked) {
	border-color: var(--a81of-accent);
	box-shadow: inset 0 0 0 1px var(--a81of-accent);
}

.a81of-form--preset-cards .a81of-total {
	margin: var(--a81of-gap) calc(var(--a81of-gap) * -1.25) calc(var(--a81of-gap) * -1.25);
	padding: var(--a81of-gap) calc(var(--a81of-gap) * 1.25);
	border-bottom: 0;
	border-radius: 0 0 var(--a81of-radius) var(--a81of-radius);
	background: color-mix(in srgb, var(--a81of-accent) 7%, transparent);
}

/* Outlined: square, firm 2px lines, an accent bar down the left. */
.a81of-form--preset-outlined {
	--a81of-radius: 2px;
	--a81of-border: color-mix(in srgb, currentColor 35%, transparent);
	padding: 0 0 0 var(--a81of-gap);
	border-left: 3px solid var(--a81of-accent);
}

.a81of-form--preset-outlined .a81of-label,
.a81of-form--preset-outlined .a81of-section-title {
	font-size: 0.85em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.a81of-form--preset-outlined .a81of-control .a81of-input:not([type="radio"]):not([type="checkbox"]):not([type="file"]) {
	border: 2px solid var(--a81of-border);
	border-radius: var(--a81of-radius);
	background: transparent;
}

.a81of-form--preset-outlined .a81of-options:not([class*="a81of-options--"]) .a81of-option label,
.a81of-form--preset-outlined .a81of-options--images .a81of-option label {
	padding: 0.5rem 0.75rem;
	border: 2px solid var(--a81of-border);
	border-radius: var(--a81of-radius);
}

.a81of-form--preset-outlined .a81of-options:not([class*="a81of-options--"]) .a81of-option label:has(input:checked),
.a81of-form--preset-outlined .a81of-options--images .a81of-option label:has(input:checked),
.a81of-form--preset-outlined .a81of-option--buttons label:has(input:checked),
.a81of-form--preset-outlined .a81of-option--cards label:has(input:checked) {
	border-color: var(--a81of-accent);
	box-shadow: none;
}

.a81of-form--preset-outlined .a81of-total {
	border-width: 2px;
}

/* Soft: large radius, tinted fills, selections fill with the accent. */
.a81of-form--preset-soft {
	--a81of-radius: 14px;
	--a81of-border: transparent;
	--a81of-fill: color-mix(in srgb, currentColor 6%, transparent);
}

.a81of-form--preset-soft .a81of-control .a81of-input:not([type="radio"]):not([type="checkbox"]):not([type="file"]) {
	border: 1px solid transparent;
	border-radius: var(--a81of-radius);
	background: var(--a81of-fill);
	padding: 0.7rem 1rem;
}

.a81of-form--preset-soft .a81of-control .a81of-input:focus-visible {
	outline: none;
	border-color: var(--a81of-accent);
	background: color-mix(in srgb, var(--a81of-accent) 6%, transparent);
}

.a81of-form--preset-soft .a81of-options:not([class*="a81of-options--"]) .a81of-option label,
.a81of-form--preset-soft .a81of-options--images .a81of-option label,
.a81of-form--preset-soft .a81of-option--buttons label,
.a81of-form--preset-soft .a81of-option--swatches label,
.a81of-form--preset-soft .a81of-option--cards label {
	padding: 0.65rem 1rem;
	border: 1px solid transparent;
	border-radius: var(--a81of-radius);
	background: var(--a81of-fill);
	transition: background 0.12s ease, border-color 0.12s ease;
}

.a81of-form--preset-soft .a81of-options:not([class*="a81of-options--"]) .a81of-option label:has(input:checked),
.a81of-form--preset-soft .a81of-options--images .a81of-option label:has(input:checked),
.a81of-form--preset-soft .a81of-option--buttons label:has(input:checked),
.a81of-form--preset-soft .a81of-option--swatches label:has(input:checked),
.a81of-form--preset-soft .a81of-option--cards label:has(input:checked) {
	border-color: transparent;
	background: color-mix(in srgb, var(--a81of-accent) 14%, transparent);
	box-shadow: none;
}

.a81of-form--preset-soft .a81of-section--card,
.a81of-form--preset-soft .a81of-section--bordered {
	border: 0;
	border-radius: var(--a81of-radius);
	background: var(--a81of-fill);
}

.a81of-form--preset-soft .a81of-total {
	padding: 0.85rem 1rem;
	border: 0;
	border-radius: var(--a81of-radius);
	background: color-mix(in srgb, var(--a81of-accent) 8%, transparent);
}

/* Density, labels, required mark (global settings) ------------------------- */

.a81of-form--density-compact {
	--a81of-gap: 0.625rem;
	--a81of-gap-small: 0.25rem;
}

.a81of-form--density-relaxed {
	--a81of-gap: 1.5rem;
	--a81of-gap-small: 0.5rem;
}

.a81of-form--label-weight-normal .a81of-label {
	font-weight: 400;
}

.a81of-form--required-mark-none .a81of-required {
	display: none;
}

/* Custom style mode: the accent reaches focus rings and the primary button. */
.a81of-form--custom .a81of-input:focus-visible {
	outline: 2px solid var(--a81of-accent);
	outline-offset: 1px;
}

.a81of-form--custom .a81of-btn--next {
	border-color: var(--a81of-accent);
	background: var(--a81of-accent);
}

@media (max-width: 599px) {
	.a81of-section-fields.a81of-grid-2,
	.a81of-section-fields.a81of-grid-3,
	.a81of-section-fields.a81of-grid-4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.a81of-section-fields.a81of-gridm-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.a81of-section-fields.a81of-gridm-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.a81of-section--card,
	.a81of-section--bordered {
		padding: calc(var(--a81of-gap) * 0.75);
	}
}

/* File fields ------------------------------------------------------------ */

.a81of-file {
	display: block;
	max-width: 100%;
}

.a81of-file-current {
	display: inline-block;
	margin: 0 0 var(--a81of-gap-small);
	padding: 0.2em 0.6em;
	border: 1px solid var(--a81of-border);
	border-radius: var(--a81of-radius);
	font-size: 0.9em;
}

.a81of-file-hint {
	display: block;
	margin-top: var(--a81of-gap-small);
	font-size: 0.85em;
	color: var(--a81of-muted);
}
