.fsp-quote-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.fsp-quote-shell,
.fsp-quote--embed {
	--fsp-quote-bg: transparent;
	--fsp-quote-panel: rgba(255, 255, 255, 0.72);
	--fsp-quote-border: rgba(203, 213, 225, 0.88);
	--fsp-quote-text: #0f172a;
	--fsp-quote-muted: #64748b;
	font-family: 'Vazirmatn', Tahoma, 'Segoe UI', system-ui, sans-serif;
	color: var(--fsp-quote-text);
}

body.fsp-quote {
	margin: 0;
	background: transparent;
	overflow-x: clip;
	max-width: 100%;
}

.fsp-quote-shell {
	min-height: 100vh;
	background: transparent;
	padding: 2rem 1rem 4rem;
}

body.fsp-quote--hub .fsp-quote-shell {
	padding-top: 0;
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 0;
}

body.fsp-quote--hub .fsp-quote-hero {
	max-width: none;
	width: 100%;
	margin-bottom: 0;
	min-height: 0;
	height: auto;
	max-height: none;
	padding: 0;
	align-items: center;
}

body.fsp-quote--hub .fsp-quote-hero__inner {
	width: 100%;
	max-width: 960px;
	margin-inline: auto;
	padding: 40px 20px 36px;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	text-align: center;
}

body.fsp-quote--hub .fsp-quote-hero.fsp-mhero--has-image {
	min-height: var(--fsp-module-hero-min);
	height: var(--fsp-module-hero-h);
	max-height: var(--fsp-module-hero-max);
}

body.fsp-quote--hub .fsp-quote-app {
	max-width: 960px;
	margin: 32px auto 48px;
	padding-inline: 20px;
	box-sizing: border-box;
}

body.fsp-quote--hub .fsp-quote-shell > .fsp-brand-trust {
	margin-top: 8px;
}

.fsp-quote-hero {
	max-width: 960px;
	margin: 0 auto 1.5rem;
	text-align: center;
}

.fsp-quote-hero--compact {
	text-align: start;
	margin-bottom: 1rem;
}

.fsp-quote-kicker {
	color: var(--fsp-hero-muted, #94a3b8);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.75rem;
	margin: 0 0 0.5rem;
}

.fsp-quote-hero h1,
.fsp-quote-hero h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.fsp-quote-hero p,
.fsp-quote-help {
	margin: 0;
}

.fsp-quote-app {
	max-width: 960px;
	margin: 0 auto;
	display: grid;
	gap: 1rem;
}

.fsp-quote-panel {
	background: var(--fsp-quote-panel);
	border: 1px solid var(--fsp-quote-border);
	border-radius: 16px;
	padding: 1.25rem;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.fsp-quote-panel h2 {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
}

.fsp-quote-notice {
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	background: rgba(46, 160, 67, 0.15);
	border: 1px solid rgba(46, 160, 67, 0.35);
}

.fsp-quote-notice.is-error {
	background: rgba(248, 81, 73, 0.12);
	border-color: rgba(248, 81, 73, 0.35);
}

.fsp-quote-picker {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.fsp-quote-picker__toolbar {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	margin-bottom: 0;
}

.fsp-quote-item-field__label {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--fsp-quote-text);
}

.fsp-quote-filter {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.fsp-quote-filter--product {
	margin-top: 0.25rem;
}

/* Legacy quote UI (picker button / sheet) — hide if old HTML still cached on server */
.fsp-quote-picker-btn,
.fsp-quote-menu,
.fsp-quote-sheet,
#fsp-quote-picker-btn,
#fsp-quote-menu,
#fsp-quote-sheet {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

.fsp-quote-select--product {
	display: block;
	width: 100%;
	min-height: 52px;
	font-weight: 600;
	border: 2px solid rgba(30, 64, 175, 0.38);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.fsp-quote-filter__label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--fsp-quote-muted);
}

.fsp-quote-btn--submit {
	width: 100%;
	min-height: 52px;
	font-size: 1rem;
}

.fsp-quote-config__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem;
	margin-top: 0.25rem;
}

.fsp-quote-config__actions .fsp-quote-qty {
	margin-right: 0;
}

@media (min-width: 721px) {
	.fsp-quote-picker__toolbar {
		grid-template-columns: minmax(160px, 220px) 1fr;
	}
}

.fsp-quote-input,
.fsp-quote-select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--fsp-quote-border);
	background: #fff;
	color: var(--fsp-quote-text);
	border-radius: 10px;
	padding: 0.65rem 0.85rem;
	min-height: 48px;
	font-family: inherit;
}

.fsp-quote-select {
	appearance: auto;
	-webkit-appearance: menulist;
}

.fsp-quote-input--qty {
	max-width: 120px;
}

.fsp-quote-results {
	display: none;
}

.fsp-quote-config {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--fsp-quote-border);
}

.fsp-quote-config h3 {
	margin: 0 0 0.75rem;
}

.fsp-quote-specs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.fsp-quote-spec {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.9rem;
}

.fsp-quote-spec__label {
	font-weight: 600;
	color: var(--fsp-quote-text);
}

.fsp-quote-qty {
	display: inline-flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-right: 0.75rem;
}

.fsp-quote-btn {
	border: 0;
	border-radius: 999px;
	padding: 0.65rem 1.25rem;
	cursor: pointer;
	font-weight: 600;
}

.fsp-quote-btn--primary {
	background: linear-gradient(135deg, var(--fsp-brand-blue, #1e40af), #172554);
	color: var(--fsp-brand-gold, #ffcc00);
}

.fsp-quote-btn--primary:hover {
	color: var(--fsp-brand-gold, #ffcc00);
}

.fsp-quote-btn--ghost {
	background: transparent;
	color: var(--fsp-quote-muted);
	border: 1px solid var(--fsp-quote-border);
}

.fsp-quote-cart-item {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--fsp-quote-border);
}

.fsp-quote-cart-item:last-child {
	border-bottom: 0;
}

.fsp-quote-cart-item__meta {
	display: block;
	color: var(--fsp-quote-muted);
	font-size: 0.85rem;
	margin-top: 0.25rem;
}

.fsp-quote-contact {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.fsp-quote-contact label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.fsp-quote-contact label:last-of-type,
.fsp-quote-contact button {
	grid-column: 1 / -1;
}

.fsp-quote-empty,
.fsp-quote-loading {
	color: var(--fsp-quote-muted);
	margin: 0;
}

@media (max-width: 1024px) {
	.fsp-quote-picker__toolbar,
	.fsp-quote-contact {
		grid-template-columns: 1fr;
	}

	body.fsp-quote--hub .fsp-quote-hero__inner {
		padding: 28px var(--fsp-page-pad-x, 16px) 24px;
	}

	body.fsp-quote--hub .fsp-quote-app {
		margin: 24px auto 40px;
		padding-inline: var(--fsp-page-pad-x, 16px);
	}

	.fsp-quote-results {
		display: none;
	}

	.fsp-quote-config__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.fsp-quote-config__actions .fsp-quote-btn {
		width: 100%;
	}

	.fsp-quote-select--product {
		min-height: 56px;
		font-size: 16px;
	}

	.fsp-quote-input,
	.fsp-quote-select {
		font-size: 16px;
		min-height: 44px;
	}

	.fsp-quote-input--qty {
		max-width: none;
		width: 100%;
	}

	.fsp-quote-specs {
		grid-template-columns: 1fr;
	}

	.fsp-quote-cart-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.fsp-quote-panel {
		padding: 1rem;
	}

	.fsp-quote-btn--submit {
		min-height: 56px;
		font-size: 16px;
	}

	body.fsp-quote--hub .fsp-quote-app {
		margin-bottom: calc(40px + var(--fsp-mobile-dock-h, 56px));
	}
}

@media (max-width: 640px) {
	body.fsp-quote--hub .fsp-quote-shell {
		padding: 0;
	}

	body:not(.fsp-quote--hub) .fsp-quote-shell {
		padding: 1.5rem var(--fsp-page-pad-x, 16px) 3rem;
	}
}
