/* Quote request form. Buttons use the theme's own .button styles. */

.rqr-form-wrap {
	box-sizing: border-box;
	max-width: 1140px;
	margin: 0 auto 2em;
	padding: 0 16px;
}

.rqr-form-wrap *,
.rqr-form-wrap *::before,
.rqr-form-wrap *::after {
	box-sizing: border-box;
}

.rqr-columns {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.rqr-columns h2 {
	margin: 0 0 20px;
	font-size: 1.5em;
}

/* Notices */
.rqr-notice {
	margin: 0 0 24px;
	padding: 14px 18px;
	border-left: 4px solid;
}

.rqr-notice ul {
	margin: 0;
	padding-left: 1.2em;
}

.rqr-notice--error {
	background: #fdf0ef;
	border-color: #c0392b;
	color: #7a1f16;
}

.rqr-notice--success {
	background: #eef7ee;
	border-color: #2e7d32;
	color: #1b4d1e;
}

/* Item table */
.rqr-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 20px;
}

.rqr-table th,
.rqr-table td {
	padding: 12px 8px;
	border-bottom: 1px solid #e5e5e5;
	text-align: left;
	vertical-align: middle;
}

.rqr-table thead th {
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rqr-col-remove {
	width: 36px;
	padding-left: 0 !important;
}

.rqr-col-thumb {
	width: 76px;
}

.rqr-col-thumb img {
	display: block;
	width: 60px;
	height: 60px;
	object-fit: contain;
}

.rqr-col-qty {
	width: 100px;
}

.rqr-col-subtotal {
	width: 120px;
	text-align: right !important;
	white-space: nowrap;
}

.rqr-sku {
	display: block;
	margin-top: 2px;
	font-size: 0.85em;
	opacity: 0.7;
}

.rqr-qty {
	width: 80px;
	padding: 8px;
}

/* Option chooser for a product that still needs one. */
.rqr-table .rqr-variation {
	display: block;
	width: 100%;
	max-width: 100%;
	margin-top: 8px;
}

.rqr-remove {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid #ccc;
	border-radius: 50%;
	background: #fff;
	color: #555;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.rqr-remove:hover,
.rqr-remove:focus-visible {
	border-color: #c0392b;
	color: #c0392b;
}

.rqr-total-row th,
.rqr-total-row td {
	border-bottom: 0;
	font-size: 1.1em;
	font-weight: 700;
}

.rqr-total-row th {
	text-align: right;
}

.rqr-empty td {
	padding: 24px 8px;
	text-align: center;
	opacity: 0.75;
}

/* In-form product search */
.rqr-add {
	margin: 0 0 20px;
}

.rqr-add label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.rqr-search-box {
	position: relative;
}

.rqr-search-box input {
	width: 100%;
}

.rqr-results {
	position: absolute;
	z-index: 20;
	left: 0;
	right: 0;
	margin: 2px 0 0;
	padding: 0;
	max-height: 320px;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	border: 1px solid #ccc;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.rqr-result,
.rqr-results-empty {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 12px;
}

.rqr-result {
	cursor: pointer;
}

.rqr-result:hover,
.rqr-result:focus {
	background: #f3f3f3;
	outline: none;
}

.rqr-result img {
	flex: none;
	object-fit: contain;
}

.rqr-result small {
	opacity: 0.7;
}

/* Details form */
/* The theme resets paragraph margins with a more specific rule, so the form
 * prefix is needed for these spacings to apply. */
.rqr-form-wrap .rqr-field {
	margin: 0 0 16px;
}

.rqr-field label,
.rqr-field legend {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.rqr-field abbr {
	color: #c0392b;
	text-decoration: none;
}

.rqr-field input[type="text"],
.rqr-field input[type="email"],
.rqr-field input[type="tel"],
.rqr-field textarea,
.rqr-field select {
	display: block;
	width: 100%;
}

/* Shipping address block, shown only when shipping is required. */
.rqr-shipping-fields[hidden] {
	display: none;
}

.rqr-form-wrap .rqr-shipping-title {
	margin: 0 0 12px;
	font-weight: 600;
}

.rqr-field-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.rqr-radio {
	min-width: 0;
	padding: 0;
	border: 0;
}

/* Themes style bare legends as headings; keep it a label. */
.rqr-field legend {
	float: none;
	width: auto;
	padding: 0;
	border: 0;
	font-size: 1em;
	line-height: inherit;
}

.rqr-radio label {
	display: inline-block;
	margin-right: 20px;
	font-weight: 400;
}

/* Honeypot: off-screen, not display:none, so simple bots still fill it. */
.rqr-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rqr-form-wrap .rqr-submit {
	margin: 28px 0 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 860px) {
	.rqr-columns {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 560px) {
	.rqr-field-pair {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.rqr-table thead {
		display: none;
	}

	.rqr-table,
	.rqr-table tbody,
	.rqr-table tfoot {
		display: block;
	}

	.rqr-row {
		display: grid;
		grid-template-columns: 76px 1fr auto;
		gap: 4px 10px;
		padding: 12px 0;
		border-bottom: 1px solid #e5e5e5;
	}

	.rqr-row td {
		padding: 0;
		border: 0;
	}

	.rqr-row .rqr-col-remove {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
		width: auto;
	}

	.rqr-row .rqr-col-thumb {
		grid-column: 1;
		grid-row: 1 / span 3;
		width: auto;
	}

	.rqr-row .rqr-col-product {
		grid-column: 2;
		grid-row: 1;
	}

	.rqr-row .rqr-col-qty {
		grid-column: 2;
		grid-row: 2;
		width: auto;
	}

	.rqr-row .rqr-col-subtotal {
		grid-column: 2;
		grid-row: 3;
		width: auto;
		text-align: left !important;
	}

	.rqr-total-row {
		display: flex;
		justify-content: space-between;
		padding-top: 12px;
	}

	.rqr-total-row th,
	.rqr-total-row td {
		width: auto;
		padding: 0;
	}
}
