/*
 * Base estructural NOMÉS (espaiats, mides) — cap color propi: tot
 * hereta del tema (variables --wp--preset--color-- / --ff-fs-...),
 * perquè es pugui restilitzar sencer sense tocar aquest plugin.
 * Sobreescriu qualsevol d'aquestes regles des de style.css del tema.
 */
.ff-account {
	font-family: var( --wp--preset--font-family--sans );
	max-width: 32rem;
}

.ff-account-dashboard {
	max-width: 48rem;
}

/* Camp parany (anti-bots): mai visible ni accessible per teclat per a
   una persona real — només un bot que emplena tots els camps a cegues
   hi escriuria res. Cap CAPTCHA, cap fricció. */
.ff-account-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ff-account-form__link {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
	color: inherit;
}

.ff-account-form__notice {
	color: var( --ff-success, #2e7d32 );
}

.ff-account-dashboard__verify-notice {
	border: 1px solid currentColor;
	padding: 0.75em;
	margin-bottom: var( --ff-margin, 1rem );
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
}

.ff-account-dashboard__verify-notice button {
	font: inherit;
	background: none;
	border: 1px solid currentColor;
	padding: 0.3em 0.8em;
	cursor: pointer;
	color: inherit;
}

.ff-account-form p {
	margin: 0 0 0.75em;
}

.ff-account-form label {
	display: block;
	margin-bottom: 0.25em;
}

.ff-account-form input[type="text"],
.ff-account-form input[type="email"],
.ff-account-form input[type="password"],
.ff-account-form input[type="tel"] {
	width: 100%;
	font: inherit;
	padding: 0.5em;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	box-sizing: border-box;
}

.ff-account-form fieldset {
	border: none;
	padding: 0;
	margin: 0 0 0.75em;
}

.ff-account-form button,
.ff-account-dashboard__logout {
	font: inherit;
	padding: 0.6em 1.2em;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.ff-account-form__error {
	color: var( --ff-error, #b3261e );
}

.ff-account-dashboard__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var( --ff-margin, 1rem );
	margin-bottom: var( --ff-margin, 1rem );
}

.ff-account-section {
	margin-bottom: calc( var( --ff-margin, 1rem ) * 2 );
}

.ff-account-addresses,
.ff-account-orders {
	list-style: none;
	margin: 0 0 var( --ff-margin, 1rem );
	padding: 0;
}

.ff-account-addresses li,
.ff-account-orders li {
	border: 1px solid currentColor;
	padding: 0.75em;
	margin-bottom: 0.5em;
}
