/* Flyout Quote Sheet (1.8.0) — the cart's "Generate Quote" sheet. Same language as the cart and account pages:
 * the hero gradient (#006cfa → #234191 → #a8007e) with the green/blue/magenta stripe, Lexend Deca, navy text,
 * #fafbff fields, the green quote button. */

html.fq-lock,
html.fq-lock body { overflow: hidden !important; }

.fq-overlay,
.fq-overlay * {
	box-sizing: border-box;
	font-family: 'Lexend Deca', sans-serif;
}
.fq-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483646;   /* above the site header (.psehd is 2147483640) */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(14, 22, 64, 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.fq-overlay[hidden] { display: none; }
.fq-overlay.is-open { opacity: 1; }

.fq-sheet {
	position: relative;
	width: 100%;
	max-width: 620px;
	max-height: min(860px, calc(100vh - 48px));
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(14, 22, 64, 0.35);
	transform: translateY(14px) scale(0.985);
	transition: transform 0.22s ease;
}
.fq-overlay.is-open .fq-sheet { transform: none; }

/* ---------------------------------------------------------------- header */
.fq-head {
	position: relative;
	flex: none;
	padding: 22px 28px 20px;
	color: #ffffff;
	background:
		radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.16) 0%, transparent 35%),
		radial-gradient(circle at 85% 90%, rgba(168, 0, 126, 0.45) 0%, transparent 50%),
		linear-gradient(135deg, #006cfa 0%, #234191 55%, #a8007e 100%);
	overflow: hidden;
}
.fq-head::after {
	content: '';
	position: absolute;
	width: 180px;
	height: 180px;
	top: -90px;
	right: -40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}
.fq-head__stripe {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: linear-gradient(90deg, #488c00 0%, #006cfa 50%, #a8007e 100%);
}
.fq-head__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	z-index: 1;
}
.fq-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	padding: 6px 13px;
	border-radius: 999px;
}
.fq-pill svg { width: 13px; height: 13px; }
.fq-close {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s;
}
.fq-close:hover { background: rgba(255, 255, 255, 0.3); }
.fq-overlay .fq-title {
	position: relative;
	z-index: 1;
	margin: 14px 0 4px !important;
	font-size: 26px !important;
	font-weight: 800 !important;
	letter-spacing: -0.6px !important;
	line-height: 1.2 !important;
	color: #ffffff !important;
	text-transform: none !important;
	font-family: 'Lexend Deca', sans-serif !important;
}
.fq-sub {
	position: relative;
	z-index: 1;
	margin: 0 !important;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.86);
}
.fq-dots {
	position: absolute;
	right: 28px;
	bottom: 22px;
	display: flex;
	gap: 6px;
	z-index: 1;
}
.fq-dots span {
	width: 22px;
	height: 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.3);
	transition: background 0.2s;
}
.fq-dots span.is-on { background: #fbbf24; }

/* ---------------------------------------------------------------- body */
.fq-body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 24px 28px 26px;
	color: #234191;
	transition: opacity 0.15s;
}
.fq-body.is-busy { opacity: 0.55; pointer-events: none; }
.fq-find { min-height: 380px; }
.fq-loading { display: flex; justify-content: center; padding: 60px 0; }
.fq-spin {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 3px solid rgba(0, 108, 250, 0.18);
	border-top-color: #006cfa;
	animation: fq-spin 0.7s linear infinite;
}
@keyframes fq-spin { to { transform: rotate(360deg); } }

.fq-chosen {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(0, 108, 250, 0.06), rgba(168, 0, 126, 0.05));
	border: 1.5px solid rgba(0, 108, 250, 0.18);
	margin-bottom: 20px;
}
.fq-chosen__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fq-chosen__main b { font-size: 16px; font-weight: 800; color: #1a3a8a; line-height: 1.3; }
.fq-chosen__main span { font-size: 12.5px; color: #6b7290; }

.fq-block { margin: 0 0 20px; }
.fq-block__head { display: flex; align-items: center; justify-content: space-between; }
.fq-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #6b7290;
	margin-bottom: 8px;
}
.fq-block__head .fq-label { margin-bottom: 8px; }
.fq-addr {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #fafbff;
	border: 1.5px solid rgba(35, 65, 145, 0.1);
	font-size: 14px;
	line-height: 1.45;
	color: #234191;
}
.fq-addr b { font-weight: 700; color: #1a3a8a; }
.fq-addr--soft { margin-top: 10px; color: #6b7290; }
.fq-addr[hidden], .fq-grid[hidden] { display: none; }

.fq-link {
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	color: #006cfa !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	cursor: pointer;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.fq-link:hover { text-decoration: underline; }
.fq-back { display: block; margin: 14px auto 0; }

/* bill-to choice — pill segments */
.fq-seg {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.fq-seg button {
	border: 1.5px solid rgba(35, 65, 145, 0.15) !important;
	background: #ffffff !important;
	color: #234191 !important;
	border-radius: 999px !important;
	padding: 8px 14px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	transition: all 0.15s;
}
.fq-seg button:hover { border-color: rgba(0, 108, 250, 0.4) !important; }
.fq-seg button.is-on {
	background: linear-gradient(135deg, #006cfa 0%, #0050d4 100%) !important;
	border-color: transparent !important;
	color: #ffffff !important;
	box-shadow: 0 6px 16px rgba(0, 108, 250, 0.25) !important;
}

/* fields — the account page's inputs */
.fq-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 14px;
}
.fq-block .fq-grid[data-form] { margin-top: 10px; }
.fq-span2 { grid-column: 1 / -1; }
.fq-field label {
	display: block;
	font-size: 12px !important;
	font-weight: 700 !important;
	color: #6b7290 !important;
	letter-spacing: 0.4px !important;
	text-transform: uppercase !important;
	margin: 0 !important;
}
.fq-opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: #8a91ad; }
.fq-field--pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.fq-overlay .fq-field input,
.fq-overlay .fq-field select {
	display: block;
	width: 100% !important;
	margin: 7px 0 0 !important;
	border: 1.5px solid rgba(35, 65, 145, 0.15) !important;
	border-radius: 10px !important;
	padding: 12px 14px !important;
	font-size: 15px !important;
	font-weight: 500;
	color: #234191 !important;
	background: #fafbff !important;
	box-shadow: none !important;
	height: auto !important;
	line-height: 1.4 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.fq-overlay .fq-field select { padding: 11px 10px !important; }
.fq-overlay .fq-field input:focus,
.fq-overlay .fq-field select:focus {
	border-color: #006cfa !important;
	background: #ffffff !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(0, 108, 250, 0.12) !important;
}
.fq-overlay .fq-field .is-bad {
	border-color: #a8007e !important;
	box-shadow: 0 0 0 3px rgba(168, 0, 126, 0.12) !important;
}
.fq-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.fq-error {
	margin: 4px 0 14px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #fdf0f7;
	border: 1.5px solid rgba(168, 0, 126, 0.25);
	color: #8a0068;
	font-size: 14px;
	font-weight: 600;
}

/* the primary action — the cart's green quote button */
.fq-go {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin-top: 6px;
	border: 0 !important;
	border-radius: 12px !important;
	padding: 17px 22px !important;
	background: linear-gradient(135deg, #488c00 0%, #2d6500 100%) !important;
	color: #ffffff !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	letter-spacing: 0.6px !important;
	text-transform: uppercase !important;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(72, 140, 0, 0.28) !important;
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.fq-go:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(72, 140, 0, 0.35) !important; }
.fq-go svg { width: 18px; height: 18px; }
.fq-go--blue {
	background: linear-gradient(135deg, #006cfa 0%, #0050d4 100%) !important;
	box-shadow: 0 8px 22px rgba(0, 108, 250, 0.25) !important;
	margin-top: 18px;
}
.fq-go[disabled] { opacity: 0.8; cursor: default; transform: none; }
.fq-go.is-busy svg { animation: fq-pulse 0.9s ease-in-out infinite; }
@keyframes fq-pulse { 50% { opacity: 0.35; } }
.fq-fine {
	margin: 12px 0 0 !important;
	text-align: center;
	font-size: 12px;
	color: #6b7290;
	line-height: 1.5;
}

/* ---------------------------------------------------------------- phone: a bottom sheet */
@media (max-width: 640px) {
	.fq-overlay { padding: 0; align-items: flex-end; }
	.fq-sheet {
		max-width: none;
		max-height: 94vh;
		border-radius: 22px 22px 0 0;
		transform: translateY(40px);
	}
	.fq-head { padding: 18px 18px 16px; }
	.fq-overlay .fq-title { font-size: 22px !important; margin-top: 12px !important; }
	.fq-dots { right: 18px; bottom: 18px; }
	.fq-body { padding: 18px 16px calc(22px + env(safe-area-inset-bottom)); }
	.fq-find { min-height: 60vh; }
	.fq-grid { grid-template-columns: 1fr; }
	.fq-overlay .fq-field input, .fq-overlay .fq-field select { font-size: 16px !important; }
}

/* 1.10.5: on phones HubSpot's chat launcher sat over "Create my quote" (BRAIN qa-verifier 2026-10-05). While the sheet
   is open it steps aside, and it comes back when the sheet closes. html.fq-lock + the id beats HubSpot's own
   #hubspot-messages-iframe-container rules (tested on live). Desktop is unchanged: the sheet is a centred dialog there. */
@media (max-width: 640px) {
	html.fq-lock body #hubspot-messages-iframe-container { visibility: hidden !important; pointer-events: none !important; }
}
