/* UberHeats Boiler Quote. Colours follow the site's Astra global colours where set. */
.uhbq {
	--uhbq-accent: var(--ast-global-color-0, #b3471d);
	--uhbq-ink: var(--ast-global-color-2, #1c1c1c);
	--uhbq-text: var(--ast-global-color-3, #333);
	--uhbq-line: #c9c9c9;
	--uhbq-soft: #f5f5f3;
	--uhbq-error: #b00020;
	container-type: inline-size;
	scroll-margin-top: 110px;
	max-width: 1040px;
	margin: 0 auto;
	color: var(--uhbq-text);
	font-family: inherit;
	line-height: 1.55;
	background: #fff;
}
.uhbq *, .uhbq *::before, .uhbq *::after { box-sizing: border-box; }

/* progress */
.uhbq-bar { height: 4px; background: var(--uhbq-soft); margin-bottom: 28px; }
.uhbq-bar span { display: block; height: 100%; background: var(--uhbq-accent); transition: width .35s ease; }

/* layout */
.uhbq-layout { display: grid; gap: 28px; }
.uhbq-main { transition: opacity .25s ease, transform .25s ease; min-width: 0; }
.uhbq-main.is-entering { opacity: 0; transform: translateY(6px); }
@container (min-width: 820px) {
	.uhbq-layout.has-trail { grid-template-columns: minmax(0, 1fr) 280px; gap: 44px; align-items: start; }
}

/* type */
.uhbq-q { color: var(--uhbq-ink); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; outline: none; }
.uhbq-q--intro { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); max-width: 22ch; }
.uhbq-help, .uhbq-lead { margin: 0 0 1.4em; max-width: 62ch; }
.uhbq-lead { font-size: 1.08rem; }
.uhbq-small { font-size: .92rem; max-width: 66ch; }
.uhbq h3 { color: var(--uhbq-ink); font-size: 1.15rem; margin: 1.6em 0 .4em; }
.uhbq a { color: var(--uhbq-accent); }

/* buttons */
.uhbq-btn { font: inherit; font-weight: 700; border-radius: 6px; padding: .85em 1.5em; cursor: pointer; border: 2px solid var(--uhbq-accent); line-height: 1.2; }
.uhbq-btn--primary { background: var(--uhbq-accent); color: #fff; }
.uhbq-btn--primary:hover { filter: brightness(.92); }
.uhbq-btn--primary:disabled { opacity: .6; cursor: wait; }
.uhbq-btn--plain { background: #fff; color: var(--uhbq-ink); border-color: var(--uhbq-line); }
.uhbq-btn--plain:hover { border-color: var(--uhbq-ink); }
.uhbq-back { margin-top: 28px; font: inherit; background: none; border: 0; padding: .4em 0; color: var(--uhbq-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.uhbq button.uhbq-btn, .uhbq button.uhbq-btn:hover, .uhbq button.uhbq-btn:focus, .uhbq button.uhbq-btn:active { border-width: 2px !important; border-style: solid !important; border-radius: 6px !important; padding: .85em 1.5em !important; line-height: 1.2 !important; text-transform: none !important; letter-spacing: normal !important; }
.uhbq button.uhbq-btn--primary, .uhbq button.uhbq-btn--primary:hover, .uhbq button.uhbq-btn--primary:focus { background: var(--uhbq-accent) !important; color: #fff !important; border-color: var(--uhbq-accent) !important; }
.uhbq button.uhbq-btn--plain, .uhbq button.uhbq-btn--plain:focus { background: #fff !important; color: var(--uhbq-ink) !important; border-color: var(--uhbq-line) !important; }
.uhbq button.uhbq-btn--plain:hover { background: #fff !important; color: var(--uhbq-ink) !important; border-color: var(--uhbq-ink) !important; }
.uhbq button.uhbq-back, .uhbq button.uhbq-back:hover, .uhbq button.uhbq-back:focus, .uhbq button.uhbq-trail__change, .uhbq button.uhbq-trail__change:hover, .uhbq button.uhbq-trail__change:focus { background: none !important; border: 0 !important; box-shadow: none !important; }
.uhbq button.uhbq-back, .uhbq button.uhbq-back:hover, .uhbq button.uhbq-back:focus { color: var(--uhbq-ink) !important; padding: .4em 0 !important; }
.uhbq button.uhbq-trail__change, .uhbq button.uhbq-trail__change:hover, .uhbq button.uhbq-trail__change:focus { color: var(--uhbq-accent) !important; padding: 4px !important; }
.uhbq button.uhbq-stepper__btn, .uhbq button.uhbq-stepper__btn:focus { background: #fff !important; color: var(--uhbq-ink) !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; }
.uhbq button.uhbq-stepper__btn:hover { background: var(--uhbq-soft) !important; color: var(--uhbq-ink) !important; }
.uhbq button:focus-visible, .uhbq input:focus-visible, .uhbq textarea:focus-visible, .uhbq summary:focus-visible { outline: 3px solid var(--uhbq-accent); outline-offset: 2px; }

/* options */
.uhbq-options { display: grid; gap: 14px; }
.uhbq-options--pictures, .uhbq-options--boilers { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
@container (min-width: 700px) {
	.uhbq-options--pictures { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
	.uhbq-options--boilers { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
}
.uhbq-opt { font: inherit; color: var(--uhbq-text); text-align: left; background: #fff; border: 1px solid var(--uhbq-line); border-radius: 8px; padding: 0; cursor: pointer; display: flex; position: relative; transition: border-color .15s ease, box-shadow .15s ease; }
.uhbq-opt:hover { border-color: var(--uhbq-ink); }
.uhbq-opt.is-selected { border-color: var(--uhbq-accent); box-shadow: inset 0 0 0 2px var(--uhbq-accent); }
/* Stop the theme's own button hover/focus/active styles (thicker border, big radius,
   padding, colours) changing the answer boxes, which made the text re-wrap and jump. */
.uhbq button.uhbq-opt,
.uhbq button.uhbq-opt:hover,
.uhbq button.uhbq-opt:focus,
.uhbq button.uhbq-opt:active {
	border-width: 1px !important;
	border-style: solid !important;
	border-radius: 8px !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #fff !important;
	color: var(--uhbq-text) !important;
	font-size: inherit !important;
	line-height: 1.55 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	transform: none !important;
}
.uhbq button.uhbq-opt:not(.is-selected) { border-color: var(--uhbq-line) !important; box-shadow: none !important; }
.uhbq button.uhbq-opt:not(.is-selected):hover { border-color: var(--uhbq-ink) !important; }
.uhbq button.uhbq-opt.is-selected { border-color: var(--uhbq-accent) !important; box-shadow: inset 0 0 0 2px var(--uhbq-accent) !important; }
.uhbq button.uhbq-opt--list,
.uhbq button.uhbq-opt--list:hover,
.uhbq button.uhbq-opt--list:focus,
.uhbq button.uhbq-opt--list:active { padding: 14px 16px !important; }
.uhbq-opt__label { display: block; font-weight: 700; color: var(--uhbq-ink); }
.uhbq-opt__note { display: block; font-size: .9rem; margin-top: .25em; }
.uhbq-opt__tag { font-weight: 700; color: var(--uhbq-ink); white-space: nowrap; }
.uhbq-opt__points { display: block; margin-top: .45em; font-size: .88rem; line-height: 1.4; }
.uhbq-opt__point { display: block; position: relative; padding-left: 1.2em; margin-top: .2em; }
.uhbq-opt__point::before { content: "\2713"; position: absolute; left: 0; color: var(--uhbq-accent); font-weight: 700; }

.uhbq-opt--pictures { flex-direction: column; }
.uhbq-opt--pictures .uhbq-opt__media { display: block; aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; padding: 12px; border-bottom: 1px solid var(--uhbq-soft); }
.uhbq-opt--pictures .uhbq-opt__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.uhbq-opt--pictures .uhbq-opt__body { padding: 10px 12px 14px; flex: 1; }
@container (max-width: 480px) { .uhbq-opt__note { font-size: .84rem; } }
.uhbq-opt--pictures .uhbq-opt__tag { padding: 4px 14px 12px; font-size: 1.05rem; }
.uhbq-options--boilers .uhbq-opt__media { aspect-ratio: 1 / 1; }

.uhbq-opt--list { align-items: center; gap: 14px; padding: 14px 16px; min-height: 60px; }
.uhbq-opt--list .uhbq-opt__media { flex: 0 0 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.uhbq-opt--list .uhbq-opt__media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.uhbq-opt--list .uhbq-opt__body { flex: 1; }
.uhbq-opt--list .uhbq-opt__tag { margin-left: auto; padding-left: 8px; }
.uhbq-options--list .uhbq-opt.no-image .uhbq-opt__media { display: none; }
.uhbq-options--list:has(.uhbq-opt__media img) .uhbq-opt.no-image .uhbq-opt__media { display: flex; }

/* TRVs */
.uhbq-trv { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.uhbq-trv__img { width: 130px; height: auto; border: 1px solid var(--uhbq-line); border-radius: 8px; padding: 8px; background: #fff; }
.uhbq-trv__controls { flex: 1; min-width: 240px; }
.uhbq-trv__label { display: block; font-weight: 700; color: var(--uhbq-ink); margin-bottom: 8px; }
.uhbq-stepper { display: inline-flex; border: 1px solid var(--uhbq-ink); border-radius: 6px; overflow: hidden; }
.uhbq-stepper__btn { font: inherit; font-size: 1.4rem; width: 52px; background: #fff; color: var(--uhbq-ink); border: 0; cursor: pointer; }
.uhbq-stepper__btn:hover { background: var(--uhbq-soft); }
.uhbq-stepper input { font: inherit; font-size: 1.3rem; font-weight: 700; width: 72px; text-align: center; border: 0; border-left: 1px solid var(--uhbq-ink); border-right: 1px solid var(--uhbq-ink); padding: 10px 0; -moz-appearance: textfield; }
.uhbq-stepper input::-webkit-outer-spin-button, .uhbq-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.uhbq-trv__cost { min-height: 1.5em; margin: 10px 0 18px; }
.uhbq-trv__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* answers trail: a job sheet */
.uhbq-trail { font-size: .95rem; }
.uhbq-trail__title { margin: 0 0 .6em !important; font-size: 1rem !important; }
.uhbq-trail__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--uhbq-ink); }
.uhbq-trail__list li { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--uhbq-line); }
.uhbq-trail__q { grid-column: 1; font-size: .85rem; }
.uhbq-trail__a { grid-column: 1; color: var(--uhbq-ink); font-weight: 700; }
.uhbq-trail__a::before { content: "\2713"; color: var(--uhbq-accent); margin-right: 6px; }
.uhbq-trail__change { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: inherit; font-size: .85rem; background: none; border: 0; color: var(--uhbq-accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px; }
.uhbq-trail__total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--uhbq-ink); }
.uhbq-trail__total strong { font-size: 1.15rem; color: var(--uhbq-ink); }
.uhbq-trail__details { border: 1px solid var(--uhbq-line); border-radius: 8px; padding: 0 14px; }
.uhbq-trail__details summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--uhbq-ink); }
.uhbq-trail__details[open] { padding-bottom: 12px; }
.uhbq-trail__details .uhbq-trail__title { display: none; }
.uhbq-trail__static { display: none; }
@container (min-width: 820px) {
	.uhbq-trail { position: sticky; top: 110px; }
	.uhbq-trail__details { display: none; }
	.uhbq-trail__static { display: block; }
}

/* result */
.uhbq-total { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.2rem); font-weight: 800; color: var(--uhbq-ink); line-height: 1; margin: 0 0 .2em; }
.uhbq-table-wrap { overflow-x: auto; margin: 1em 0; }
.uhbq-table { width: 100%; border-collapse: collapse; background: #fff; color: #000; }
.uhbq-table td, .uhbq-table th { border: 1px solid #000; padding: 9px 12px; text-align: left; vertical-align: top; }
.uhbq-num { text-align: right !important; white-space: nowrap; }
.uhbq-qty { white-space: nowrap; }
.uhbq-table__total th, .uhbq-table__total td { font-weight: 800; }
.uhbq-aside { border-left: 4px solid var(--uhbq-accent); background: var(--uhbq-soft); padding: 14px 18px; margin: 1.6em 0; }
.uhbq-aside h3 { margin-top: 0; }
.uhbq-aside p { margin: 0; max-width: 66ch; }

.uhbq-terms { margin: 1.4em 0; }
.uhbq-terms h3 { font-size: 1.02rem; margin: 1em 0 .3em; }
.uhbq-terms p { margin: 0; font-size: .95rem; max-width: 70ch; }

/* quote visit */
.uhbq-visit { display: flex; gap: 24px; align-items: flex-start; }
.uhbq-visit__img { width: 150px; height: auto; flex: 0 0 auto; }
@container (max-width: 560px) {
	.uhbq-visit { flex-direction: column; }
	.uhbq-visit__img { width: 110px; }
}

/* form */
.uhbq-form { display: grid; grid-template-columns: 1fr; gap: 14px 18px; margin-top: 1.2em; max-width: 640px; }
@container (min-width: 560px) { .uhbq-form { grid-template-columns: 1fr 1fr; } }
.uhbq-field label { display: block; font-weight: 700; color: var(--uhbq-ink); margin-bottom: 4px; }
.uhbq-field input, .uhbq-field textarea { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid #767676; border-radius: 6px; background: #fff; color: #000; }
.uhbq-field input[aria-invalid="true"] { border-color: var(--uhbq-error); border-width: 2px; }
.uhbq-field__error { display: block; color: var(--uhbq-error); font-size: .88rem; min-height: 0; margin-top: 3px; }
.uhbq-field--wide, .uhbq-form__error, .uhbq-form .uhbq-btn { grid-column: 1 / -1; }
.uhbq-form .uhbq-btn { justify-self: start; }
.uhbq-optional { font-weight: 400; }
.uhbq-form__error { color: var(--uhbq-error); font-weight: 700; margin: 0; }
.uhbq-form__error:empty { display: none; }
.uhbq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.uhbq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	.uhbq-main, .uhbq-bar span, .uhbq-opt { transition: none; }
}

/* postcode question */
.uhbq-pc { max-width: 460px; }
.uhbq-pc__label { display: block; font-weight: 700; color: var(--uhbq-ink); margin-bottom: 6px; }
.uhbq-pc__row { display: flex; flex-wrap: wrap; gap: 10px; }
.uhbq-pc__row input { flex: 1 1 180px; min-width: 0; font: inherit; font-size: 1.1rem; text-transform: uppercase; padding: 10px 12px; border: 1px solid #767676; border-radius: 6px; background: #fff; color: #000; }
.uhbq-pc__row input[aria-invalid="true"] { border-color: var(--uhbq-error); border-width: 2px; }
.uhbq-pc .uhbq-field__error { margin-top: 6px; }
