/* Fitment Checker – front end */
.fc-checker, .fc-garage {
	--fc-border: #d6d6d6;
	--fc-text: #111;
	--fc-muted: #666;
	--fc-btn: #4a4a4a;
	--fc-btn-text: #fff;
	--fc-ok: #15803d;
	--fc-ok-bg: #ecfdf5;
	--fc-warn: #b45309;
	--fc-warn-bg: #fffbeb;
	--fc-bad: #b91c1c;
	--fc-bad-bg: #fef2f2;
	--fc-info: #1d4ed8;
	--fc-info-bg: #eff6ff;
	color: var(--fc-text);
	font-size: 16px;
	line-height: 1.4;
	box-sizing: border-box;
}
.fc-checker *, .fc-garage * { box-sizing: border-box; }

.fc-checker { margin: 28px 0; max-width: 100%; clear: both; }
.fc-float[hidden] { display: none; }
.fc-float { margin: 20px auto; max-width: 720px; padding: 0 16px; }
.fc-checker .fc-title { font-size: 20px; font-weight: 700; margin: 0 0 14px; }

/* ---- form (stacked, labelled) ---- */
.fc-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.fc-form[hidden] { display: none; }
.fc-field { display: flex; flex-direction: column; gap: 6px; }
.fc-field label { font-size: 15px; color: var(--fc-text); }
.fc-form select {
	width: 100%; height: 52px; padding: 0 44px 0 16px;
	border: 1px solid var(--fc-border); border-radius: 6px; background: #fff; color: var(--fc-text);
	font: inherit; font-weight: 600; appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'><path fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/></svg>");
	background-repeat: no-repeat; background-position: right 16px center;
}
.fc-form select:focus { outline: 2px solid var(--fc-text); outline-offset: 1px; }
.fc-form select:disabled { color: var(--fc-muted); background-color: #fafafa; opacity: 1; }
.fc-form .fc-submit {
	width: 100%; height: 52px; margin-top: 4px; cursor: pointer; font: inherit; font-weight: 700;
	border-radius: 6px; border: 0; background: var(--fc-btn); color: var(--fc-btn-text); letter-spacing: .02em;
}
.fc-form .fc-submit:hover { filter: brightness(1.15); }
.fc-form .fc-submit:disabled { opacity: .6; cursor: wait; }

/* ---- saved vehicle line ---- */
.fc-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; }
.fc-saved[hidden] { display: none; }
.fc-saved-label { color: var(--fc-muted); }
.fc-change { background: none; border: 0; padding: 0; color: var(--fc-info); text-decoration: underline; cursor: pointer; font: inherit; font-size: 15px; }

/* ---- result card ---- */
.fc-result {
	display: flex; gap: 12px; align-items: flex-start;
	border: 1px solid var(--fc-border); border-left-width: 5px; border-radius: 6px;
	background: #fff; padding: 12px 14px; margin-top: 12px;
}
.fc-result[hidden] { display: none; }
.fc-result p { margin: 0; }
.fc-result p + p { margin-top: 4px; }
.fc-result-icon {
	flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 15px; color: #fff; background: var(--fc-muted);
}
.fc-result-notes { color: var(--fc-muted); font-size: 14px; }
.fc-result-links a { margin-right: 14px; font-size: 14px; }
.fc-result.fc-fits, .fc-result.fc-universal { border-left-color: var(--fc-ok); background: var(--fc-ok-bg); }
.fc-result.fc-fits .fc-result-icon, .fc-result.fc-universal .fc-result-icon { background: var(--fc-ok); }
.fc-result.fc-fits-verify, .fc-result.fc-may-fit { border-left-color: var(--fc-warn); background: var(--fc-warn-bg); }
.fc-result.fc-fits-verify .fc-result-icon, .fc-result.fc-may-fit .fc-result-icon { background: var(--fc-warn); }
.fc-result.fc-no-fit, .fc-result.fc-no-fit-year, .fc-result.fc-no-fit-trim, .fc-result.fc-error { border-left-color: var(--fc-bad); background: var(--fc-bad-bg); }
.fc-result.fc-no-fit .fc-result-icon, .fc-result.fc-no-fit-year .fc-result-icon, .fc-result.fc-no-fit-trim .fc-result-icon { background: var(--fc-bad); }
.fc-result.fc-unknown { border-left-color: var(--fc-info); background: var(--fc-info-bg); }
.fc-result.fc-unknown .fc-result-icon { background: var(--fc-info); }
.fc-result.fc-loading { color: var(--fc-muted); display: block; }

/* ---- fit list ---- */
.fc-list { margin-top: 14px; font-size: 14px; }
.fc-list summary { cursor: pointer; color: var(--fc-info); }
.fc-list ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 220px; overflow: auto; }
.fc-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 5px 0; border-top: 1px solid var(--fc-border); }
.fc-list-vehicle { font-weight: 600; }
.fc-list-years { color: var(--fc-muted); }
.fc-list-trim { color: var(--fc-muted); font-style: italic; }
.fc-list-verify { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--fc-warn); border: 1px solid var(--fc-warn); border-radius: 3px; padding: 0 4px; }

/* ---- tab table ---- */
.fc-tab-table { width: 100%; border-collapse: collapse; }
.fc-tab-table th, .fc-tab-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e5e7eb; }

/* ---- garage tab + panel ---- */
.fc-garage { position: fixed; right: 0; top: 30%; z-index: 9990; }
.fc-garage-tab {
	position: absolute; right: 0; top: 0;
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	padding: 14px 10px; background: #fff; color: #111; border: 1px solid var(--fc-border); border-right: 0;
	border-radius: 10px 0 0 10px; box-shadow: 0 2px 10px rgba(0,0,0,.15); cursor: pointer; font: inherit;
}
.fc-garage-tab svg { width: 24px; height: 24px; }
.fc-garage-label { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; }
.fc-garage-dot { position: absolute; top: 8px; left: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--fc-ok); }
.fc-garage-dot[hidden] { display: none; }
.fc-garage-panel {
	position: absolute; right: 0; top: 0; width: 340px; max-width: calc(100vw - 16px);
	background: #fff; color: #111; border: 1px solid var(--fc-border); border-radius: 10px 0 0 10px;
	box-shadow: 0 6px 30px rgba(0,0,0,.2); padding: 18px 20px 22px;
}
.fc-garage-panel[hidden] { display: none; }
.fc-garage-open .fc-garage-tab { display: none; }
.fc-garage-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 18px; }
.fc-garage-close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #666; padding: 0 4px; }
.fc-garage-intro { margin: 0 0 14px; color: var(--fc-muted); font-size: 14px; }
.fc-garage-current { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; padding: 12px; border-radius: 6px; background: var(--fc-ok-bg); border-left: 5px solid var(--fc-ok); }
.fc-garage-current[hidden] { display: none; }
.fc-garage-current span { font-size: 13px; color: var(--fc-muted); }
.fc-garage-current strong { font-size: 16px; }
.fc-garage-current a { font-size: 14px; }
.fc-garage-clear { align-self: flex-start; background: none; border: 0; padding: 0; margin-top: 4px; font: inherit; font-size: 13px; color: var(--fc-bad); text-decoration: underline; cursor: pointer; }
.fc-garage .fc-form { gap: 10px; }
.fc-garage .fc-form select, .fc-garage .fc-form .fc-submit { height: 46px; }
.fc-garage .fc-field label { font-size: 14px; }
@media (max-width: 600px) {
	.fc-garage { top: auto; bottom: 90px; }
	.fc-garage-panel { position: fixed; top: auto; bottom: 0; right: 0; width: 100vw; max-width: 100vw; border-radius: 14px 14px 0 0; max-height: 85vh; overflow: auto; }
}
