/* Quote Rebid: window and door designer */
.qb {
	--qb-brand: #1D4ED8;
	--qb-brand-dark: #1E3A8A;
	--qb-accent: #FACC15;
	--qb-ink: #0F172A;
	--qb-text: #475569;
	--qb-muted: #94A3B8;
	--qb-line: #E2E8F0;
	--qb-pale: #EFF6FF;
	--qb-radius: 20px;
	--qb-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 18px 40px -18px rgba(30, 58, 138, .25);
	max-width: 1180px;
	margin: 0 auto;
	font-family: inherit;
	color: var(--qb-text);
	-webkit-font-smoothing: antialiased;
}
.qb *, .qb *::before, .qb *::after { box-sizing: border-box; }
.qb [hidden] { display: none !important; }
.qb.qb button, .qb.qb button:focus { font-family: inherit; cursor: pointer; }
.qb h2, .qb h3, .qb h4 { color: var(--qb-ink); margin: 0; letter-spacing: -.3px; }
.qb-alert { padding: 14px 18px; border-radius: 14px; background: #FEF2F2; color: #B91C1C; margin: 0 0 18px; font-weight: 600; }
.qb .qr-hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }

/* Progress */
.qb-progress { list-style: none; margin: 0 0 22px; padding: 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #fff; border: 1px solid var(--qb-line); border-radius: 999px; box-shadow: var(--qb-shadow); }
.qb-progress li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--qb-muted); margin: 0; transition: .25s; }
.qb-progress li span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--qb-line); color: var(--qb-text); font-size: 13px; }
.qb-progress li.is-active { background: var(--qb-brand); color: #fff; }
.qb-progress li.is-active span { background: var(--qb-accent); color: var(--qb-ink); }
.qb-progress li.is-done { color: var(--qb-brand); }
.qb-progress li.is-done span { background: var(--qb-pale); color: var(--qb-brand); }
@media (max-width: 560px) { .qb-progress li { font-size: 12px; gap: 6px; padding: 8px 6px; } }

/* Design view */
.qb-design { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.qb-stage { position: sticky; top: 110px; background: #fff; border: 1px solid var(--qb-line); border-radius: var(--qb-radius); box-shadow: var(--qb-shadow); padding: 18px; overflow: hidden; }
.qb-canvas { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: 16px; background:
	radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .9), transparent 50%),
	linear-gradient(rgba(29, 78, 216, .05) 1px, transparent 1px) 0 0 / 28px 28px,
	linear-gradient(90deg, rgba(29, 78, 216, .05) 1px, transparent 1px) 0 0 / 28px 28px,
	linear-gradient(180deg, #F5F9FF, #E8F0FC); }
.qb-canvas svg { width: 92%; height: 92%; overflow: visible; filter: drop-shadow(0 18px 24px rgba(15, 23, 42, .18)); animation: qbPop .35s ease; }
@keyframes qbPop { from { opacity: .4; transform: scale(.985); } to { opacity: 1; transform: none; } }
.qb-pane { cursor: pointer; }
.qb-pane:hover .qb-hit { fill: rgba(250, 204, 21, .22); }
.qb.qb .qb-switch, .qb.qb .qb-switch:focus { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--qb-pale); border-radius: 999px; margin-bottom: 14px; }
.qb.qb .qb-switch button, .qb.qb .qb-switch button:focus { border: 0; background: transparent; padding: 10px 26px; border-radius: 999px; font-weight: 800; font-size: 15px; color: var(--qb-brand); transition: .2s; }
.qb.qb .qb-switch button.is-on { background: var(--qb-brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(29, 78, 216, .7); }
.qb-summary { margin-top: 14px; display: grid; gap: 4px; }
.qb-summary strong { color: var(--qb-ink); font-size: 17px; }
.qb-summary span { font-size: 14px; line-height: 1.5; }

.qb-panel { display: grid; gap: 14px; }
.qb-group { background: #fff; border: 1px solid var(--qb-line); border-radius: var(--qb-radius); padding: 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.qb-group h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 14px; }
.qb-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--qb-accent); color: var(--qb-ink); font-size: 14px; font-weight: 800; }
.qb-hint { font-size: 13px; line-height: 1.55; margin: -6px 0 12px; color: var(--qb-text); }
.qb-lbl { display: block; font-size: 13px; font-weight: 700; color: var(--qb-ink); margin: 12px 0 8px; text-transform: none; }
.qb-lbl:first-child { margin-top: 0; }

.qb.qb .qb-chips, .qb.qb .qb-chips:focus { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.qb.qb .qb-chips:first-child { margin-top: 0; }
.qb.qb .qb-chip, .qb.qb .qb-chip:focus { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1.5px solid var(--qb-line); background: #fff; color: var(--qb-ink); padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.25; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; text-align: left; }
.qb.qb .qb-chip small, .qb.qb .qb-chip small:focus { font-weight: 500; font-size: 12px; color: var(--qb-text); }
.qb.qb .qb-chip:hover { border-color: var(--qb-brand); transform: translateY(-1px); }
.qb.qb .qb-chip.is-on { border-color: var(--qb-brand); background: var(--qb-pale); color: var(--qb-brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
.qb.qb .qb-chips--cards, .qb.qb .qb-chips--cards:focus { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.qb.qb .qb-chips--cards .qb-chip, .qb.qb .qb-chips--cards .qb-chip:focus { padding: 12px 14px; min-height: 68px; }
.qb.qb .qb-chips--sm .qb-chip, .qb.qb .qb-chips--sm .qb-chip:focus { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.qb.qb .qb-chip--tog, .qb.qb .qb-chip--tog:focus { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.qb-tick { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--qb-muted); display: inline-grid; place-items: center; flex: 0 0 auto; transition: .15s; }
.qb.qb .qb-chip--tog.is-on .qb-tick { background: var(--qb-brand); border-color: var(--qb-brand); }
.qb.qb .qb-chip--tog.is-on .qb-tick::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.qb-pane-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--qb-line); }
.qb-pane-row .qb-lbl { margin: 0; }
.qb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.qb-row .qb-lbl { margin: 0; }

.qb-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1.5px solid var(--qb-line); border-radius: 12px; background: #fff; }
.qb.qb .qb-stepper button, .qb.qb .qb-stepper button:focus { width: 36px; height: 36px; border: 0; border-radius: 9px; background: var(--qb-pale); color: var(--qb-brand); font-size: 20px; font-weight: 700; line-height: 1; }
.qb.qb .qb-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.qb-stepper span { min-width: 30px; text-align: center; font-weight: 800; color: var(--qb-ink); font-size: 16px; }

.qb.qb .qb-swatches, .qb.qb .qb-swatches:focus { display: flex; flex-wrap: wrap; gap: 8px; }
.qb.qb .qb-sw, .qb.qb .qb-sw:focus { width: 40px; height: 40px; border-radius: 50%; padding: 3px; border: 2px solid transparent; background: transparent; transition: .15s; }
.qb.qb .qb-sw span, .qb.qb .qb-sw span:focus { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .15), inset 0 -6px 10px rgba(0, 0, 0, .12); }
.qb.qb .qb-sw:hover { transform: scale(1.08); }
.qb.qb .qb-sw.is-on { border-color: var(--qb-brand); }
.qb.qb .qb-swname, .qb.qb .qb-swname:focus { font-size: 13px; margin: 8px 0 0; font-weight: 600; color: var(--qb-ink); }
.qb.qb .qb-link, .qb.qb .qb-link:focus { border: 0; background: none; padding: 0; margin-top: 10px; color: var(--qb-brand); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.qb-size { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 10px; }
.qb-size label { flex: 1; display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--qb-ink); }
.qb-x { padding-bottom: 14px; font-size: 18px; color: var(--qb-muted); }
.qb input[type=number], .qb input[type=text], .qb input[type=email], .qb input[type=tel], .qb textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--qb-line); border-radius: 12px; background: #fff; font: 500 15px/1.4 inherit; font-family: inherit; color: var(--qb-ink); transition: border-color .2s, box-shadow .2s;
}
.qb input:focus, .qb textarea:focus { outline: none; border-color: var(--qb-brand); box-shadow: 0 0 0 4px rgba(29, 78, 216, .12); }
.qb .is-bad { border-color: #DC2626 !important; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1) !important; }
.qb input[type=file] { width: 100%; padding: 18px 14px; border: 2px dashed rgba(29, 78, 216, .4); border-radius: 14px; background: var(--qb-pale); font: 500 14px inherit; font-family: inherit; }
.qb input[type=file]::file-selector-button { margin-right: 12px; padding: 9px 14px; border: 0; border-radius: 10px; background: var(--qb-brand); color: #fff; font-weight: 700; font-family: inherit; cursor: pointer; }

.qb-field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--qb-ink); }
.qb-field em { font-style: normal; font-weight: 500; color: var(--qb-muted); margin-left: 4px; }
.qb-addbar { position: sticky; bottom: 12px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; padding: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border: 1px solid var(--qb-line); border-radius: var(--qb-radius); box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .35); z-index: 5; }
.qb-addbar__btns { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; }

.qb.qb .qb-btn, .qb.qb .qb-btn:focus { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 2px solid var(--qb-brand); background: var(--qb-brand); color: #fff; font-size: 16px; font-weight: 800; transition: transform .15s, background .15s, box-shadow .15s; }
.qb.qb .qb-btn:hover { transform: translateY(-2px); background: var(--qb-brand-dark); border-color: var(--qb-brand-dark); }
.qb.qb .qb-btn--accent, .qb.qb .qb-btn--accent:focus { background: var(--qb-accent); border-color: var(--qb-accent); color: var(--qb-ink); box-shadow: 0 12px 24px -12px rgba(234, 179, 8, .9), inset 0 -3px 0 rgba(0, 0, 0, .1); }
.qb.qb .qb-btn--accent:hover { background: #FDE047; border-color: #FDE047; color: var(--qb-ink); }
.qb.qb .qb-btn--ghost, .qb.qb .qb-btn--ghost:focus { background: #fff; color: var(--qb-ink); border-color: var(--qb-line); }
.qb.qb .qb-btn--ghost:hover { background: var(--qb-pale); border-color: var(--qb-brand); color: var(--qb-brand); }
.qb.qb .qb-btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* List */
.qb-list-head { margin-bottom: 16px; }
.qb-list-head h2 { font-size: 26px; }
.qb-list-head p { margin: 4px 0 0; }
.qb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.qb-card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px; background: #fff; border: 1px solid var(--qb-line); border-radius: var(--qb-radius); box-shadow: var(--qb-shadow); animation: qbPop .3s ease; }
.qb-card__img { border-radius: 14px; background: linear-gradient(180deg, #F5F9FF, #E8F0FC); display: grid; place-items: center; padding: 10px; aspect-ratio: 1; }
.qb-card__img svg { width: 100%; height: 100%; }
.qb-card__tag { display: inline-block; margin: 0 0 4px; padding: 3px 10px; border-radius: 999px; background: var(--qb-pale); color: var(--qb-brand); font-size: 12px; font-weight: 800; }
.qb-card h4 { font-size: 16px; line-height: 1.35; }
.qb-card p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; }
.qb-card__acts { display: flex; gap: 14px; margin-top: 10px; }
.qb.qb .qb-card__acts button, .qb.qb .qb-card__acts button:focus { border: 0; background: none; padding: 0; font-size: 13px; font-weight: 700; color: var(--qb-brand); }
.qb.qb .qb-card__acts button:last-child { color: #DC2626; }
.qb-empty { padding: 28px; border: 2px dashed var(--qb-line); border-radius: var(--qb-radius); text-align: center; }
.qb-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; padding: 20px; background: #fff; border: 1px solid var(--qb-line); border-radius: var(--qb-radius); }
.qb-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* Details */
.qb-details { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.qb-details__form, .qb-details__aside { background: #fff; border: 1px solid var(--qb-line); border-radius: var(--qb-radius); box-shadow: var(--qb-shadow); padding: 28px; }
.qb-details__form h2 { font-size: 24px; }
.qb-details__form > p { margin: 6px 0 18px; }
.qb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qb-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 13px; line-height: 1.55; cursor: pointer; }
.qb-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--qb-brand); flex: 0 0 auto; }
.qb-err { color: #DC2626; font-weight: 600; font-size: 14px; margin: 12px 0 0; }
.qb-err:empty { display: none; }
.qb-details__aside { background: linear-gradient(160deg, var(--qb-brand), var(--qb-brand-dark)); color: rgba(255, 255, 255, .85); border: 0; }
.qb-details__aside h3 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.qb-mini__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qb-mini__thumbs span { background: rgba(255, 255, 255, .95); border-radius: 12px; padding: 6px; aspect-ratio: 1; display: grid; place-items: center; }
.qb-mini__thumbs svg { width: 100%; height: 100%; }
.qb-mini p { color: #fff; font-weight: 800; margin: 12px 0 0; }
.qb-ticks { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .15); display: grid; gap: 10px; font-size: 14px; }
.qb-ticks li { position: relative; padding-left: 28px; margin: 0; }
.qb-ticks li::before { content: '\2713'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--qb-accent); color: var(--qb-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* Done */
.qb-done { text-align: center; padding: 48px 28px; background: #fff; border: 1px solid var(--qb-line); border-radius: var(--qb-radius); box-shadow: var(--qb-shadow); max-width: 640px; }
.qb-done__tick { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--qb-brand); color: var(--qb-accent); display: grid; place-items: center; font-size: 34px; font-weight: 800; }
.qb-done h2 { font-size: 26px; margin-bottom: 8px; }

@media (max-width: 900px) {
.qb-design, .qb-details { grid-template-columns: 1fr; }
.qb .qb-stage { position: relative; top: auto !important; padding: 14px; }
.qb-canvas { aspect-ratio: 4 / 3; }
.qb-extra, .qb-grid2 { grid-template-columns: 1fr; }
.qb-addbar { position: relative; bottom: auto; backdrop-filter: none; background: #fff; }
}
@media (max-width: 480px) {
.qb-card { grid-template-columns: 90px 1fr; }
.qb-addbar { grid-template-columns: 1fr; }
.qb.qb .qb-addbar__btns .qb-btn, .qb.qb .qb-addbar__btns .qb-btn:focus { flex: 1; }
.qb-pane-row { grid-template-columns: 1fr; gap: 6px; }
}

/* Override page-builder / theme global button styles inside the designer */
.qb.qb button, .qb.qb button:hover, .qb.qb button:focus { text-transform: none; letter-spacing: normal; text-decoration: none; min-height: 0; min-width: 0; line-height: 1.25; text-shadow: none; }
.qb.qb .qb-sw, .qb.qb .qb-sw:hover, .qb.qb .qb-sw:focus { background: transparent; padding: 3px; box-shadow: none; border-radius: 50%; }
.qb.qb .qb-sw.is-on { background: transparent; border-color: var(--qb-brand); }
.qb.qb .qb-stepper button, .qb.qb .qb-stepper button:hover, .qb.qb .qb-stepper button:focus { display: grid; place-items: center; padding: 0; background: var(--qb-pale); color: var(--qb-brand); border: 0; border-radius: 9px; box-shadow: none; font-size: 20px; line-height: 1; }
.qb.qb .qb-stepper button:hover:not(:disabled) { background: #DBEAFE; }
.qb.qb .qb-switch button, .qb.qb .qb-switch button:hover, .qb.qb .qb-switch button:focus { background: transparent; color: var(--qb-brand); border: 0; box-shadow: none; padding: 10px 26px; border-radius: 999px; }
.qb.qb .qb-switch button.is-on, .qb.qb .qb-switch button.is-on:hover, .qb.qb .qb-switch button.is-on:focus { background: var(--qb-brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(29, 78, 216, .7); }
.qb.qb .qb-link, .qb.qb .qb-link:hover, .qb.qb .qb-link:focus { background: none; border: 0; padding: 0; box-shadow: none; color: var(--qb-brand); border-radius: 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.qb.qb .qb-card__acts button, .qb.qb .qb-card__acts button:hover, .qb.qb .qb-card__acts button:focus { background: none; border: 0; padding: 0; box-shadow: none; border-radius: 0; font-size: 13px; color: var(--qb-brand); }
.qb.qb .qb-card__acts button:last-child { color: #DC2626; }
.qb.qb .qb-chip:hover { background: #fff; color: var(--qb-ink); }
.qb.qb .qb-chip.is-on, .qb.qb .qb-chip.is-on:hover, .qb.qb .qb-chip.is-on:focus { background: var(--qb-pale); color: var(--qb-brand); border-color: var(--qb-brand); }
.qb.qb .qb-btn--ghost:hover { background: var(--qb-pale); }
.qb.qb .qb-btn--accent:hover { background: #FDE047; color: var(--qb-ink); }
.qb.qb button:focus-visible { outline: 3px solid var(--qb-accent); outline-offset: 2px; }
.qb .qb-card__body { min-width: 0; }
.qb.qb .qb-card__acts { flex-wrap: wrap; gap: 8px 16px; }
.qb.qb .qb-btn, .qb.qb .qb-btn:focus { padding: 0 24px; min-height: 52px; border-radius: 14px; font-size: 16px; font-weight: 800; line-height: 1.2; }
.qb.qb .qb-btn--ghost, .qb.qb .qb-btn--ghost:focus { background: #fff; color: var(--qb-ink); border: 2px solid var(--qb-line); box-shadow: none; }
.qb.qb .qb-btn--ghost:hover { background: var(--qb-pale); color: var(--qb-brand); border-color: var(--qb-brand); }
