/* Request a Quote — SMS Consent Addendum */

/* ----- Consent block under the Phone field ----- */

/* Kill the theme's large bottom spacing on the phone field's wrapper so
   the consent row sits 5px below the input. !important is deliberate:
   themes/builders style .bv_quote_wrapper_dv with high specificity. */
.bv_quote_wrapper_dv.raq-smsc-phone-wrap {
	margin-bottom: 5px !important;
	padding-bottom: 0 !important;
}

.bv_quote_wrapper_dv.raq-smsc-field {
	margin-top: 0 !important;
	padding-top: 0 !important;
	margin-bottom: 14px;
}

.raq-smsc-label {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.45;
	color: #444;
	cursor: pointer;
	font-weight: normal !important;
}

.raq-smsc-checkbox {
	flex: 0 0 auto;
	width: 16px !important;
	height: 16px;
	margin: 2px 0 0 !important;
	cursor: pointer;
	accent-color: #c00000; /* matches the site's red without hard dependency */
}

.raq-smsc-text {
	flex: 1 1 auto;
}

.raq-smsc-terms-link {
	white-space: nowrap;
	text-decoration: underline;
	font-weight: 600;
}

/* ----- Popup ----- */
.raq-smsc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.raq-smsc-overlay[hidden] {
	display: none;
}

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

.raq-smsc-modal {
	background: #fff;
	border-radius: 8px;
	max-width: 640px;
	width: 100%;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 12px 45px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.raq-smsc-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e5e5e5;
}

.raq-smsc-modal-head h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.2;
}

.raq-smsc-close {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 0 4px;
}

.raq-smsc-close:hover {
	color: #000;
}

.raq-smsc-modal-body {
	padding: 16px 20px;
	overflow-y: auto;
	font-size: 14px;
	line-height: 1.55;
	color: #333;
}

.raq-smsc-modal-body p {
	margin: 0 0 12px;
}

.raq-smsc-modal-body ul {
	margin: 0 0 12px 20px;
	padding: 0;
	list-style: disc;
}

.raq-smsc-modal-body li {
	margin-bottom: 4px;
}

.raq-smsc-modal-links {
	border-top: 1px solid #eee;
	padding-top: 12px;
}

.raq-smsc-modal-foot {
	padding: 12px 20px;
	border-top: 1px solid #e5e5e5;
	text-align: right;
}

.raq-smsc-btn {
	background: #c00000;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 9px 22px;
	font-size: 14px;
	cursor: pointer;
}

.raq-smsc-btn:hover {
	background: #a00000;
}

@media (max-width: 480px) {
	.raq-smsc-modal {
		max-height: 92vh;
	}
	.raq-smsc-label {
		font-size: 12.5px;
	}
}
