/**
 * Quote-request phone + association notice popover
 */

.mpm-phone-quote {
	display: inline;
	white-space: normal;
}

.mpm-phone-quote__link {
	color: inherit;
	text-decoration: underline;
}

.mpm-phone-quote__link:hover,
.mpm-phone-quote__link:focus {
	color: #8bc53f;
}

.mpm-phone-quote__label {
	white-space: nowrap;
}

.mpm-phone-quote__info {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	margin-left: 4px;
}

.mpm-phone-quote__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	font-family: Arial, Helvetica, sans-serif;
	color: #ffffff;
	background: #8bc53f;
	border: 1px solid #7ab332;
	border-radius: 50%;
	cursor: pointer;
	vertical-align: middle;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.mpm-phone-quote__trigger:hover,
.mpm-phone-quote__trigger:focus {
	background: #7ab332;
	border-color: #6aa028;
	outline: none;
}

.mpm-phone-quote__trigger:focus-visible {
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #8bc53f;
}

.mpm-phone-quote__popover {
	position: absolute;
	z-index: 1200;
	left: 50%;
	top: calc(100% + 10px);
	width: min(360px, calc(100vw - 32px));
	max-width: 360px;
	box-sizing: border-box;
	transform: translateX(-50%);
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 20px;
	text-align: left;
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
	background: #f2f8e8;
	border: 1px solid #8bc53f;
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.mpm-phone-quote__popover[hidden] {
	display: none !important;
}

.mpm-phone-quote__popover.is-open {
	display: flex;
}

.mpm-phone-quote__popover.is-ported {
	position: fixed !important;
	z-index: 10050;
	transform: none !important;
	margin: 0;
}

.mpm-phone-quote__popover-icon {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #8bc53f;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	font-style: italic;
	font-family: Georgia, 'Times New Roman', serif;
	line-height: 28px;
	text-align: center;
}

.mpm-phone-quote__popover-body {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	font-size: 14px;
	line-height: 1.55;
	color: #222222;
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.mpm-phone-quote__popover-title {
	display: block;
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: #123d25;
}

.mpm-phone-quote__popover.is-flip {
	top: auto;
	bottom: calc(100% + 10px);
}

@media (max-width: 991px) {
	.mpm-phone-quote__popover.is-ported {
		padding: 14px 16px;
		gap: 12px;
	}

	.mpm-phone-quote__popover.is-ported .mpm-phone-quote__popover-body {
		font-size: 13px;
		line-height: 1.5;
	}

	.mpm-phone-quote__popover.is-ported .mpm-phone-quote__popover-title {
		font-size: 14px;
	}

	.mpm-phone-quote__popover.is-ported .mpm-phone-quote__popover-icon {
		flex: 0 0 24px;
		width: 24px;
		height: 24px;
		font-size: 13px;
		line-height: 24px;
	}
}
