/*
 * fs-fields.css — field shield for the plugin's form fields (1.179.0).
 * Loaded with fs-core.css on inventory routes, and on any page that renders
 * a plugin form outside them ([fule_lead_form] / lead form widget,
 * [fule_inventory_search], [fule_alert_form] — those forms carry .fs-fields).
 *
 * Elementor kits style fields with `.elementor-kit-N input:not([type="button"]):not([type="submit"])`
 * (0,3,1; :focus 0,4,1), `textarea`, `select` and `label` (0,1,1). The shield:
 *   - text fields, selects, textareas (0,5,3): paint read from --fsf-* vars, so a
 *     component restyles a field by setting vars at any specificity (.fs-field,
 *     .fs-search__input …). Defaults follow the theme's input tokens. Elementor
 *     widget style controls write real properties at 0,6,1 (BaseWidget), above it.
 *   - labels (0,1,2) and check boxes / radios (0,4,2): reset to inherited / UA
 *     values; plugin label rules sit above at `.fs-root .x` (0,2,0).
 * Colours only via var() with hex fallbacks (template-lint R4). No !important.
 */

html body :is(.fs-root, .fs-fields) :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), select, textarea) {
	font: var(--fsf-weight, 400) var(--fsf-size, var(--fs-base, 1rem))/var(--fsf-lh, 1.4) var(--fsf-font, var(--font-body, system-ui, sans-serif));
	font-style: normal;
	letter-spacing: var(--fsf-ls, normal);
	word-spacing: normal;
	text-transform: none;
	color: var(--fsf-color, var(--color-text, #1A1A1A));
	background: var(--fsf-bg, var(--color-surface-card, #FFFFFF));
	border: var(--fsf-border, var(--input-border, 1px solid var(--color-border-strong, #C9BC9B)));
	border-radius: var(--fsf-radius, var(--input-radius, var(--radius-sm, 6px)));
	padding: var(--fsf-pad, var(--input-padding-y, .75rem) var(--input-padding-x, 1rem));
	height: var(--fsf-h, auto);
	box-shadow: var(--fsf-shadow, none);
	outline: none;
}
html body :is(.fs-root, .fs-fields) :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), select, textarea):focus {
	border: var(--fsf-border-focus, var(--fsf-border, var(--input-border, 1px solid var(--color-border-strong, #C9BC9B))));
	box-shadow: var(--fsf-shadow-focus, var(--fsf-shadow, none));
}
html body :is(.fs-root, .fs-fields) :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), select, textarea):focus-visible {
	outline: var(--fsf-ring, 2px solid var(--color-accent, #C65D3E));
	outline-offset: 2px;
}

html :is(.fs-root, .fs-fields) label {
	font: inherit;
	letter-spacing: inherit;
	word-spacing: inherit;
	text-transform: inherit;
	color: inherit;
	background: none;
	padding: 0;
}

html :is(.fs-root, .fs-fields) input:is([type=checkbox], [type=radio]):not([type=button]):not([type=submit]) {
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	color: inherit;
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	outline: none;
}
html :is(.fs-root, .fs-fields) input:is([type=checkbox], [type=radio]):not([type=button]):not([type=submit]):focus-visible {
	outline: 2px solid var(--color-accent, #C65D3E);
	outline-offset: 2px;
}

/* Lead form widget / [fule_lead_form] layout (labels above fields, full-width
   fields, check box rows as 44px targets). Layout only; Elementor's style
   controls own the paint. */
.fs-fields .fule-form__label { display: block; margin-bottom: 6px; }
.fs-fields .fule-form__field { width: 100%; box-sizing: border-box; }
.fs-fields :is(.fule-form__label--checkbox, .fule-form__consent) { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; cursor: pointer; }
.fs-fields :is(.fule-form__label--checkbox, .fule-form__consent) input { flex: none; width: 20px; height: 20px; margin: 0; }

/* ---------------------------------------------------------------------------
 * 1.184.0 — lead form widget layout (was inline style="" / <style> in
 * widget-lead-form.php). Row widths are the widget's 25/33/50/66/75/100
 * whitelist; the per-widget mobile breakpoint snaps to the steps below.
 * ------------------------------------------------------------------------- */
.fule-form__honeypot { position: absolute; left: -10000px; top: -10000px; width: 1px; height: 0; overflow: hidden; }
.fule-form__rows { display: flex; flex-wrap: wrap; gap: var(--fule-form-row-gap, 16px) var(--fule-form-col-gap, 12px); }
.fule-form__row--w25  { flex: 0 0 calc(25% - var(--fule-form-col-gap, 12px));  max-width: calc(25% - var(--fule-form-col-gap, 12px)); }
.fule-form__row--w33  { flex: 0 0 calc(33% - var(--fule-form-col-gap, 12px));  max-width: calc(33% - var(--fule-form-col-gap, 12px)); }
.fule-form__row--w50  { flex: 0 0 calc(50% - var(--fule-form-col-gap, 12px));  max-width: calc(50% - var(--fule-form-col-gap, 12px)); }
.fule-form__row--w66  { flex: 0 0 calc(66% - var(--fule-form-col-gap, 12px));  max-width: calc(66% - var(--fule-form-col-gap, 12px)); }
.fule-form__row--w75  { flex: 0 0 calc(75% - var(--fule-form-col-gap, 12px));  max-width: calc(75% - var(--fule-form-col-gap, 12px)); }
.fule-form__row--w100 { flex: 0 0 calc(100% - var(--fule-form-col-gap, 12px)); max-width: calc(100% - var(--fule-form-col-gap, 12px)); }
@media (max-width: 360px)  { .fule-form__rows[data-fs-bp="360"]  .fule-form__row { flex: 0 0 100%; max-width: 100%; } }
@media (max-width: 480px)  { .fule-form__rows[data-fs-bp="480"]  .fule-form__row { flex: 0 0 100%; max-width: 100%; } }
@media (max-width: 600px)  { .fule-form__rows[data-fs-bp="600"]  .fule-form__row { flex: 0 0 100%; max-width: 100%; } }
@media (max-width: 768px)  { .fule-form__rows[data-fs-bp="768"]  .fule-form__row { flex: 0 0 100%; max-width: 100%; } }
@media (max-width: 900px)  { .fule-form__rows[data-fs-bp="900"]  .fule-form__row { flex: 0 0 100%; max-width: 100%; } }
@media (max-width: 1024px) { .fule-form__rows[data-fs-bp="1024"] .fule-form__row { flex: 0 0 100%; max-width: 100%; } }
@media (max-width: 1200px) { .fule-form__rows[data-fs-bp="1200"] .fule-form__row { flex: 0 0 100%; max-width: 100%; } }

/* Financing hand-off (finance form type). */
.fule-form__heading { margin: 0 0 16px; font-size: 1.375rem; line-height: 1.25; }
.fule-form__unit { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--color-border, #E3D9C2); border-radius: var(--radius-md, 10px); background: var(--color-surface-card, #FFFFFF); }
.fule-form__unit-img { flex: none; width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm, 6px); }
.fule-form__unit-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.fule-form__unit-eyebrow { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted, #6B6255); }
.fule-form__unit-title { font-weight: 700; line-height: 1.3; }
.fule-form__unit-sub { font-size: .875rem; color: var(--color-text-muted, #6B6255); }
.fule-form__unit-change { flex: none; font-size: .875rem; }
.fule-form__row--shopping { margin: 0 0 16px; }
.fule-form__lock { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: .8125rem; line-height: 1.45; color: var(--color-text-muted, #6B6255); }
.fule-form__lock-ico { flex: none; margin-top: 2px; }
@media (max-width: 480px) { .fule-form__unit { flex-wrap: wrap; } .fule-form__unit-change { margin-left: auto; } }

/* ---------------------------------------------------------------------------
 * 1.184.0 — post-submit flash toast (was inline <style> in
 * Edge\SubmitHandoff + submit-handoff.js) and the inline thank-you
 * (Leads\ThankYou), which replaces the form that posted.
 * ------------------------------------------------------------------------- */
.fule-flash { position: fixed; top: 20px; right: 20px; z-index: 99999; max-width: 400px; background: #1A2942; color: #FFFFFF; padding: 16px 20px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; line-height: 1.5; opacity: 1; transition: opacity .3s ease; }
.fule-flash--success { background: #2D7A3E; }
.fule-flash--error { background: #A32D2D; }
.fule-flash__inner { display: flex; align-items: flex-start; gap: 12px; }
.fule-flash__inner p { margin: 0; flex: 1; }
.fule-flash__close { background: none; border: none; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; opacity: .7; }
.fule-flash__close:hover { opacity: 1; }
.fule-flash--fading { opacity: 0; }
@media (max-width: 600px) { .fule-flash { top: 10px; right: 10px; left: 10px; max-width: none; } }

.fs-thanks-src[hidden] { display: none; }
.fs-thanks { display: grid; gap: 10px; justify-items: start; padding: 20px; border: 1px solid var(--color-border, #E3D9C2); border-radius: var(--radius-md, 10px); background: var(--color-surface-card, #FFFFFF); color: var(--color-text, #1A1A1A); outline: none; }
.fs-thanks__check { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-success, #2E7D4F); color: #FFFFFF; }
.fs-thanks__title { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.fs-thanks__line { margin: 0; color: var(--color-text-muted, #6B6255); }
.fs-thanks__chip { margin: 0; padding: 4px 12px; border: 1px solid var(--color-border, #E3D9C2); border-radius: 999px; font-size: .875rem; }
.fs-thanks__go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fs-thanks__dir { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid currentColor; border-radius: var(--radius-sm, 6px); color: var(--color-accent, #C65D3E); font-weight: 600; text-decoration: none; }
.fs-thanks__dir:hover { text-decoration: underline; }
.fs-thanks__where { display: flex; flex-direction: column; font-size: .875rem; color: var(--color-text-muted, #6B6255); }
.fs-thanks__id { margin: 0; font-size: .8125rem; letter-spacing: .04em; color: var(--color-text-muted, #6B6255); }
