/*
 * HFFA Client Account Information Form.
 *
 * Every selector is scoped under .hffa-caf / .hffa-caf-canvas / .hffa-caf-page so a
 * theme's styles cannot leak in and ours cannot leak out. Inputs are reset with
 * !important inside the scope for the same reason. Colours follow the Fillout
 * "Light" theme as customised for HFFA: dark green canvas, gold primary.
 */

:root {
	--hffa-bg: #323f36;
	--hffa-primary: #8c6520;
	--hffa-primary-dark: #74531a;
	--hffa-primary-tint: rgba(140, 101, 32, 0.08);
	--hffa-question: #374151;
	--hffa-answer: #4b5563;
	--hffa-muted: #6b7280;
	--hffa-border: #d1d5db;
	--hffa-border-strong: #9ca3af;
	--hffa-card: #ffffff;
	--hffa-error: #b42318;
	--hffa-error-bg: #fef3f2;
	--hffa-radius: 8px;
	--hffa-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ----- Standalone canvas (plugin's own page template) ----- */
body.hffa-caf-page {
	margin: 0;
	background: var(--hffa-bg);
	min-height: 100vh;
	font-family: var(--hffa-font);
}
.hffa-caf-canvas {
	min-height: 100vh;
	box-sizing: border-box;
	padding: 40px 16px 64px;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	background: var(--hffa-bg);
}
@media (max-width: 640px) {
	.hffa-caf-canvas { padding: 12px 8px 40px; }
}

/* ----- Card ----- */
.hffa-caf {
	position: relative;
	width: 100%;
	max-width: 660px;
	margin: 0 auto;
	font-family: var(--hffa-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--hffa-answer);
	-webkit-font-smoothing: antialiased;
}
.hffa-caf *,
.hffa-caf *::before,
.hffa-caf *::after { box-sizing: border-box; }

.hffa-caf__form {
	position: relative;
	background: var(--hffa-card);
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	margin: 0;
}
.hffa-caf__step,
.hffa-caf__thanks { padding: 36px 40px 40px; }
@media (max-width: 640px) {
	.hffa-caf__step,
	.hffa-caf__thanks { padding: 26px 20px 30px; }
}

.hffa-caf__progress {
	height: 4px;
	background: #e5e7eb;
}
.hffa-caf__progress-bar {
	display: block;
	height: 100%;
	background: var(--hffa-primary);
	transition: width 0.35s ease;
}

.hffa-caf__logo { text-align: center; margin: 0 0 18px; }
.hffa-caf__logo img {
	display: inline-block;
	width: auto;
	max-width: 100%;
	height: 84px;
	max-height: 84px;
}
@media (max-width: 480px) {
	.hffa-caf__logo img { height: 60px; max-height: 60px; }
}

.hffa-caf .hffa-caf__heading {
	margin: 0;
	padding: 0;
	text-align: center;
	font-family: var(--hffa-font);
	font-size: 26px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--hffa-question);
	letter-spacing: -0.01em;
}
.hffa-caf__step-label {
	margin: 4px 0 26px;
	text-align: center;
	font-size: 13px;
	color: var(--hffa-muted);
}

/* ----- Layout grid: full-width by default, half fields pair up ----- */
.hffa-caf__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 16px;
	row-gap: 20px;
}
.hffa-caf__grid > * { grid-column: 1 / -1; min-width: 0; }
.hffa-caf__grid > .hffa-caf__field--half { grid-column: auto / span 1; }
@media (max-width: 520px) {
	.hffa-caf__grid > .hffa-caf__field--half { grid-column: 1 / -1; }
}

.hffa-caf__field {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.hffa-caf__field[hidden],
.hffa-caf__section[hidden],
.hffa-caf__note[hidden],
.hffa-caf__step[hidden],
.hffa-caf__thanks[hidden],
.hffa-caf__error[hidden],
.hffa-caf__form-error[hidden],
.hffa-caf__other[hidden],
.hffa-caf__confetti[hidden] { display: none !important; }

.hffa-caf .hffa-caf__label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	font-family: var(--hffa-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--hffa-question);
	float: none;
	width: auto;
}
.hffa-caf__req { color: var(--hffa-error); }
.hffa-caf__caption {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--hffa-muted);
}
.hffa-caf .hffa-caf__subheading {
	margin: 4px 0 -6px;
	padding: 0;
	font-family: var(--hffa-font);
	font-size: 18px;
	font-weight: 600;
	color: var(--hffa-question);
	line-height: 1.3;
}
.hffa-caf .hffa-caf__divider {
	margin: 4px 0;
	border: 0;
	border-top: 1px solid #e5e7eb;
	height: 0;
	background: none;
}

/* ----- Inputs ----- */
.hffa-caf .hffa-caf__input {
	display: block;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 14px;
	font-family: var(--hffa-font) !important;
	font-size: 16px !important;
	line-height: 1.4;
	font-weight: 400;
	color: var(--hffa-answer) !important;
	background: #fff !important;
	border: 1px solid var(--hffa-border) !important;
	border-radius: var(--hffa-radius) !important;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hffa-caf .hffa-caf__input::placeholder { color: #9ca3af; opacity: 1; }
.hffa-caf .hffa-caf__input:hover { border-color: var(--hffa-border-strong) !important; }
.hffa-caf .hffa-caf__input:focus {
	border-color: var(--hffa-primary) !important;
	box-shadow: 0 0 0 3px rgba(140, 101, 32, 0.2) !important;
}
.hffa-caf .hffa-caf__input[readonly] {
	background: #f9fafb !important;
	color: var(--hffa-question) !important;
	font-weight: 600;
}
.hffa-caf .hffa-caf__input[type="date"] { min-height: 46px; }
.hffa-caf .hffa-caf__input[type="number"] { -moz-appearance: textfield; }
.hffa-caf .hffa-caf__input[type="number"]::-webkit-outer-spin-button,
.hffa-caf .hffa-caf__input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hffa-caf__field--error .hffa-caf__input,
.hffa-caf .hffa-caf__input[aria-invalid="true"] {
	border-color: var(--hffa-error) !important;
	box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12) !important;
}

.hffa-caf__input-wrap { position: relative; }
.hffa-caf__affix {
	position: absolute;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	padding: 0 14px;
	font-size: 15px;
	color: var(--hffa-muted);
	pointer-events: none;
	white-space: nowrap;
}
.hffa-caf__input-wrap--prefix .hffa-caf__affix { left: 0; border-right: 1px solid #e5e7eb; }
.hffa-caf__input-wrap--prefix .hffa-caf__input { padding-left: 46px; }
.hffa-caf__input-wrap--prefix .hffa-caf__affix--country + .hffa-caf__input { padding-left: 82px; }
.hffa-caf__input-wrap--suffix .hffa-caf__affix { right: 0; }
.hffa-caf__input-wrap--suffix .hffa-caf__input { padding-right: 40px; }

.hffa-caf__select-wrap { position: relative; }
.hffa-caf__select-wrap::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid var(--hffa-muted);
	border-bottom: 2px solid var(--hffa-muted);
	transform: rotate(45deg);
	pointer-events: none;
}
.hffa-caf .hffa-caf__select { padding-right: 40px; cursor: pointer; }
.hffa-caf .hffa-caf__other { margin-top: 8px; }

/* ----- Bubble radios (Fillout "bubble" theme, two columns) ----- */
.hffa-caf__bubbles {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hffa-caf__bubbles--many { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.hffa-caf__bubble {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}
.hffa-caf__bubble input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}
.hffa-caf__bubble span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 14px;
	font-size: 15px;
	font-weight: 500;
	color: var(--hffa-question);
	background: #fff;
	border: 1px solid var(--hffa-border);
	border-radius: var(--hffa-radius);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	text-align: center;
}
.hffa-caf__bubble:hover span { border-color: var(--hffa-primary); }
.hffa-caf__bubble input:checked + span {
	border-color: var(--hffa-primary);
	background: var(--hffa-primary-tint);
	color: var(--hffa-primary-dark);
	box-shadow: inset 0 0 0 1px var(--hffa-primary);
}
.hffa-caf__bubble input:focus-visible + span { box-shadow: 0 0 0 3px rgba(140, 101, 32, 0.25); }

/* ----- Switch ----- */
.hffa-caf__switch {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	cursor: pointer;
	user-select: none;
}
.hffa-caf__switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.hffa-caf__switch-track {
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 26px;
	border-radius: 13px;
	background: #d1d5db;
	transition: background 0.2s ease;
}
.hffa-caf__switch-thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
}
.hffa-caf__switch input:checked ~ .hffa-caf__switch-track { background: var(--hffa-primary); }
.hffa-caf__switch input:checked ~ .hffa-caf__switch-track .hffa-caf__switch-thumb { transform: translateX(18px); }
.hffa-caf__switch input:focus-visible ~ .hffa-caf__switch-track { box-shadow: 0 0 0 3px rgba(140, 101, 32, 0.25); }
.hffa-caf .hffa-caf__label--inline { margin: 0; }

/* ----- Beneficiary sections ----- */
.hffa-caf__section { margin-top: 6px; }
.hffa-caf .hffa-caf__section-toggle {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 12px 16px;
	font-family: var(--hffa-font);
	font-size: 16px;
	font-weight: 600;
	color: var(--hffa-primary-dark);
	background: var(--hffa-primary-tint);
	border: 1px solid rgba(140, 101, 32, 0.25);
	border-radius: var(--hffa-radius);
	cursor: pointer;
	text-align: left;
	line-height: 1.3;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}
.hffa-caf .hffa-caf__section-toggle svg { transition: transform 0.2s ease; flex: 0 0 auto; }
.hffa-caf .hffa-caf__section-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.hffa-caf__field--grouped { padding-left: 16px; border-left: 2px solid rgba(140, 101, 32, 0.25); }
.hffa-caf__field--collapsed { display: none !important; }

.hffa-caf__note {
	margin: 0;
	padding: 12px 16px;
	font-size: 15px;
	color: var(--hffa-question);
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: var(--hffa-radius);
}
.hffa-caf__note strong { color: var(--hffa-primary-dark); }
.hffa-caf__note--bad { border-color: var(--hffa-error); background: var(--hffa-error-bg); }
.hffa-caf__note--bad strong { color: var(--hffa-error); }

/* ----- Slider ----- */
.hffa-caf__slider {
	display: flex;
	align-items: center;
	gap: 14px;
}
.hffa-caf__slider input[type="range"] {
	flex: 1 1 auto;
	width: 100%;
	height: 6px;
	margin: 0;
	padding: 0;
	background: #e5e7eb;
	border-radius: 3px;
	-webkit-appearance: none;
	appearance: none;
	accent-color: var(--hffa-primary);
	border: 0;
	outline: none;
}
.hffa-caf__slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--hffa-primary);
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	cursor: pointer;
}
.hffa-caf__slider input[type="range"]::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--hffa-primary);
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	cursor: pointer;
}
.hffa-caf__slider input[type="range"]::-moz-range-track { height: 6px; background: #e5e7eb; border-radius: 3px; }
.hffa-caf__slider-value {
	flex: 0 0 58px;
	text-align: right;
	font-weight: 600;
	color: var(--hffa-primary-dark);
	font-variant-numeric: tabular-nums;
}

/* ----- Errors ----- */
.hffa-caf__error,
.hffa-caf__form-error {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--hffa-error);
}
.hffa-caf__form-error {
	margin-top: 16px;
	padding: 10px 14px;
	background: var(--hffa-error-bg);
	border: 1px solid rgba(180, 35, 24, 0.3);
	border-radius: var(--hffa-radius);
	font-size: 14px;
}

/* ----- Footer bits ----- */
.hffa-caf__turnstile { margin: 24px 0 0; display: flex; justify-content: center; }
.hffa-caf__ssl { margin: 26px 0 22px; text-align: center; }
.hffa-caf__ssl img { height: 30px; width: auto; max-width: 100%; display: inline-block; }

.hffa-caf__nav {
	display: flex;
	align-items: stretch;
	gap: 12px;
}
.hffa-caf__nav--full .hffa-caf__btn--primary { flex: 1 1 auto; }
.hffa-caf__nav--left { justify-content: flex-start; }

.hffa-caf .hffa-caf__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	margin: 0;
	padding: 12px 28px;
	font-family: var(--hffa-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	border-radius: var(--hffa-radius);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
	box-shadow: none;
	position: relative;
}
.hffa-caf .hffa-caf__btn:active { transform: translateY(1px); }
.hffa-caf .hffa-caf__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(140, 101, 32, 0.3); }
.hffa-caf .hffa-caf__btn--primary {
	background: var(--hffa-primary);
	color: #fff;
}
.hffa-caf .hffa-caf__btn--primary:hover { background: var(--hffa-primary-dark); color: #fff; }
.hffa-caf .hffa-caf__btn--primary[disabled] { opacity: 0.7; cursor: progress; }
.hffa-caf .hffa-caf__btn--back {
	flex: 0 0 auto;
	width: 48px;
	padding: 0;
	background: #fff;
	color: var(--hffa-question);
	border-color: var(--hffa-border);
}
.hffa-caf .hffa-caf__btn--back:hover { border-color: var(--hffa-border-strong); background: #f9fafb; }

.hffa-caf__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: hffa-caf-spin 0.7s linear infinite;
}
.hffa-caf__btn--loading .hffa-caf__spinner { display: inline-block; }
.hffa-caf__btn--loading .hffa-caf__btn-text { opacity: 0.85; }
@keyframes hffa-caf-spin { to { transform: rotate(360deg); } }

/* ----- Thank you ----- */
.hffa-caf__thanks { text-align: center; }
.hffa-caf__thanks-icon { color: var(--hffa-primary); margin: 8px 0 14px; }
.hffa-caf__thanks .hffa-caf__heading { font-size: 30px; }
.hffa-caf__thanks-sub {
	max-width: 440px;
	margin: 12px auto 8px;
	color: var(--hffa-answer);
	font-size: 16px;
}
.hffa-caf__confetti {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9999;
}

/* ----- Fail-closed notice (non-HTTPS request) ----- */
.hffa-caf__blocked .hffa-caf__step { text-align: center; }
.hffa-caf__thanks-icon--warn { color: var(--hffa-error); }
.hffa-caf__blocked .hffa-caf__heading { font-size: 24px; }
.hffa-caf__report { margin-top: 22px; text-align: left; display: grid; gap: 16px; }
.hffa-caf .hffa-caf__textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.hffa-caf__note--ok { border-color: rgba(140, 101, 32, 0.4); background: var(--hffa-primary-tint); text-align: left; margin-top: 18px; }
.hffa-caf__blocked .hffa-caf__note--bad { text-align: left; margin-top: 18px; }
.hffa-caf__label .hffa-caf__caption { display: inline; font-weight: 400; }

/* ----- Disclosure under the card ----- */
.hffa-caf .hffa-caf__disclosure {
	max-width: 560px;
	margin: 20px auto 0;
	padding: 0 8px;
	text-align: center;
	font-size: 12px;
	line-height: 1.5;
	color: var(--hffa-muted);
}
/* Light on the dark green canvas of the standalone template; a theme page keeps the muted grey. */
.hffa-caf-canvas .hffa-caf .hffa-caf__disclosure { color: rgba(255, 255, 255, 0.75); }

/* Honeypot: off-screen, not display:none, so naive bots still see it. */
.hffa-caf__hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* iOS zooms on inputs under 16px; keep every control at 16px on phones. */
@media (max-width: 640px) {
	.hffa-caf .hffa-caf__input,
	.hffa-caf .hffa-caf__select,
	.hffa-caf .hffa-caf__btn { font-size: 16px !important; }
	.hffa-caf .hffa-caf__heading { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.hffa-caf * { transition: none !important; animation-duration: 0.01ms !important; }
}

/* ----- Beneficiary cards (1.2.0): add/remove, slider + number box, summary headers ----- */
.hffa-caf__caption--section { margin: -10px 0 0; }
.hffa-caf__bcard {
	border: 1px solid rgba(140, 101, 32, 0.3);
	border-radius: var(--hffa-radius);
	background: #fff;
	overflow: hidden;
}
.hffa-caf .hffa-caf__bcard-head {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	background: var(--hffa-primary-tint);
	border: 0;
	border-bottom: 1px solid rgba(140, 101, 32, 0.2);
	border-radius: 0;
	text-align: left;
	cursor: pointer;
	font-family: var(--hffa-font);
	color: var(--hffa-primary-dark);
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.3;
}
.hffa-caf .hffa-caf__bcard-head[aria-expanded="false"] { border-bottom-color: transparent; }
.hffa-caf .hffa-caf__bcard-head:focus-visible { outline: none; box-shadow: inset 0 0 0 3px rgba(140, 101, 32, 0.3); }
.hffa-caf__bcard-num {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--hffa-primary);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hffa-caf__bcard-title {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hffa-caf__bcard-title small { font-weight: 500; color: var(--hffa-muted); }
.hffa-caf__bcard-pct { flex: 0 0 auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.hffa-caf__bcard-chev { flex: 0 0 auto; transition: transform 0.2s ease; }
.hffa-caf .hffa-caf__bcard-head[aria-expanded="false"] .hffa-caf__bcard-chev { transform: rotate(-90deg); }
.hffa-caf__bcard-body {
	padding: 16px 14px 14px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}
.hffa-caf__bcard-body[hidden] { display: none !important; }
.hffa-caf__bcard-body > * { grid-column: 1 / -1; min-width: 0; }
.hffa-caf__bcard-body > .hffa-caf__field--half { grid-column: auto / span 1; }
@media (max-width: 520px) {
	.hffa-caf__bcard-body > .hffa-caf__field--half { grid-column: 1 / -1; }
}
.hffa-caf__bcard-body .hffa-caf__field--grouped { padding-left: 0; border-left: 0; }
.hffa-caf__bsolo {
	margin: 0;
	padding: 12px 14px;
	border-radius: var(--hffa-radius);
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	color: var(--hffa-question);
	font-size: 15px;
}
.hffa-caf__bsolo strong { color: var(--hffa-primary-dark); }
.hffa-caf__bsolo[hidden] { display: none !important; }
.hffa-caf__bcard-foot { display: flex; justify-content: flex-end; }
.hffa-caf .hffa-caf__bremove {
	margin: 0;
	padding: 6px 4px;
	background: none;
	border: 0;
	color: var(--hffa-error);
	font: 500 14px var(--hffa-font);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	box-shadow: none;
}
.hffa-caf .hffa-caf__bremove[disabled] { color: var(--hffa-muted); text-decoration: none; cursor: default; }

.hffa-caf__share {
	display: grid;
	grid-template-columns: 1fr 110px;
	gap: 12px;
	align-items: center;
}
.hffa-caf__share .hffa-caf__slider { margin: 0; }

.hffa-caf__bactions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	justify-content: space-between;
}
.hffa-caf .hffa-caf__badd {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	margin: 0;
	padding: 10px 16px;
	border: 1px dashed var(--hffa-primary);
	border-radius: var(--hffa-radius);
	background: #fff;
	color: var(--hffa-primary-dark);
	font: 600 15px var(--hffa-font);
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}
.hffa-caf .hffa-caf__badd:hover { background: var(--hffa-primary-tint); }
.hffa-caf .hffa-caf__badd[disabled] { opacity: 0.45; cursor: default; }
.hffa-caf .hffa-caf__bsplit {
	margin: 0;
	padding: 6px 0;
	background: none;
	border: 0;
	color: var(--hffa-primary-dark);
	font: 500 14px var(--hffa-font);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	box-shadow: none;
}
.hffa-caf .hffa-caf__bsplit[hidden] { display: none !important; }

.hffa-caf__btotal {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 0 0 6px;
	font-size: 14px;
	color: var(--hffa-question);
}
.hffa-caf__btotal strong { font-size: 16px; color: var(--hffa-primary-dark); }
.hffa-caf__btotal-hint { font-size: 13px; color: var(--hffa-error); margin-left: 10px; font-weight: 500; }
.hffa-caf__field--bad .hffa-caf__btotal strong { color: var(--hffa-error); }
.hffa-caf__bbar {
	display: flex;
	height: 14px;
	border-radius: 7px;
	overflow: hidden;
	background: #e5e7eb;
	gap: 2px;
}
.hffa-caf__bbar span { display: block; height: 100%; transition: width 0.25s ease; }
.hffa-caf__field--bad .hffa-caf__bbar { box-shadow: 0 0 0 2px var(--hffa-error-bg), 0 0 0 3px var(--hffa-error); }
.hffa-caf__blegend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--hffa-muted);
}
.hffa-caf__blegend i {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	margin-right: 6px;
	vertical-align: -1px;
}
