/* AIA Bulk Quote pop-up */
/* The theme sets overflow on html/body, so the lock needs !important. */
html.aia-bq-open-html,
html.aia-bq-open-html body {
	overflow: hidden !important;
}

.aia-bq[hidden] {
	display: none !important;
}

.aia-bq {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.aia-bq__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}

.aia-bq__dialog {
	position: relative;
	width: 100%;
	max-width: 720px;
	background: #fff;
	color: #333;
	padding: 32px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}

.aia-bq__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #4a3423;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.aia-bq__title {
	margin: 0 40px 4px 0;
	font-size: 24px;
	line-height: 1.25;
	color: #4a3423;
	text-transform: none;
	letter-spacing: 0;
}

.aia-bq__product {
	margin: 0 0 8px;
	font-weight: 700;
	font-size: 16px;
}

.aia-bq__intro,
.aia-bq__note {
	margin: 0 0 16px;
	color: #666;
	font-size: 14px;
}

.aia-bq__row {
	border: 1px solid #e2dbd3;
	padding: 14px 16px;
	margin-bottom: 12px;
	background: #faf8f5;
}

.aia-bq__row.is-invalid {
	border-color: #c0392b;
}

.aia-bq__row-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.aia-bq__row-title {
	font-weight: 700;
	color: #4a3423;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: .08em;
}

.aia-bq__remove {
	border: 0;
	background: none;
	padding: 4px 0;
	color: #8a6d55;
	text-decoration: underline;
	cursor: pointer;
	font-size: 13px;
}

.aia-bq__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px 14px;
}

.aia-bq__field {
	margin: 0;
	min-width: 0;
}

.aia-bq__field label,
.aia-bq__checks legend {
	display: block;
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: #444;
}

.aia-bq .aia-bq__field select,
.aia-bq .aia-bq__field input[type="number"],
.aia-bq .aia-bq__field input[type="text"] {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 42px;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid #cfc6bc;
	background: #fff;
	color: #333;
	font-size: 15px;
	box-sizing: border-box;
}

.aia-bq__checks {
	border: 0;
	padding: 0;
}

.aia-bq__checks label {
	font-weight: 400;
}

.aia-bq__row-price {
	margin-top: 10px;
	font-size: 14px;
	color: #4a3423;
}

.aia-bq__row-price:empty {
	display: none;
}

.aia-bq__add {
	display: inline-block;
	margin: 0 0 20px;
	padding: 10px 18px;
	border: 2px dashed #4a3423;
	background: transparent;
	color: #4a3423;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .08em;
	cursor: pointer;
}

.aia-bq__add:hover,
.aia-bq__add:focus {
	background: #4a3423;
	color: #fff;
}

.aia-bq__summary {
	border-top: 2px solid #4a3423;
	padding-top: 12px;
	margin-bottom: 24px;
}

.aia-bq__summary > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
}

.aia-bq__total {
	font-size: 18px;
	color: #4a3423;
}

.aia-bq__note {
	margin: 8px 0 0;
	font-size: 13px;
}

.aia-bq__subtitle {
	margin: 0 0 8px;
	font-size: 18px;
	color: #4a3423;
	text-transform: none;
	letter-spacing: 0;
}

.aia-bq__error {
	margin: 0 0 12px;
	padding: 8px 12px;
	background: #fdecea;
	color: #a12a1f;
	font-size: 14px;
}

.aia-bq .gform_wrapper {
	margin: 0;
}

.aia-bq .gform_wrapper input[type="text"],
.aia-bq .gform_wrapper input[type="email"],
.aia-bq .gform_wrapper input[type="tel"],
.aia-bq .gform_wrapper textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.aia-bq .gform_wrapper .gfield_description {
	padding: 0 0 8px !important;
	margin: -4px 0 0 !important;
	font-size: 14px;
	color: #555;
}

.aia-bq .gform_wrapper textarea {
	height: 90px;
	font-family: inherit;
	font-size: 15px;
}

.aia-bq__thanks {
	margin: 0;
	padding: 16px;
	background: #faf8f5;
	border-left: 4px solid #4a3423;
	font-size: 16px;
}

.aia-bq .gform_wrapper .gform_button {
	width: 100%;
	height: auto; /* the child theme forces height/line-height 49px on .gform_button */
	min-height: 50px;
	line-height: 1.2;
	padding: 15px 24px;
	border: 2px solid #4a3423;
	background: #4a3423;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	cursor: pointer;
}

.aia-bq .gform_wrapper .gform_button:hover {
	background: #33220f;
}

/* After sending: keep only the confirmation */
.aia-bq.is-sent .aia-bq__intro,
.aia-bq.is-sent .aia-bq__rows,
.aia-bq.is-sent .aia-bq__add,
.aia-bq.is-sent .aia-bq__summary,
.aia-bq.is-sent .aia-bq__subtitle,
.aia-bq.is-sent .aia-bq__error {
	display: none;
}

@media (max-width: 600px) {
	.aia-bq {
		padding: 0;
	}

	.aia-bq__dialog {
		min-height: 100%;
		padding: 24px 16px;
		box-shadow: none;
	}

	.aia-bq__title {
		font-size: 20px;
	}

	.aia-bq__grid {
		grid-template-columns: 1fr;
	}
}
