.nextgen-price-estimator {
	--nextgen-estimator-navy: var(--primary);
	--nextgen-estimator-border: #b8b8b8;
	box-sizing: border-box;
	width: 100%;
	color: var(--text);
}

.nextgen-price-estimator *,
.nextgen-price-estimator *::before,
.nextgen-price-estimator *::after {
	box-sizing: border-box;
}

.nextgen-price-estimator-debug {
	margin-bottom: var(--gutter-medium, 24px);
	padding: 16px;
	border: 2px solid #b54708;
	border-radius: 6px;
	background: #fff7ed;
	color: #3b2416;
	font: 14px/1.45 monospace;
	overflow-x: auto;
}

.nextgen-price-estimator-debug summary {
	cursor: pointer;
	font-weight: 700;
}

.nextgen-price-estimator-debug h4 {
	margin: 18px 0 8px;
}

.nextgen-price-estimator-debug table {
	width: 100%;
	border-collapse: collapse;
}

.nextgen-price-estimator-debug th,
.nextgen-price-estimator-debug td {
	padding: 7px;
	border: 1px solid #d6b99f;
	text-align: left;
	vertical-align: top;
}

.nextgen-price-estimator-debug code {
	color: #8a2c0d;
}

.nextgen-price-estimator__base,
.nextgen-price-estimator__total-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--gutter-small, 16px);
}

.nextgen-price-estimator__base,
.nextgen-price-estimator__section {
	padding-bottom: var(--gutter-medium, 24px);
	border-bottom: 1px solid var(--nextgen-estimator-border);
}

.nextgen-price-estimator__section,
.nextgen-price-estimator__total-section {
	margin-top: var(--gutter-medium, 24px);
}

.nextgen-price-estimator__title,
.nextgen-price-estimator__section-title,
.nextgen-price-estimator__total-label,
.nextgen-price-estimator__note {
	margin: 0;
}

.nextgen-price-estimator__title,
.nextgen-price-estimator__total-label {
	color: var(--nextgen-estimator-navy);
	font-size: clamp(1.125rem, 2.5vw, 1.375rem);
	font-weight: 600 !important;
	line-height: 1.15;
	/* text-transform: uppercase; */
}

.nextgen-price-estimator__base-price,
.nextgen-price-estimator__total {
	flex: 0 0 auto;
	color: var(--nextgen-estimator-navy);
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
	line-height: 1;
}

.nextgen-price-estimator__base-price {
	display: none;
}

.nextgen-price-estimator__note {
	margin-top: 8px;
	font-size: 0.875rem;
	line-height: 1.4;
}

.nextgen-price-estimator__section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: var(--medium-text) !important;
	font-weight: 600 !important;
	line-height: 1.3;
}

.nextgen-price-estimator__section-title i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25em;
	font-size: 1rem;
	line-height: 1;
}

.nextgen-price-estimator__items {
	display: grid;
	gap: var(--gutter-medium, 16px);
	margin-top: var(--gutter-medium, 16px);
}

.nextgen-price-estimator__item {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-size: 0.875rem;
	line-height: 1.35;
}

.nextgen-price-estimator__item-details {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
}

.nextgen-price-estimator__item-name {
	cursor: pointer;
}

.nextgen-price-estimator__checkbox {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--accent);
	cursor: pointer;
}

.nextgen-price-estimator__item-price {
	white-space: nowrap;
}

.nextgen-price-estimator__info-wrap {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
}

.nextgen-price-estimator__info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: currentColor;
	cursor: help;
	font: 700 11px/1 Arial, sans-serif;
	text-transform: lowercase;
}

.nextgen-price-estimator__info:focus-visible {
	outline: 2px solid var(--nextgen-estimator-navy);
	outline-offset: 2px;
}

.nextgen-price-estimator__tooltip {
	position: absolute;
	z-index: 10;
	bottom: calc(100% + 9px);
	left: 50%;
	width: max-content;
	max-width: min(300px, calc(100vw - 48px));
	padding: 9px 11px;
	border-radius: 4px;
	background: #222;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.4;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: opacity 150ms ease, transform 150ms ease;
}

.nextgen-price-estimator__info-wrap:hover .nextgen-price-estimator__tooltip,
.nextgen-price-estimator__info-wrap:focus-within .nextgen-price-estimator__tooltip {
	opacity: 1;
	transform: translate(-50%, 0);
}

.nextgen-price-estimator__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin-top: var(--gutter-medium, 24px);
	padding: 12px 24px;
	border-radius: var(--border-radious);
	background: var(--nextgen-estimator-navy);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: filter 150ms ease, transform 150ms ease;
}

.nextgen-price-estimator__button:hover,
.nextgen-price-estimator__button:focus-visible {
	color: #fff;
	filter: brightness(1.15);
	transform: translateY(-1px);
	background: var(--accent);
}

@media (max-width: 480px) {
	.nextgen-price-estimator__item {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.nextgen-price-estimator__item-price {
		grid-column: 2;
		font-size: 0.8125rem;
	}
}
