/* GM-11 two-step quote form (variant B). Same file in Romeo (source) and Direct.Parts. Everything is under .gidqf-* or html.qf-b,
   so variant A is never touched. Colours: the site's --primary. */

.gidqf-slot {
	display: none;
}

.qf-b .gidqf-slot {
	display: block;
	min-height: 600px;
}

.qf-b .gidqf-slot.gidqf-ready {
	min-height: 0;
}

/* today's button is replaced by the box */
.qf-b #about-product .buttons .open-modal[data-modal="request-quote"] {
	display: none;
}

.qf-b #about-product .buttons button:nth-child(2) {
	margin-right: 0;
}

/* product page: box in a right column on wide screens */
@media only screen and (min-width: 1101px) {
	.qf-b #about-product {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 420px;
		grid-template-rows: auto auto 1fr;
		grid-template-areas: "head box" "note box" "body box";
		column-gap: 40px;
		align-items: start;
	}

	.qf-b #about-product > .header {
		grid-area: head;
		gap: 16px;
		flex-wrap: wrap;
	}

	.qf-b #about-product > .dp-notice,
	.qf-b #about-product > .dp-success {
		grid-area: note;
	}

	.qf-b #about-product > .about-product-content {
		grid-area: body;
	}

	.qf-b #about-product > .gidqf-slot {
		grid-area: box;
	}

	.qf-b #about-product > .about-product-content {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.qf-b #about-product > .about-product-content > div:last-child {
		height: auto;
		min-width: 300px;
	}

	.qf-b #about-product > .about-product-content .list > div {
		width: 100%;
	}
}

/* narrower: H1, photo, box, details */
@media only screen and (max-width: 1100px) {
	.qf-b #about-product {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.qf-b #about-product > .about-product-content {
		display: contents;
	}

	.qf-b #about-product > .about-product-content > a,
	.qf-b #about-product > .about-product-content > img {
		align-self: center;
		max-width: 100%;
	}

	.qf-b #about-product > .about-product-content > div:last-child {
		order: 3;
		width: 100%;
		height: auto;
	}

	.qf-b #about-product > .gidqf-slot {
		order: 2;
	}
}

/* box */
.gidqf,
.gidqf * {
	box-sizing: border-box;
}

.gidqf {
	background: #fff;
	border: 1px solid #d5dce6;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(16, 33, 64, 0.08);
	color: #1b2430;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	padding: 28px;
	text-align: left;
}

.gidqf form,
.gidqf-stack {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
}

.gidqf h2 {
	color: #1b2430;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
}

.gidqf h2.gidqf-h2small {
	font-size: 19px;
}

.gidqf-sub {
	color: #4a5568;
	font-size: 14px;
	margin-top: 6px;
}

.gidqf-small {
	color: #374151;
	font-size: 13px;
}

.gidqf-legal {
	color: #4a5568;
	font-size: 12px;
}

.gidqf-legal a {
	color: var(--primary);
	text-decoration: underline;
}

.gidqf-part {
	align-items: center;
	background: #f1f4f9;
	border-radius: 8px;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 12px 14px;
}

.gidqf-part > div {
	min-width: 0;
	overflow-wrap: anywhere;
}

.gidqf-part .gidqf-partlabel {
	color: #4a5568;
	display: block;
	font-size: 12px;
}

.gidqf-part .gidqf-partname {
	display: block;
	font-size: 15px;
	font-weight: 600;
}

.gidqf-part label {
	align-items: center;
	color: #4a5568;
	display: flex;
	flex: none;
	font-size: 13px;
	gap: 8px;
}

.gidqf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.gidqf-field > label,
.gidqf-title {
	color: #1b2430;
	font-size: 13px;
	font-weight: 500;
}

.gidqf-field > label span {
	color: #4a5568;
	font-weight: 400;
}

.gidqf input[type="text"],
.gidqf input[type="email"],
.gidqf input[type="tel"],
.gidqf input[type="number"],
.gidqf select,
.gidqf textarea {
	background-color: #fff;
	border: 1px solid #c9d2de;
	border-radius: 8px;
	color: #1b2430;
	font-family: inherit;
	font-size: 15px;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	width: 100%;
}

.gidqf textarea {
	height: auto;
	padding: 10px 14px;
	resize: vertical;
}

.gidqf select {
	padding-right: 34px;
	background-position: right 10px center !important;
}

.gidqf .gidqf-part input[type="number"] {
	border-radius: 6px;
	height: 40px;
	padding: 0 8px;
	width: 72px;
}

.gidqf input::placeholder,
.gidqf textarea::placeholder {
	color: #6b7280;
}

.gidqf input:focus,
.gidqf select:focus,
.gidqf textarea:focus,
.gidqf button:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 1px;
}

.gidqf [aria-invalid="true"] {
	border-color: #d60026 !important;
}

.gidqf-fielderror {
	color: #d60026;
	display: none;
	font-size: 12px;
}

.gidqf-fielderror.gidqf-on {
	display: block;
}

.gidqf-error {
	background: rgba(214, 0, 38, 0.08);
	border-radius: 8px;
	color: #b00020;
	display: none;
	font-size: 14px;
	padding: 12px 14px;
}

.gidqf-error.gidqf-on {
	display: block;
}

.gidqf-hp {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	top: 0;
	width: 1px;
}

.gidqf button {
	cursor: pointer;
	font-family: inherit;
}

.gidqf-primary {
	background: var(--primary);
	border: 0;
	border-radius: 10px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	min-height: 52px;
	padding: 0 22px;
}

.gidqf-primary[disabled] {
	cursor: default;
	opacity: 0.6;
}

.gidqf-link {
	background: none;
	border: 0;
	color: var(--primary);
	font-size: 14px;
	font-weight: 600;
	min-height: 44px;
	padding: 6px 0;
}

.gidqf-done {
	background: none;
	border: 0;
	color: #374151;
	font-size: 14px;
	min-height: 44px;
	padding: 10px 0;
	text-decoration: underline;
}

.gidqf-ok {
	align-items: flex-start;
	background: #ecf7f0;
	border: 1px solid #b7e0c5;
	border-radius: 10px;
	display: flex;
	gap: 12px;
	padding: 14px 16px;
}

.gidqf-ok svg {
	flex: none;
	margin-top: 1px;
}

.gidqf-ok strong {
	color: #14532d;
	display: block;
	font-size: 15px;
	font-weight: 600;
}

.gidqf-ok span {
	color: #1f4d33;
	font-size: 13px;
}

.gidqf-lines {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gidqf-line {
	align-items: center;
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) 64px 122px;
}

.gidqf-linehead {
	color: #4a5568;
	font-size: 12px;
}

.gidqf .gidqf-line input,
.gidqf .gidqf-line select {
	font-size: 14px;
	height: 44px;
	padding-left: 8px;
}

.gidqf-chip {
	align-items: center;
	background: #f1f4f9;
	border-radius: 8px;
	display: flex;
	font-size: 14px;
	font-weight: 600;
	min-height: 44px;
	overflow-wrap: anywhere;
	padding: 6px 12px;
}

.gidqf-linemfr {
	grid-column: 1 / 3;
}

.gidqf-remove {
	background: none;
	border: 0;
	color: #4a5568;
	font-size: 13px;
	min-height: 44px;
	text-align: right;
	text-decoration: underline;
}

.gidqf-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
}

.gidqf-between {
	justify-content: space-between;
}

.gidqf-paste {
	background: #f8fafc;
	border: 1px dashed #c9d2de;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
}

.gidqf-parsed {
	font-size: 13px;
	list-style: none;
	margin: 0;
	max-height: 200px;
	overflow: auto;
	padding: 0;
}

.gidqf-parsed li {
	border-top: 1px solid #e3e8ef;
	font-family: inherit;
	overflow-wrap: anywhere;
	padding: 4px 0;
}

.gidqf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gidqf-chips button {
	background: #fff;
	border: 1px solid #c9d2de;
	border-radius: 22px;
	color: #1b2430;
	font-size: 14px;
	min-height: 44px;
	padding: 0 14px;
}

.gidqf-chips button[aria-pressed="true"] {
	background: #f1f4f9;
	border: 1.5px solid var(--primary);
	color: var(--primary);
	font-weight: 600;
}

.gidqf-chips button[data-weeks="0"][aria-pressed="true"] {
	background: #fff1e8;
	border-color: #b4400a;
	color: #8a3108;
}

.gidqf-two {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gidqf-hidden {
	display: none !important;
}

/* pop-up on list pages */
.gidqf-overlay {
	align-items: flex-start;
	background: rgba(15, 27, 48, 0.45);
	display: flex;
	inset: 0;
	justify-content: center;
	overflow: auto;
	padding: 40px 16px;
	position: fixed;
	z-index: 1000;
}

.gidqf-overlay .gidqf {
	margin: auto;
	max-width: 100%;
	position: relative;
	width: 460px;
}

.gidqf-close {
	align-items: center;
	background: none;
	border: 0;
	display: flex;
	height: 44px;
	justify-content: center;
	position: absolute;
	right: 14px;
	top: 14px;
	width: 44px;
}

.gidqf-overlay .gidqf h2,
.gidqf-overlay .gidqf-ok {
	margin-right: 36px;
}

/* mobile: sticky bar */
.gidqf-bar {
	display: none;
}

@media only screen and (max-width: 760px) {
	.gidqf {
		padding: 20px;
	}

	.gidqf h2 {
		font-size: 20px;
	}

	.gidqf input[type="text"],
	.gidqf input[type="email"],
	.gidqf input[type="tel"],
	.gidqf input[type="number"],
	.gidqf select,
	.gidqf textarea,
	.gidqf .gidqf-line input,
	.gidqf .gidqf-line select {
		font-size: 16px;
	}

	.gidqf input[type="text"],
	.gidqf input[type="email"],
	.gidqf input[type="tel"],
	.gidqf select {
		height: 48px;
	}

	.gidqf .gidqf-part input[type="number"] {
		height: 44px;
	}

	.gidqf .gidqf-line input,
	.gidqf .gidqf-line select {
		height: 44px;
	}

	.gidqf-line {
		grid-template-columns: minmax(0, 1fr) 60px 112px;
	}

	.gidqf-overlay {
		padding: 12px 8px;
	}

	.gidqf-bar.gidqf-on {
		align-items: center;
		background: #fff;
		border-top: 1px solid #d5dce6;
		bottom: 0;
		box-shadow: 0 -6px 18px rgba(16, 33, 64, 0.1);
		display: flex;
		font-family: Montserrat, Arial, sans-serif;
		gap: 12px;
		left: 0;
		padding: 12px 16px;
		padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		position: fixed;
		right: 0;
		z-index: 900;
	}

	.gidqf-bar > div {
		flex: 1;
		min-width: 0;
	}

	.gidqf-bar strong,
	.gidqf-bar span {
		display: block;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.gidqf-bar strong {
		color: #1b2430;
		font-size: 14px;
		font-weight: 600;
	}

	.gidqf-bar span {
		color: #4a5568;
		font-size: 12px;
	}

	.gidqf-bar button {
		background: var(--primary);
		border: 0;
		border-radius: 10px;
		color: #fff;
		cursor: pointer;
		flex: none;
		font-family: inherit;
		font-size: 15px;
		font-weight: 600;
		min-height: 48px;
		padding: 0 20px;
	}

	.gidqf-barspace {
		height: 84px;
	}
}
