/* Marker the script checks to see whether this file survived optimizers. */
.pq-css-probe { z-index: 7351; position: absolute; }

/* Premier Quotes — matches premier.boston (navy buttons, pill inputs). Override the variables in your theme to restyle. */
.pq-wrap {
	--pq-primary: #2c5286;
	--pq-primary-dark: #1f3d66;
	--pq-accent: #26a69a;
	--pq-border: #c4c9d0;
	--pq-muted: #6b7280;
	--pq-error: #c0392b;
	--pq-bg-soft: #f3f6fa;
	--pq-radius: 30px;
	box-sizing: border-box;
	max-width: 640px;
	margin: 0 auto;
	color: inherit;
}
.pq-wrap *, .pq-wrap *::before, .pq-wrap *::after { box-sizing: inherit; }
.pq-wrap [hidden] { display: none !important; }

/* Buttons (fallback colors: buttons can sit outside .pq-wrap, e.g. on product pages) */
.pq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 26px;
	border: 2px solid var(--pq-primary, #2c5286);
	border-radius: var(--pq-radius, 30px);
	background: var(--pq-primary, #2c5286);
	color: #fff !important;
	font-size: 18px;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.pq-btn:hover, .pq-btn:focus-visible { background: var(--pq-primary-dark, #1f3d66); border-color: var(--pq-primary-dark, #1f3d66); }
.pq-btn-secondary { background: #fff; color: var(--pq-primary, #2c5286) !important; }
.pq-btn-secondary:hover, .pq-btn-secondary:focus-visible { background: var(--pq-bg-soft, #f3f6fa); }
.pq-wrap button:focus-visible, .pq-wrap a:focus-visible, .pq-wrap input:focus-visible, .pq-wrap select:focus-visible, .pq-wrap textarea:focus-visible {
	outline: 3px solid rgba(44, 82, 134, .35);
	outline-offset: 2px;
}

/* Stepper */
.pq-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--pq-border); border-radius: var(--pq-radius); overflow: hidden; background: #fff; }
.pq-stepper button {
	width: 44px; min-height: 44px; border: 0; background: var(--pq-bg-soft); color: var(--pq-primary);
	font-size: 22px; line-height: 1; cursor: pointer; padding: 0;
}
.pq-stepper button:hover { background: #e3eaf3; }
.pq-stepper input[type=number] {
	width: 52px; border: 0; text-align: center; font-size: 18px; padding: 0; margin: 0; background: #fff;
	-moz-appearance: textfield; appearance: textfield; border-radius: 0; height: auto; box-shadow: none;
}
.pq-stepper input::-webkit-outer-spin-button, .pq-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Units grid ([premier_quote_units]) */
.pq-units { max-width: 1080px; }
.pq-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 20px; }
.pq-card { flex: 0 1 calc(50% - 10px); min-width: 0; }
@media (min-width: 900px) { .pq-card { flex-basis: calc(33.333% - 14px); } }
.pq-card { margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pq-card-img img { display: block; max-width: 100%; height: auto; max-height: 240px; object-fit: contain; margin: 0 auto 12px; }
.pq-card-title { margin: 0 0 14px; font-size: 20px; line-height: 1.2; text-transform: uppercase; flex-grow: 1; padding: 0; }
.pq-card-title a { color: var(--pq-primary); text-decoration: none; }
.pq-card .pq-add { width: 100%; max-width: 220px; }
.pq-card-added { display: block; margin-top: 6px; font-size: 14px; color: var(--pq-accent); font-weight: 600; }

.pq-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	/* Full-width navy bar; on wide screens its content lines up with a 1080px page column. */
	padding: 10px max(16px, calc((100vw - 1080px) / 2)) calc(10px + env(safe-area-inset-bottom));
	background: var(--pq-primary, #2c5286); color: #fff;
	box-shadow: 0 -6px 20px rgba(15, 30, 55, .18);
	animation: pq-bar-in .25s ease-out;
}
@keyframes pq-bar-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .pq-sticky { animation: none; } }
.pq-sticky-count { font-weight: 700; font-size: 16px; color: #fff; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 480px) { .pq-sticky-count { font-size: 13px; letter-spacing: .03em; } .pq-sticky .pq-btn { padding: 8px 18px; font-size: 16px; } }
.pq-sticky .pq-btn { min-height: 46px; padding: 8px 24px; font-size: 17px; font-weight: 700; white-space: nowrap; background: var(--pq-cta, #7ebec5); border-color: var(--pq-cta, #7ebec5); }
.pq-sticky .pq-btn:hover, .pq-sticky .pq-btn:focus-visible { background: var(--pq-cta-dark, #68adb5); border-color: var(--pq-cta-dark, #68adb5); }
.pq-sticky .pq-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
body.pq-has-sticky { padding-bottom: 76px; }
/* Lift chat bubbles (Tidio on premier.boston, and other common widgets) above the quote bar while it shows. */
body.pq-has-sticky #tidio-chat-iframe, body.pq-has-sticky #tidio-chat { bottom: 76px !important; transition: bottom .2s; }
@media (min-width: 900px) { body.pq-has-sticky #tidio-chat-iframe, body.pq-has-sticky #tidio-chat { bottom: 84px !important; } }
body.pq-has-sticky .tawk-min-container, body.pq-has-sticky #launcher, body.pq-has-sticky .intercom-lightweight-app-launcher, body.pq-has-sticky #hubspot-messages-iframe-container { bottom: 84px !important; }

/* Form */
.pq-form { margin: 0; }
.pq-required-note { font-size: 14px; color: var(--pq-muted); margin: 0 0 8px; }
.pq-req { color: var(--pq-error); }
.pq-alert { border-left: 4px solid var(--pq-error); background: #fdf1f0; padding: 12px 16px; margin: 0 0 16px; border-radius: 4px; }
.pq-progress { display: none; margin: 0 0 20px; }
.pq-js .pq-progress { display: block; }
.pq-progress-label { margin: 0 0 6px; font-size: 14px; color: var(--pq-muted); }
.pq-progress-bar { height: 22px; border-radius: 11px; background: #e5e7eb; overflow: hidden; }
.pq-progress-bar span { display: block; height: 100%; width: 33%; background: var(--pq-primary); border-radius: 11px; transition: width .25s; }

.pq-step { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.pq-js .pq-step { display: none; margin-bottom: 8px; }
.pq-js .pq-step.is-active { display: block; }
.pq-step-title { font-size: 26px; line-height: 1.2; padding: 0 0 14px; margin: 0 0 18px; border-bottom: 1px solid #d1d5db; width: 100%; float: left; }
.pq-step-title + * { clear: both; }
.pq-help { color: var(--pq-muted); margin: 0 0 12px; clear: both; }

.pq-unit-list { list-style: none; margin: 0; padding: 0; }
.pq-unit-row {
	display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px;
	padding: 10px 12px; margin: 0 0 10px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff;
	transition: border-color .15s, background .15s;
}
.pq-unit-row.is-selected { border-color: var(--pq-primary); background: var(--pq-bg-soft); }
.pq-unit-img { width: 56px; height: 56px; object-fit: contain; mix-blend-mode: multiply; }
.pq-unit-name { font-weight: 600; color: var(--pq-primary); line-height: 1.25; margin: 0; }
@media (max-width: 380px) {
	.pq-unit-row { grid-template-columns: 44px 1fr; }
	.pq-unit-img { width: 44px; height: 44px; }
	.pq-unit-row .pq-stepper { grid-column: 1 / -1; justify-self: end; }
}
.pq-unit-total { font-weight: 600; margin: 4px 0 0; min-height: 1.5em; }

.pq-field { margin: 0 0 18px; }
.pq-group-label { font-weight: 600; margin: 0 0 10px; clear: both; }
.pq-field label { display: block; margin: 0 0 6px; color: #444; }
/* .pq-wrap prefix: themes such as Divi style input[type=text] etc. with equal specificity and load later. */
.pq-wrap .pq-field input, .pq-wrap .pq-field select, .pq-wrap .pq-field textarea {
	display: block; width: 100%; min-height: 50px; padding: 10px 20px; font-size: 17px;
	border: 1px solid var(--pq-border); border-radius: var(--pq-radius); background: #fff; color: inherit; font-family: inherit; box-shadow: none; margin: 0;
}
.pq-wrap .pq-field textarea { border-radius: 20px; min-height: 96px; resize: vertical; }
.pq-wrap .pq-field select { -webkit-appearance: auto; appearance: auto; }
/* Keep the native date picker (Divi sets appearance: none, which leaves an empty box on Android). */
.pq-wrap .pq-field input[type=date] { -webkit-appearance: auto; appearance: auto; }
.pq-wrap .pq-field-date input { max-width: 260px; }
.pq-wrap .pq-field.has-error input, .pq-wrap .pq-field.has-error select, .pq-wrap .pq-field.has-error textarea { border-color: var(--pq-error); }
.pq-error { color: var(--pq-error); font-size: 15px; margin: 6px 0 0; }

.pq-nav { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 0; padding-bottom: 48px; } /* room before the site footer */
.pq-js .pq-prev[hidden], .pq-js .pq-next[hidden], .pq-js .pq-submit[hidden] { display: none; }
.pq-prev, .pq-next { display: none; }
.pq-js .pq-prev, .pq-js .pq-next { display: inline-flex; }

/* Card layout for step 1 (default): big photos with "Add to Quote", like the units section */
.pq-unit-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 20px; }
.pq-unit-cards .pq-unit-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 16px 12px 18px; margin: 0; border: 1px solid transparent; border-radius: 16px; background: transparent; }
.pq-unit-cards .pq-unit-card.is-selected { border-color: var(--pq-primary); background: var(--pq-bg-soft); }
.pq-card-photo { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; } /* white photo backgrounds blend into a selected card */
.pq-unit-card .pq-unit-name { font-size: 17px; font-weight: 700; text-transform: uppercase; line-height: 1.25; flex-grow: 1; display: flex; align-items: center; }
.pq-unit-card .pq-card-add { display: none; width: 100%; max-width: 200px; min-height: 46px; padding: 8px 12px; font-size: 16px; white-space: nowrap; }
.pq-js .pq-unit-card:not(.is-selected) .pq-card-add { display: inline-flex; }
.pq-js .pq-unit-card:not(.is-selected) .pq-stepper { display: none; }
@media (max-width: 420px) { .pq-unit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; } .pq-unit-card .pq-unit-name { font-size: 14px; } }
/* Let the cards use the full width; keep the text steps at a readable width. */
.pq-wrap.pq-layout-cards { max-width: 1120px; }
.pq-layout-cards .pq-required-note, .pq-layout-cards .pq-progress, .pq-layout-cards .pq-alert,
.pq-layout-cards .pq-step:not([data-step="1"]), .pq-layout-cards .pq-nav { max-width: 720px; margin-left: auto; margin-right: auto; }
.pq-layout-cards .pq-step[data-step="1"] .pq-unit-total, .pq-layout-cards .pq-step[data-step="1"] .pq-units-error { text-align: center; }
.pq-layout-cards .pq-form.pq-on-step-1 .pq-nav { justify-content: center; }

/* "Your quote" box (default): units picked around the site, adjustable here */
.pq-units-box { border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px 16px 6px; margin: 0 0 24px; background: #fff; }
.pq-units-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.pq-units-box-title { font-size: 20px; line-height: 1.2; margin: 0; padding: 0; }
.pq-more-units { background: none; border: 0; padding: 4px 0; color: var(--pq-primary); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pq-units-box:not(.has-picks) .pq-more-units, .pq-units-box.show-all .pq-more-units { display: none; }
.pq-units-box.has-picks .pq-empty-help { display: none; }
.pq-units-box.has-picks:not(.show-all) .pq-unit-row:not(.is-selected) { display: none; }
.pq-units-box .pq-unit-total { margin: 0 0 10px; }

/* Wider screens: pair short fields side by side */
@media (min-width: 640px) {
	.pq-wrap { max-width: 720px; }
	.pq-units { max-width: 1080px; }
	.pq-step, .pq-js .pq-step.is-active { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 16px; }
	.pq-js .pq-step { display: none; }
	.pq-step > * { grid-column: 1 / -1; }
	.pq-step > .pq-field-name, .pq-step > .pq-field-business, .pq-step > .pq-field-email, .pq-step > .pq-field-phone { grid-column: span 3; }
	.pq-step > .pq-field-city, .pq-step > .pq-field-state, .pq-step > .pq-field-zip { grid-column: span 2; }
}

.pq-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.pq-success { background: var(--pq-bg-soft); border-radius: 16px; padding: 24px; text-align: center; }
.pq-success h3 { margin: 0 0 8px; color: var(--pq-primary); }
.pq-quote-button { margin: 12px 0; }
/* A template-placed button (YITH shortcode) wins over the summary-hook one. */
body:has(.pq-compat-button) .pq-single-hook { display: none; }

/* Quote control inside theme product lists (Divi Woo Products, shop pages) */
.pq-wrap.pq-loop { margin: 12px auto 0; text-align: center; max-width: none; }
.pq-loop .pq-quote-button { margin: 0; white-space: nowrap; font-size: 16px; min-height: 44px; padding: 8px 20px; }
@media (max-width: 480px) { .pq-loop .pq-quote-button { font-size: 15px; padding: 8px 14px; min-height: 42px; } }
.pq-loop .pq-stepper { margin: 0 auto; }

/* Google address suggestions above the sticky bar and theme headers */
.pac-container { z-index: 100000; }
