/* Quick Quote popup. Form fields are intentionally not restyled so the theme's
   CF7 styles (.contactcheckbox, .btn btn-normal btn-md) apply unchanged. */

html.qq-modal-open,
html.qq-modal-open body {
	overflow: hidden;
}

.qq-button-wrap {
	margin: 15px 0;
}

.qq-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.qq-modal.is-open {
	display: flex;
}

.qq-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
}

.qq-modal__dialog {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 30px 25px 25px;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	text-align: left;
	outline: none;
}

.qq-modal__close {
	position: absolute;
	top: 6px;
	right: 10px;
	padding: 0 6px;
	border: 0;
	background: transparent;
	color: #555;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.qq-modal__close:hover,
.qq-modal__close:focus {
	color: #000;
}

.qq-modal__title {
	margin: 0 30px 8px 0;
	font-size: 22px;
	line-height: 1.3;
}

.qq-modal__product {
	margin: 0 0 4px;
	font-weight: 600;
}

.qq-modal__selected {
	margin: 0 0 4px;
	font-size: 14px;
	color: #555;
}

.qq-modal__form {
	margin-top: 15px;
}

/* Keep CF7 fields inside the dialog without changing their look. */
.qq-modal__form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.qq-modal__form select,
.qq-modal__form textarea {
	max-width: 100%;
}

@media (max-width: 480px) {
	.qq-modal {
		padding: 10px;
	}

	.qq-modal__dialog {
		max-height: calc(100vh - 20px);
		max-height: calc(100dvh - 20px);
		padding: 26px 16px 18px;
	}

	.qq-modal__title {
		font-size: 19px;
	}
}
