/**
 * FPS System Builder — full interactive builder styles
 */

/* ─────────────────────────────────────────────────────────────
 * Layout
 * ───────────────────────────────────────────────────────────── */
.fps-builder {
	font-family: inherit;
	color: #ffffff;
	position: relative;
}

/* Wider than the theme's content container (block alignment Wide / Full, or
 * [fps_system_builder align="wide"]). Centred on the container without a
 * transform, which would re-anchor the builder's fixed-position dialogs. */
#fps-system-builder.alignwide,
#fps-system-builder.alignfull {
	position: relative;
	left: 50%;
	box-sizing: border-box;
	max-width: none !important;
}

#fps-system-builder.alignwide {
	width: min(calc(100vw - 48px), 1440px) !important;
	margin-left: calc(min(calc(100vw - 48px), 1440px) / -2) !important;
	margin-right: 0 !important;
}

#fps-system-builder.alignfull {
	width: calc(100vw - 48px) !important;
	margin-left: calc((100vw - 48px) / -2) !important;
	margin-right: 0 !important;
}

/* Lined up with the theme's header row by view.js (syncThemeWidth()). */
#fps-system-builder.alignwide.is-theme-aligned {
	left: 0;
	width: var(--fps-builder-width) !important;
	margin-left: var(--fps-builder-shift) !important;
}

/* Build mode toggle */
.fps-builder__mode-toggle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0 0 20px;
	border: 1px solid #666;
	border-radius: 8px;
	overflow: hidden;
	max-width: 640px;
}

.fps-builder .fps-builder__mode-option {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-height: 44px;
	margin: 0;
	padding: 10px 16px;
	background: #2b2b2b;
	border: 0;
	border-radius: 0;
	color: #ddd;
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.fps-builder .fps-builder__mode-option + .fps-builder__mode-option {
	border-left: 1px solid #666;
}

.fps-builder .fps-builder__mode-option:hover {
	background: #363636;
	color: #fff;
}

.fps-builder .fps-builder__mode-option:focus-visible {
	outline: 2px solid #59a8d8;
	outline-offset: -4px;
}

.fps-builder .fps-builder__mode-option.is-active {
	background: #007cba;
	color: #fff;
	cursor: default;
}

.fps-builder__mode-option-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.fps-builder__mode-option-text {
	font-size: 13px;
	line-height: 1.35;
	opacity: 0.9;
}

@media (max-width: 600px) {
	.fps-builder__mode-toggle {
		max-width: none;
	}

	.fps-builder__mode-option-text {
		display: none;
	}
}

.fps-builder__boot {
	color: #b8b8b8;
}

.fps-add-to-build {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid #007cba;
	border-radius: 4px;
	background: #007cba;
	/* !important: the theme auto-generates a per-module ".tdi_NNN a" color
	 * rule (a different, unpredictable class on every page/section) that
	 * outranks a plain class selector here — this can't be beaten with
	 * specificity alone. */
	color: #ffffff !important;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	/* Establish its own stacking context so it stays clickable above any
	 * ancestor-level overlay link (e.g. Bootstrap .stretched-link from a
	 * Content Egg offer card sharing the same positioned ancestor). */
	position: relative;
	z-index: 2;
}

.fps-add-to-build:hover,
.fps-add-to-build:focus {
	border-color: #2599d6;
	background: #2599d6;
	color: #ffffff !important;
}

.fps-builder__replace-body {
	padding: 20px;
}

.fps-builder__replace-body p {
	margin: 0 0 12px;
}

.fps-builder__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.fps-builder__heading {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	color: #ffffff;
}

.fps-builder__header-right {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	color: #ffffff;
}

.fps-builder__saved-at {
	min-height: 1.2em;
	color: #d0d0d0;
	font-size: 14px;
}

.fps-builder__saved-at[data-state="dirty"] {
	color: #d29922;
	font-weight: 600;
}

.fps-builder__saved-at[data-state="saving-draft"],
.fps-builder__saved-at[data-state="publishing"] {
	color: #59a8d8;
	font-weight: 600;
}

.fps-builder__saved-at[data-state="draft-saved"] {
	color: #8bd3a8;
}

.fps-builder__user-chip {
	background: rgba(0, 124, 186, 0.12);
	border: 1px solid rgba(0, 124, 186, 0.3);
	border-radius: 3px;
	color: #8cc8ec;
	font-size: 13px;
	font-weight: 600;
	padding: 2px 8px;
}

.fps-builder__header-link {
	color: #e0e0e0;
	font-size: 14px;
	text-decoration: none;
}

.fps-builder__header-link:hover,
.fps-builder__header-link:focus-visible {
	color: #59a8d8;
	text-decoration: underline;
}

.fps-builder__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	align-items: start;
}

.fps-builder__sidebar {
	position: sticky;
	top: 16px;
	align-self: start;
}

/* ─────────────────────────────────────────────────────────────
 * Meta form
 * ───────────────────────────────────────────────────────────── */
.fps-builder__meta-form {
	background: #2c2c2c;
	border: 1px solid #444;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 16px;
}

.fps-builder__meta-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.fps-builder__meta-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.fps-builder__meta-field--full {
	grid-column: 1 / -1;
}

.fps-builder__meta-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #ffffff;
}

.fps-builder__meta-input,
.fps-builder__meta-select {
	background: #1a1a1a;
	border: 1px solid #555;
	border-radius: 4px;
	color: #ffffff!important;
	font-size: 13px;
	padding: 6px 8px;
	outline: none;
	transition: border-color 0.12s;
}

.fps-builder__meta-input:focus {
	border-color: #007cba;
}

/* Dimmer than typed text, so an empty field doesn't look filled in. */
.fps-builder__meta-input::placeholder {
	color: #8c8c8c!important;
	opacity: 1;
}

.fps-builder__meta-select:focus {
	border-color: #007cba;
}

.fps-builder__radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 4px;
}

.fps-builder__radio-option {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	cursor: pointer;
	color: #ffffff;
}

.fps-builder__radio-option input[type="radio"] {
	accent-color: #007cba;
	cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────
 * Compatibility banner
 * ───────────────────────────────────────────────────────────── */
.fps-builder__compat {
	border-radius: 4px;
	font-size: 13px;
	margin-bottom: 12px;
	padding: 10px 14px;
}

.fps-builder__compat--ok {
	background: rgba(63, 185, 80, 0.1);
	border: 1px solid rgba(63, 185, 80, 0.3);
	color: #3fb950;
}

.fps-builder__compat--warning {
	background: rgba(210, 153, 34, 0.1);
	border: 1px solid rgba(210, 153, 34, 0.3);
	color: #d29922;
}

.fps-builder__compat--error {
	background: rgba(248, 81, 73, 0.1);
	border: 1px solid rgba(248, 81, 73, 0.3);
	color: #f85149;
}

.fps-builder__compat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* ─────────────────────────────────────────────────────────────
 * Components table
 * ───────────────────────────────────────────────────────────── */
.fps-builder__components {
	background: #2c2c2c;
	border: 1px solid #444;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 16px;
}

.fps-builder__section-heading {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #ffffff;
	margin: 0 0 14px;
}

.fps-builder__table-wrap {
	overflow-x: auto;
}

.fps-builder__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.fps-builder__table thead th {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #ffffff;
	padding: 6px 10px;
	border-bottom: 1px solid #444;
	text-align: left;
}

.fps-builder__price-col {
	text-align: right;
	width: 140px;
}

.fps-builder__table tbody tr {
	border-bottom: 1px solid #333;
}

.fps-builder__table tbody tr:last-child {
	border-bottom: none;
}

.fps-builder__slot-row {
	transition: background 0.1s;
}

.fps-builder__slot-row:hover {
	background: #333;
}

.fps-builder__slot-row--issue {
	border-left: 3px solid #d29922;
}

.fps-builder__slot-row--required {
	border-left: 3px solid #d29922;
}

.fps-builder__slot-row td {
	padding: 10px 10px;
	vertical-align: middle;
}

.fps-builder__slot-label-cell {
	white-space: nowrap;
	min-width: 100px;
	padding-top: 14px !important;
}

.fps-builder__slot-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
}

.fps-builder__slot-meta {
	display: block;
	font-size: 11px;
	color: #b0b0b0;
	margin-top: 2px;
}

/* Kept for backwards compat */
.fps-builder__slot-required {
	color: #d29922;
	margin-left: 3px;
	font-size: 10px;
}

.fps-builder__part-cell {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.fps-builder__part-thumb {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 3px;
	background: #333;
}

.fps-builder__part-thumb-placeholder {
	width: 48px;
	height: 48px;
	background: #333;
	border-radius: 3px;
	display: inline-block;
	flex-shrink: 0;
}

.fps-builder__part-name {
	font-size: 13px;
	font-weight: 500;
}

.fps-builder__part-name a {
	color: #ffffff;
	text-decoration: none;
}

.fps-builder__part-name a:hover {
	text-decoration: underline;
	color: #007cba;
}

.fps-builder__part-meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.fps-builder__part-spec {
	font-size: 12px;
	color: #ffffff;
}

.fps-builder__part-actions {
	display: flex;
	gap: 12px;
	margin-top: 2px;
}

.fps-builder__replace-btn,
.fps-builder__remove-btn {
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 12px;
	color: #ffffff;
	padding: 0;
	transition: color 0.1s;
}

.fps-builder__replace-btn:hover {
	color: #007cba;
}

.fps-builder__remove-btn:hover {
	color: #f85149;
}

.fps-builder__add-btn {
	background: transparent;
	border: 1px dashed #444;
	border-radius: 4px;
	color: #ffffff;
	cursor: pointer;
	font-size: 12px;
	padding: 6px 12px;
	transition: border-color 0.12s, color 0.12s;
}

.fps-builder__add-btn:hover {
	border-color: #007cba;
	color: #007cba;
}

.fps-builder__add-btn--small {
	font-size: 11px;
	padding: 4px 8px;
}

.fps-builder__price-cell {
	text-align: center;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.fps-builder__best-price {
	font-weight: 600;
	color: #3fb950;
}

.fps-builder__price-merchant {
	display: block;
	font-size: 11px;
	color: #ffffff;
	margin-top: 2px;
}

.fps-builder__price-merchant a {
	color: #ffffff;
	text-decoration: none;
}

.fps-builder__price-merchant a:hover {
	color: #007cba;
}

.fps-builder__price-none {
	color: #b0b0b0;
}

.fps-builder__affiliate-disclosure {
	background: linear-gradient(180deg, rgba(0, 124, 186, 0.08), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(0, 124, 186, 0.22);
	border-radius: 6px;
	color: #cfcfcf;
	font-size: 12px;
	line-height: 1.55;
	margin: 0 0 16px;
	padding: 14px 16px;
}

.fps-builder__affiliate-disclosure p {
	margin: 0;
}

.fps-builder__affiliate-disclosure p + p {
	margin-top: 8px;
}

.bestprice {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
	min-width: 132px;
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid rgba(0, 124, 186, 0.34);
	background: linear-gradient(180deg, rgba(8, 43, 64, 0.95), rgba(22, 33, 44, 0.95));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	color: #f7fbff;
	font-variant-numeric: tabular-nums;
	text-align: left;
	text-decoration: none;
}

button.bestprice {
	cursor: pointer;
	font: inherit;
	width: 100%;
	appearance: none;
}

.bestprice:hover,
.fps-bestprice-wrap .bestprice:hover {
	border-color: rgba(89, 168, 216, 0.75);
	color: #fff;
	transform: translateY(-1px);
	transition: border-color 0.12s ease, transform 0.12s ease;
}

.fps-bestprice-wrap {
	display: inline-flex;
	align-items: stretch;
	position: relative;
	max-width: 100%;
}

.fps-bestprice__proxy {
	position: absolute;
	width: 0;
	height: 0;
	overflow: visible;
}

/* The price popup is moved to <body> and opened from inside the part picker
 * (.fps-builder__modal-overlay, z-index 10000). Bootstrap's own stacking
 * (~1050) would put it, its backdrop and its shop-info panels underneath. */
.cegg5-container.fps-bestprice-floating-ui .modal {
	--bs-modal-zindex: 10050;
	z-index: 10050 !important;
}

body:has(.fps-builder__modal-overlay) > .modal-backdrop,
.fps-bestprice-backdrop {
	--bs-backdrop-zindex: 10040;
	z-index: 10040 !important;
}

.cegg5-container.fps-bestprice-floating-ui .offcanvas,
.offcanvas[data-fps-bestprice-mounted] {
	--bs-offcanvas-zindex: 10070;
	z-index: 10070 !important;
}

body:has(.fps-builder__modal-overlay) > .offcanvas-backdrop {
	z-index: 10060 !important;
}

.fps-bestprice-floating-ui .modal-content {
	background: #313a47 !important;
	border-color: rgba(255, 255, 255, 0.1) !important;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55) !important;
}

.fps-bestprice-floating-ui .modal-dialog {
	min-height: calc(100% - 1rem);
	display: flex;
	align-items: center;
	margin: 0.5rem auto;
	max-width: min(560px, calc(100vw - 2rem));
}

.fps-bestprice-floating-ui .modal-header,
.fps-bestprice-floating-ui .modal-footer {
	border-color: rgba(255, 255, 255, 0.08) !important;
}

.fps-bestprice-floating-ui .btn-close {
	filter: invert(1) grayscale(1) brightness(200%);
	opacity: 0.92;
}

.fps-bestprice-floating-ui .btn-close:hover,
.fps-bestprice-floating-ui .btn-close:focus {
	opacity: 1;
}

@media (min-width: 768px) {
	.fps-bestprice-floating-ui .modal-dialog {
		min-height: calc(100% - 3.5rem);
		margin: 1.75rem auto;
	}
}

.bestprice--sm {
	min-width: 118px;
	padding: 7px 10px;
}

.bestprice__k {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9fc7df;
}

.bestprice__amt {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.05;
	color: #fff;
}

.bestprice__sub {
	font-size: 11px;
	color: #b7c7d2;
	line-height: 1.3;
}

/* ─────────────────────────────────────────────────────────────
 * Notes
 * ───────────────────────────────────────────────────────────── */
.fps-builder__notes {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.fps-builder__notes-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #ffffff;
}

.fps-builder__notes-textarea {
	background: #2c2c2c;
	border: 1px solid #444;
	border-radius: 6px;
	color: #ffffff;
	font-family: inherit;
	font-size: 13px;
	min-height: 80px;
	outline: none;
	padding: 10px 12px;
	resize: vertical;
	transition: border-color 0.12s;
}

.fps-builder__notes-textarea:focus {
	border-color: #007cba;
}

/* ─────────────────────────────────────────────────────────────
 * Summary sidebar
 * ───────────────────────────────────────────────────────────── */
.fps-builder__summary {
	background: #2c2c2c;
	border: 1px solid #444;
	border-radius: 6px;
	padding: 20px;
}

.fps-builder__summary-heading {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #ffffff;
	margin: 0 0 14px;
}

.fps-builder__summary-total {
	margin-bottom: 12px;
}

.fps-builder__total-price {
	display: block;
	font-size: 28px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #ffffff;
}

.fps-builder__total-none {
	color: #ffffff;
	font-size: 14px;
}

.fps-builder__total-range,
.fps-builder__total-last-priced {
	font-size: 12px;
	color: #ffffff;
	margin-top: 2px;
}

/* Budget bar */
.fps-builder__budget-bar {
	margin-bottom: 12px;
}

.fps-builder__budget-bar-track {
	height: 6px;
	background: #444;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 4px;
}

.fps-builder__budget-bar-fill {
	height: 100%;
	background: #007cba;
	border-radius: 3px;
	transition: width 0.3s;
}

.fps-builder__budget-label {
	font-size: 12px;
	color: #ffffff;
}

/* Compat chips */
.fps-builder__summary-compat {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.fps-builder__compat-chip {
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 7px;
}

.fps-builder__compat-chip--ok {
	background: rgba(63, 185, 80, 0.12);
	color: #3fb950;
}

.fps-builder__compat-chip--warning {
	background: rgba(210, 153, 34, 0.12);
	color: #d29922;
}

.fps-builder__compat-chip--error {
	background: rgba(248, 81, 73, 0.12);
	color: #f85149;
}

/* Action buttons */
.fps-builder__summary-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 10px;
}

.fps-builder__action-btn {
	background: transparent;
	border: 1px solid #555;
	border-radius: 4px;
	color: #ffffff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 14px;
	text-align: center;
	transition: border-color 0.12s, background 0.12s;
}

.fps-builder__action-btn:hover {
	border-color: #007cba;
	color: #007cba;
}

.fps-builder__action-btn--primary {
	background: #007cba;
	border-color: #007cba;
	color: #fff;
}

.fps-builder__action-btn--primary:hover:not(:disabled) {
	background: #005a87;
	border-color: #005a87;
}

.fps-builder__action-btn:disabled {
	background: #3a3a3a;
	border-color: #555;
	color: #bdbdbd;
	cursor: not-allowed;
}

.fps-builder__action-btn:disabled:hover {
	border-color: #555;
	color: #bdbdbd;
}

.fps-builder__summary-hint {
	font-size: 13px;
	color: #ddd;
	margin: 0 0 10px;
	text-align: center;
}

.fps-builder__summary-disclosure {
	font-size: 10px;
	color: #b0b0b0;
	margin-top: 8px;
	line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────
 * Search / Share Modal
 * ───────────────────────────────────────────────────────────── */
.fps-builder__modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 16px;
}

.fps-builder__modal {
	background: #2c2c2c;
	border: 1px solid #444;
	border-radius: 8px;
	max-height: 80vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1080px;
}

.fps-builder__modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #444;
}

.fps-builder__modal-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
	color: #ffffff;
}

.fps-builder__modal-close {
	background: transparent;
	border: none;
	color: #ffffff;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 2px 6px;
	border-radius: 4px;
}

.fps-builder__modal-close:hover {
	color: #ffffff;
	background: #444;
}

.fps-builder__modal-search {
	padding: 12px 16px;
	border-bottom: 1px solid #444;
}

.fps-builder__modal-search {
	min-width: 0;
}

/* Doubled-up selector + !important on the box model: themes ship
 * `input[type="search"|"text"] { box-sizing: content-box; width/height… }`
 * rules that outrank a single class, which pushed this box past the dialog. */
.fps-builder .fps-builder__modal-search input.fps-builder__modal-search-input {
	display: block;
	background: #1a1a1a;
	border: 1px solid #555;
	border-radius: 4px;
	color: #ffffff;
	font-size: 14px;
	line-height: 1.4;
	height: auto;
	margin: 0;
	padding: 8px 12px;
	transition: border-color 0.12s;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	-webkit-appearance: none;
	appearance: none;
}

.fps-builder .fps-builder__modal-search input.fps-builder__modal-search-input:focus {
	border-color: #007cba;
	outline: 2px solid #59a8d8;
	outline-offset: 1px;
}

.fps-builder__modal-results {
	flex: 1;
	overflow-y: auto;
	padding: 0;
}

.fps-builder__modal-hint {
	color: #ffffff;
	font-size: 13px;
	padding: 12px 16px;
	margin: 0;
}

.fps-builder__modal-hint--error {
	color: #f85149;
}

.fps-builder__modal-tabs {
	display: flex;
	gap: 8px;
	padding: 12px 16px 0;
	border-bottom: 1px solid #444;
	background: rgba(255, 255, 255, 0.01);
}

.fps-builder__modal-tab {
	background: transparent;
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 8px 8px 0 0;
	color: #ffffff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 14px;
}

.fps-builder__modal-tab.is-active {
	background: #262626;
	border-color: #444;
	color: #f2f2f2;
}

.fps-builder__modal-tab-count {
	color: #59a8d8;
	margin-left: 4px;
}

.fps-builder__modal-panel {
	padding: 16px;
}

.fps-builder__modal-panel.is-hidden {
	display: none;
}

.fps-builder__guided-match {
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: 6px;
	background: rgba(63, 185, 80, 0.08);
	border: 1px solid rgba(63, 185, 80, 0.18);
	color: #d8f3de;
	font-size: 13px;
	line-height: 1.45;
}

.fps-builder__guided-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.fps-builder__guided-filter {
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid #555;
	background: #232323;
	color: #bdbdbd;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
}

.fps-builder__guided-filter.is-active {
	background: rgba(0, 124, 186, 0.14);
	border-color: rgba(89, 168, 216, 0.65);
	color: #d7eeff;
}

.fps-builder__guided-section + .fps-builder__guided-section {
	margin-top: 20px;
}

.fps-builder__guided-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.fps-builder__guided-heading h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
}

.fps-builder__guided-heading span {
	font-size: 12px;
	color: #ffffff;
}

.fps-builder__browse-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.fps-builder__browse-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fps-builder__browse-main {
	min-width: 0;
}

.fps-builder__browse-toolbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.fps-builder__browse-sort {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #ffffff;
	white-space: nowrap;
}

.fps-builder__browse-sort select {
	padding: 6px 8px;
	border: 1px solid #444;
	border-radius: 6px;
	background: #2c2c2c;
	color: inherit;
}

.fps-builder__browse-subcopy {
	font-size: 12px;
	color: #ffffff;
	margin-top: 4px;
}

.fps-builder__modal-price {
	border: 1px solid #444;
	border-radius: 6px;
	background: #2c2c2c;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fps-builder__modal-price-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.fps-builder__modal-price-label {
	font-weight: 600;
	font-size: 0.9em;
	color: #ffffff;
}

.fps-builder__modal-price-clear {
	background: transparent;
	border: 1px solid #555;
	border-radius: 999px;
	color: #d9d9d9;
	cursor: pointer;
	font-size: 11px;
	padding: 4px 8px;
}

.fps-builder__modal-price-inputs {
	display: flex;
	align-items: center;
	gap: 6px;
}

.fps-builder__modal-price-inputs input {
	width: 100%;
	min-width: 0;
	padding: 5px 8px;
	border: 1px solid #444;
	border-radius: 4px;
	background: #222;
	color: inherit;
}

.fps-builder__modal-price-sliders {
	position: relative;
	height: 20px;
}

/* One shared track behind both sliders. Each input's own track is
   transparent, so the upper input can't paint over the lower one's thumb. */
.fps-builder__modal-price-sliders::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	height: 4px;
	margin-top: -2px;
	background: #444;
	border-radius: 2px;
	pointer-events: none;
}

.fps-builder__modal-price-sliders input[type="range"] {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.fps-builder__modal-price-sliders input[type="range"]::-webkit-slider-runnable-track {
	height: 4px;
	background: transparent;
	border: none;
}

.fps-builder__modal-price-sliders input[type="range"]::-moz-range-track {
	height: 4px;
	background: transparent;
	border: none;
}

.fps-builder__modal-price-sliders input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 16px;
	height: 16px;
	margin-top: -6px;
	border-radius: 50%;
	background: #007cba;
	border: none;
	cursor: pointer;
}

.fps-builder__modal-price-sliders input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #007cba;
	border: none;
	cursor: pointer;
}

.fps-builder__modal-facets {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fps-builder__modal-facet {
	border: 1px solid #444;
	border-radius: 6px;
	background: #2c2c2c;
	padding: 0;
}

.fps-builder__modal-facet-label {
	cursor: pointer;
	padding: 10px 12px;
	font-weight: 600;
	font-size: 0.9em;
	list-style: none;
	color: #ffffff;
}

.fps-builder__modal-facet-label::-webkit-details-marker {
	display: none;
}

.fps-builder__modal-facet-label::after {
	content: "▾";
	float: right;
	opacity: 0.6;
	transition: transform 0.15s ease;
}

.fps-builder__modal-facet:not([open]) .fps-builder__modal-facet-label::after {
	transform: rotate(-90deg);
}

.fps-builder__modal-facet-options {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0 12px 10px;
	max-height: 260px;
	overflow-y: auto;
}

.fps-builder__modal-facet-option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.88em;
	padding: 3px 0;
	cursor: pointer;
	color: #ffffff;
}

.fps-builder__modal-facet-option.is-dimmed {
	opacity: 0.45;
}

/* Two-level facets: values nested under their parent value. */
.fps-builder__modal-facet-children {
	padding-left: 22px;
}

.fps-builder__modal-facet-value {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fps-builder__modal-facet-count {
	font-size: 0.85em;
	opacity: 0.65;
}

.fps-builder__facet-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.fps-builder__facet-chip {
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(89, 168, 216, 0.4);
	background: rgba(0, 124, 186, 0.08);
	color: #d9efff;
	cursor: pointer;
	font-size: 11px;
	font-weight: 600;
}

.fps-builder__facet-chip--clear {
	border-color: #555;
	background: transparent;
	color: #aaa;
}

.fps-builder__browse-count {
	font-size: 12px;
	color: #ffffff;
	margin-bottom: 10px;
}

.fps-builder__result-list {
	display: flex;
	flex-direction: column;
	border: 1px solid #393939;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.01);
}

/* Result rows */
.fps-builder__result-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 16px;
	border-bottom: 1px solid #333;
	transition: background 0.1s;
}

.fps-builder__result-row:hover {
	background: #333;
}

.fps-builder__result-thumb {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 3px;
	background: #222;
	flex-shrink: 0;
}

.fps-builder__result-thumb--placeholder {
	width: 48px;
	height: 48px;
	background: #333;
	border-radius: 3px;
	flex-shrink: 0;
	display: inline-block;
}

.fps-builder__result-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.fps-builder__result-name {
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
}

.fps-builder__result-spec,
.fps-builder__result-meta {
	font-size: 12px;
	color: #ffffff;
	line-height: 1.4;
}

.fps-builder__result-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.fps-builder__result-row.is-dimmed {
	opacity: 0.82;
}

.fps-builder__result-price {
	font-size: 12px;
	color: #3fb950;
}

.fps-builder__result-add-btn {
	background: #007cba;
	border: none;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	white-space: nowrap;
	transition: background 0.12s;
}

.fps-builder__result-add-btn:hover {
	background: #005a87;
}

.fps-builder__load-more {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 6px;
	border: 1px solid #555;
	background: transparent;
	color: #d5d5d5;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
}

.fps-builder__load-more:hover {
	border-color: rgba(89, 168, 216, 0.7);
	color: #fff;
}

.fps-builder__empty-state {
	padding: 18px 16px;
	color: #ffffff;
	font-size: 13px;
	line-height: 1.5;
}

/* Share modal */
.fps-builder__share-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fps-builder__share-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #ffffff;
}

.fps-builder__vis-radios {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.fps-builder__vis-option {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	cursor: pointer;
}

.fps-builder__share-copy-row {
	display: flex;
	gap: 8px;
}

.fps-builder__share-url-input {
	background: #1a1a1a;
	border: 1px solid #444;
	border-radius: 4px;
	color: #ffffff;
	flex: 1;
	font-size: 12px;
	padding: 6px 10px;
	outline: none;
}

.fps-builder__copy-btn {
	background: #444;
	border: none;
	border-radius: 4px;
	color: #ffffff;
	cursor: pointer;
	font-size: 12px;
	padding: 6px 12px;
	white-space: nowrap;
	transition: background 0.12s;
}

.fps-builder__copy-btn:hover {
	background: #007cba;
}

.fps-builder__share-clone-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────
 * Toasts
 * ───────────────────────────────────────────────────────────── */
.fps-builder__toasts {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 10001;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-end;
	pointer-events: none;
}

.fps-builder__toast {
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	max-width: 280px;
	padding: 10px 16px;
	pointer-events: auto;
}

.fps-builder__toast--info    { background: #2c2c2c; border: 1px solid #444; color: #ffffff; }
.fps-builder__toast--success { background: rgba(63, 185, 80, 0.15); border: 1px solid #3fb950; color: #3fb950; }
.fps-builder__toast--warning { background: rgba(210, 153, 34, 0.15); border: 1px solid #d29922; color: #d29922; }
.fps-builder__toast--error   { background: rgba(248, 81, 73, 0.15);  border: 1px solid #f85149; color: #f85149; }

/* ─────────────────────────────────────────────────────────────
 * Responsive
 * ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.fps-builder__layout {
		grid-template-columns: 1fr;
	}

	/* Parts first on small screens; the summary follows, and a bar pinned
	 * to the bottom keeps the total in view (see .fps-builder__mobile-bar). */
	.fps-builder__sidebar {
		position: static;
	}

	.fps-builder {
		padding-bottom: 72px;
	}

	.fps-builder__mobile-bar {
		display: flex;
	}
}

@media (max-width: 600px) {
	.fps-builder__meta-grid {
		grid-template-columns: 1fr;
	}

	.fps-builder__affiliate-disclosure {
		padding: 12px;
	}

	.fps-builder__table thead {
		display: none;
	}

	.fps-builder__table tbody tr {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		padding: 8px 0;
	}

	.fps-builder__slot-label {
		width: 100%;
		padding-bottom: 0;
	}

	.fps-builder__modal {
		max-width: 100%;
		max-height: 90vh;
	}

	.fps-builder__modal-tabs {
		overflow-x: auto;
		padding-right: 12px;
	}

	.fps-builder__guided-heading,
	.fps-builder__result-row,
	.fps-builder__result-actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.fps-builder__browse-layout {
		grid-template-columns: 1fr;
	}

	.fps-builder__browse-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.fps-builder__result-actions {
		width: 100%;
	}

	.fps-builder__result-actions .bestprice,
	.fps-builder__result-actions .fps-bestprice-wrap,
	.fps-builder__result-actions .fps-builder__review-btn,
	.fps-builder__result-actions .fps-builder__result-add-btn {
		width: 100%;
	}
}
/* ─────────────────────────────────────────────────────────────
 * Theme overrides — force light text on dark backgrounds
 * The Newspaper theme sets link/heading/body colors that can
 * bleed into our dark components.
 * ───────────────────────────────────────────────────────────── */
.fps-builder,
.fps-builder * {
        box-sizing: border-box;
}

.fps-builder h1,
.fps-builder h2,
.fps-builder h3,
.fps-builder h4,
.fps-builder h5,
.fps-builder h6 {
        color: #ffffff;
}

.fps-builder p,
.fps-builder span,
.fps-builder li,
.fps-builder label,
.fps-builder th,
.fps-builder td {
        color: inherit;
}

.fps-builder a {
        color: #59a8d8;
}

.fps-builder a:hover {
        color: #7ec2ed;
}

/* "Read Our Review" is a link styled as a primary button. */
.fps-builder a.fps-builder__review-btn,
.fps-builder a.fps-builder__review-btn:hover {
        color: #fff;
        text-decoration: none;
}

.fps-builder__review-btn {
        display: inline-block;
        white-space: nowrap;
}

.fps-builder input,
.fps-builder textarea {
        color: #ffffff!important;
        background: #2c2c2c;
        border: 1px solid #555;
}

.fps-builder select {
        color: #ffffff;
        background: #2c2c2c;
        border: 1px solid #555;
}

.fps-builder button {
        color: inherit;
}
/* ─────────────────────────────────────────────────────────────
 * Parts-first layout: build title, hints, essentials, save dialog
 * ───────────────────────────────────────────────────────────── */
.fps-builder__header-main {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.fps-builder__build-title {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 14px;
}

.fps-builder__build-name {
	color: #ffffff;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.fps-builder__build-name.is-placeholder {
	color: #b8b8b8;
	font-weight: 400;
	font-style: italic;
}

.fps-builder__start-hint {
	background: #20303a;
	border: 1px solid #2f5d78;
	border-radius: 6px;
	color: #d7e9f4;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 16px;
	padding: 12px 16px;
}

.fps-builder__start-hint strong {
	color: #ffffff;
}

/* Slot states. Errors are red, warnings amber; the next essential to pick
 * gets a blue marker so "what do I do now" is visible without reading. */
.fps-builder__slot-row--error > td:first-child {
	box-shadow: inset 3px 0 0 #d9534f;
}

.fps-builder__slot-row--warning > td:first-child {
	box-shadow: inset 3px 0 0 #e0a800;
}

.fps-builder__slot-row--next > td:first-child {
	box-shadow: inset 3px 0 0 #59a8d8;
}

.fps-builder__slot-tag {
	display: block;
	color: #b0b0b0;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	margin-top: 2px;
	text-transform: uppercase;
}

.fps-builder__slot-tag--essential {
	color: #59a8d8;
}

.fps-builder__add-btn--next {
	background: #007cba;
	border-color: #007cba;
	color: #ffffff;
}

.fps-builder__next-hint {
	color: #59a8d8;
	font-size: 12px;
	margin-left: 10px;
	white-space: nowrap;
}

.fps-builder__progress {
	margin-bottom: 14px;
}

.fps-builder__progress-text {
	color: #d0d0d0;
	font-size: 13px;
	margin-bottom: 6px;
}

.fps-builder__progress.is-complete .fps-builder__progress-text {
	color: #6fcf97;
}

.fps-builder__progress-track {
	background: #444;
	border-radius: 3px;
	height: 6px;
	overflow: hidden;
}

.fps-builder__progress-fill {
	background: #59a8d8;
	height: 100%;
	transition: width 0.2s;
}

.fps-builder__progress.is-complete .fps-builder__progress-fill {
	background: #6fcf97;
}

.fps-builder .fps-builder__progress-next {
	background: none;
	border: 0;
	color: #59a8d8;
	cursor: pointer;
	font-size: 13px;
	margin-top: 8px;
	padding: 0;
	text-align: left;
}

.fps-builder .fps-builder__progress-next:hover {
	color: #7ec2ed;
	text-decoration: underline;
}

.fps-builder__budget {
	margin: 12px 0;
}

.fps-builder__budget-field {
	align-items: center;
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

.fps-builder__budget-field-label {
	color: #b8b8b8;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.fps-builder .fps-builder__budget-field input.fps-builder__budget-input {
	border-radius: 4px;
	box-sizing: border-box !important;
	flex: 1;
	font-size: 14px;
	height: auto;
	margin: 0;
	min-width: 0 !important;
	padding: 6px 8px;
	width: 100% !important;
}

.fps-builder__budget.is-over .fps-builder__budget-bar-fill {
	background: #d9534f;
}

.fps-builder__budget.is-over .fps-builder__budget-label {
	color: #f1908c;
	font-weight: 600;
}

.fps-builder__power {
	align-items: baseline;
	border-top: 1px solid #444;
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	gap: 4px 8px;
	margin: 12px 0;
	padding-top: 12px;
}

.fps-builder__power-label {
	color: #b8b8b8;
}

.fps-builder__power-value {
	color: #ffffff;
	font-weight: 700;
}

.fps-builder__power-detail {
	color: #b8b8b8;
	flex-basis: 100%;
}

.fps-builder__power.is-tight .fps-builder__power-detail {
	color: #e0a800;
}

.fps-builder__modal--form {
	max-width: 520px;
	overflow-y: auto;
	width: 100%;
}

.fps-builder__save-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px 20px 20px;
}

.fps-builder__save-body .fps-builder__meta-label em {
	color: #b0b0b0;
	font-style: normal;
	font-weight: 400;
	text-transform: none;
}

.fps-builder .fps-builder__save-body input.fps-builder__meta-input,
.fps-builder .fps-builder__save-body select.fps-builder__meta-select {
	box-sizing: border-box !important;
	height: auto;
	margin: 0;
	max-width: 100% !important;
	width: 100% !important;
}

.fps-builder__vis-fieldset {
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.fps-builder__vis-fieldset legend {
	margin-bottom: 6px;
	padding: 0;
}

.fps-builder__radio-hint {
	color: #b8b8b8;
	font-size: 12px;
}

.fps-builder__save-note,
.fps-builder__share-note {
	color: #b8b8b8;
	font-size: 13px;
	line-height: 1.45;
	margin: 0;
}

.fps-builder__save-note--error {
	color: #f1908c;
}

.fps-builder .fps-builder__save-body input.fps-builder__meta-input[aria-invalid="true"] {
	border-color: #e5534b;
}

.fps-builder .fps-builder__field-error {
	color: #f1908c;
	font-size: 13px;
	line-height: 1.45;
}

@media (max-width: 600px) {
	.fps-builder__next-hint {
		display: none;
	}
}

.fps-builder .fps-builder__header-link {
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 14px;
	padding: 0;
}

.fps-builder__header {
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.fps-builder__header-right {
	flex-wrap: wrap;
}

.fps-builder__mobile-bar {
	align-items: center;
	background: #1f1f1f;
	border-top: 1px solid #444;
	bottom: 0;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
	display: none;
	gap: 12px;
	justify-content: space-between;
	left: 0;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
	position: fixed;
	right: 0;
	z-index: 9000;
}

.fps-builder__mobile-bar-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fps-builder__mobile-bar-total {
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
}

.fps-builder__mobile-bar-status {
	color: #b8b8b8;
	font-size: 12px;
}

.fps-builder__mobile-bar-status.is-error {
	color: #f1908c;
}

.fps-builder__mobile-bar .fps-builder__action-btn {
	flex: 0 0 auto;
	width: auto;
}

.fps-builder__buy .fps-builder__affiliate-disclosure {
	margin: 12px 0 0;
}

/* ─────────────────────────────────────────────────────────────
 * Guided mode
 * ───────────────────────────────────────────────────────────── */
.fps-guide {
	background: #2c2c2c;
	border: 1px solid #444;
	border-radius: 6px;
	margin-bottom: 16px;
	padding: 20px;
}

.fps-guide--review {
	background: #20303a;
	border-color: #2f5d78;
}

.fps-builder .fps-guide__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 6px;
	outline: none;
}

.fps-guide__count {
	color: #59a8d8;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin: 0 0 4px;
	text-transform: uppercase;
}

.fps-guide__lead {
	color: #c8c8c8;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 16px;
}

.fps-guide__note {
	color: #c8c8c8;
	font-size: 13px;
	margin: 12px 0 0;
}

.fps-guide__modes {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	margin-top: 14px;
}

.fps-builder .fps-guide__mode {
	background: #1f1f1f;
	border: 1px solid #555;
	border-radius: 6px;
	color: #e6e6e6;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font: inherit;
	gap: 8px;
	padding: 18px;
	text-align: left;
}

.fps-builder .fps-guide__mode:hover,
.fps-builder .fps-guide__mode:focus-visible {
	background: #12344a;
	border-color: #59a8d8;
}

.fps-guide__mode-title {
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
}

.fps-guide__mode-text {
	color: #c8c8c8;
	font-size: 13px;
	line-height: 1.5;
}

.fps-guide__mode-cta {
	color: #59a8d8;
	font-size: 13px;
	font-weight: 700;
	margin-top: auto;
}

.fps-guide__field {
	border: 0;
	margin: 0 0 18px;
	min-width: 0;
	padding: 0;
}

.fps-guide__label {
	color: #ffffff;
	display: block;
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 8px;
	padding: 0;
}

.fps-guide__budget-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fps-guide__currency {
	color: #b8b8b8;
	font-size: 18px;
}

.fps-builder .fps-guide__budget-row input.fps-guide__budget-input {
	border-radius: 4px;
	box-sizing: border-box !important;
	font-size: 18px;
	height: auto;
	margin: 0;
	padding: 8px 10px;
	width: 140px !important;
}

.fps-guide__quick {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.fps-builder .fps-guide__chip {
	background: #1f1f1f;
	border: 1px solid #555;
	border-radius: 999px;
	color: #e6e6e6;
	cursor: pointer;
	font-size: 13px;
	padding: 6px 12px;
}

.fps-builder .fps-guide__chip:hover,
.fps-builder .fps-guide__chip.is-active {
	background: #12344a;
	border-color: #59a8d8;
}

.fps-guide__check {
	align-items: center;
	color: #c8c8c8;
	display: flex;
	font-size: 13px;
	gap: 8px;
	margin-top: 10px;
}

.fps-guide__priorities {
	display: grid;
	gap: 8px;
}

.fps-guide__priority {
	align-items: flex-start;
	background: #1f1f1f;
	border: 1px solid #555;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	gap: 10px;
	padding: 12px;
}

.fps-guide__priority.is-active {
	background: #12344a;
	border-color: #59a8d8;
}

.fps-guide__priority input {
	margin-top: 3px;
}

.fps-guide__priority-text {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	gap: 2px;
}

.fps-guide__priority-text span {
	color: #b8b8b8;
	font-size: 13px;
}

.fps-guide__plan {
	border-top: 1px solid #444;
	margin-bottom: 18px;
	padding-top: 14px;
}

.fps-builder .fps-guide__plan-title {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 10px;
}

.fps-builder .fps-guide__plan-list {
	display: grid;
	gap: 6px 16px;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.fps-builder .fps-guide__plan-list li,
.fps-builder .fps-guide__plan-list li strong {
	/* The theme gives list items a serif font. */
	font-family: inherit;
}

.fps-builder .fps-guide__plan-list li {
	border-bottom: 1px dotted #555;
	display: flex;
	font-size: 13px;
	justify-content: space-between;
	margin: 0;
	padding: 2px 0;
}

.fps-guide__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-top: 16px;
}

.fps-guide__actions .fps-builder__action-btn {
	width: auto;
}

/* Step rail */
.fps-guide__rail {
	margin-bottom: 12px;
	overflow-x: auto;
}

.fps-builder .fps-guide__rail ol {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0 0 4px;
}

.fps-builder .fps-guide__rail li {
	flex: 1 0 auto;
	margin: 0;
	padding: 0;
}

.fps-builder .fps-guide__rail-step {
	align-items: center;
	background: #2c2c2c;
	border: 1px solid #444;
	border-radius: 6px;
	color: #c8c8c8;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 12px;
	gap: 8px;
	height: 100%;
	max-width: 170px;
	padding: 6px 10px;
	text-align: left;
	width: 100%;
}

.fps-builder .fps-guide__rail-step.is-current {
	background: #12344a;
	border-color: #59a8d8;
	color: #ffffff;
}

.fps-guide__rail-num {
	align-items: center;
	background: #444;
	border-radius: 50%;
	color: #ffffff;
	display: inline-flex;
	flex: 0 0 20px;
	font-size: 11px;
	font-weight: 700;
	height: 20px;
	justify-content: center;
}

.fps-guide__rail-step.is-done .fps-guide__rail-num {
	background: #2e7d4f;
}

.fps-guide__rail-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fps-guide__rail-label {
	font-weight: 700;
	white-space: nowrap;
}

.fps-guide__rail-status {
	color: #b8b8b8;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Step content */
.fps-guide__target {
	background: #1f1f1f;
	border-left: 3px solid #59a8d8;
	font-size: 14px;
	margin: 0 0 14px;
	padding: 10px 12px;
}

.fps-guide__target span {
	color: #b8b8b8;
}

.fps-guide__target--over {
	border-left-color: #e0a800;
}

.fps-builder .fps-guide__picks {
	display: flex;
	flex-direction: column;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fps-builder .fps-guide__pick,
.fps-guide__chosen {
	align-items: center;
	background: #1f1f1f;
	border: 1px solid #444;
	border-radius: 6px;
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 10px 12px;
}

.fps-guide__chosen {
	border-color: #2e7d4f;
	margin-bottom: 4px;
}

.fps-guide__pick-info,
.fps-guide__chosen-info {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.fps-guide__chosen-label {
	color: #6fcf97;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fps-guide__pick-name {
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.fps-guide__pick-spec {
	color: #b8b8b8;
	font-size: 12px;
}

.fps-guide__pick-tags {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fps-guide__tag {
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
}

.fps-guide__tag--fit {
	background: #1d4a33;
	color: #9be3b9;
}

.fps-guide__tag--save {
	background: #12344a;
	color: #9fd2f2;
}

.fps-guide__tag--stretch {
	background: #4a3a12;
	color: #f2d79f;
}

.fps-guide__tag--closest {
	background: #3a3a3a;
	color: #d0d0d0;
}

.fps-guide__pick-note {
	color: #b8b8b8;
	font-size: 12px;
}

.fps-guide__pick-actions {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
}

.fps-guide__pick-actions .fps-builder__action-btn {
	width: auto;
}

.fps-guide__status {
	color: #b8b8b8;
	font-size: 13px;
	margin: 8px 0;
}

.fps-guide__status--error {
	color: #f1908c;
}

@media (max-width: 600px) {
	.fps-guide {
		padding: 16px;
	}

	.fps-builder .fps-guide__pick,
	.fps-guide__chosen {
		align-items: stretch;
		flex-direction: column;
	}

	.fps-guide__pick .fps-builder__result-thumb,
	.fps-guide__pick .fps-builder__result-thumb--placeholder {
		display: none;
	}

	.fps-guide__pick-actions {
		justify-content: space-between;
	}
}

.fps-builder__main,
.fps-builder__sidebar {
	min-width: 0;
}

/* ─────────────────────────────────────────────────────────────
 * Picker polish
 * ───────────────────────────────────────────────────────────── */
.fps-builder__modal-header-actions {
	align-items: center;
	display: flex;
	gap: 10px;
}

.fps-builder__modal-header-actions .fps-builder__modal-done {
	padding: 6px 14px;
	width: auto;
}

.fps-builder__modal-loading-more {
	align-self: center;
	color: #b8b8b8;
	font-size: 12px;
	margin-left: auto;
	padding-right: 16px;
}

.fps-builder__result-row.is-misfit {
	opacity: 0.75;
}

.fps-builder__result-row.is-current {
	box-shadow: inset 3px 0 0 #6fcf97;
}

.fps-builder__result-badge {
	background: #1d4a33;
	border-radius: 3px;
	color: #9be3b9;
	font-size: 11px;
	font-weight: 700;
	margin-left: 6px;
	padding: 1px 6px;
	white-space: nowrap;
}

.fps-builder__result-reason {
	color: #e0a800;
	font-size: 12px;
}

.fps-builder .fps-builder__misfit-toggle {
	background: none;
	border: 0;
	color: #59a8d8;
	cursor: pointer;
	font-size: 13px;
	margin: 12px 0 4px;
	padding: 0;
	text-align: left;
}

.fps-builder .fps-builder__misfit-toggle:hover {
	text-decoration: underline;
}

.fps-builder__modal-hint .fps-builder__retry {
	display: inline-block;
	margin-left: 10px;
	padding: 4px 12px;
	width: auto;
}

/* Toasts sit on <body>, so they carry their own text styling. */
.fps-builder__toast {
	align-items: center;
	display: flex;
	font-family: inherit;
	gap: 12px;
	line-height: 1.4;
}

.fps-builder__toast-action {
	background: none;
	border: 1px solid currentColor;
	border-radius: 3px;
	color: inherit;
	cursor: pointer;
	flex: 0 0 auto;
	font: inherit;
	font-size: 12px;
	padding: 3px 10px;
}

@media (max-width: 900px) {
	/* Clear the pinned totals bar. */
	.fps-builder__toasts {
		bottom: 84px;
		left: 12px;
		right: 12px;
	}

	.fps-builder__toast {
		max-width: none;
	}
}

@media (max-width: 600px) {
	/* The picker takes the whole screen on phones. */
	.fps-builder__modal-overlay:has(#fps-modal-results) {
		padding: 0;
	}

	.fps-builder__modal-overlay:has(#fps-modal-results) .fps-builder__modal {
		border: 0;
		border-radius: 0;
		height: 100%;
		max-height: 100dvh;
		max-width: 100%;
		width: 100%;
	}
}

/* ─────────────────────────────────────────────────────────────
 * Share dialog
 * ───────────────────────────────────────────────────────────── */
.fps-builder__share-section {
	border-top: 1px solid #444;
	margin-top: 16px;
	padding-top: 14px;
}

.fps-builder__share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0;
}

.fps-builder__share-buttons .fps-builder__action-btn {
	flex: 1 1 160px;
	width: auto;
}

.fps-builder__share-body .fps-builder__share-note {
	margin: 8px 0 0;
}

.fps-builder .fps-builder__share-copy-row input.fps-builder__share-url-input {
	box-sizing: border-box !important;
	height: auto;
	margin: 0;
	min-width: 0 !important;
}
