.bhlsg-refi[data-refinancing-calculator] {
	--refi-navy: #061e57;
	--refi-blue: #0047cc;
	--refi-gold: #d4af37;
	--refi-ink: #172b4d;
	--refi-muted: #667085;
	--refi-line: #d8e1ed;
	--refi-soft: #f5f8fc;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	color: var(--refi-ink);
	font-family: inherit;
	line-height: 1.5;
}

.bhlsg-refi[data-refinancing-calculator],
.bhlsg-refi[data-refinancing-calculator] * {
	box-sizing: border-box;
}

.bhlsg-refi[data-refinancing-calculator] [hidden] {
	display: none !important;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__form,
.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__results {
	width: 100%;
	max-width: none;
	margin: 0;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__form {
	padding: clamp(22px, 3.5vw, 40px);
	border: 1px solid var(--refi-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(6, 30, 87, 0.055);
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__mortgages {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(16px, 2.5vw, 26px);
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__mortgage {
	min-width: 0;
	margin: 0;
	padding: clamp(20px, 2.8vw, 30px);
	border: 1px solid #dfe6ef;
	border-radius: 11px;
	background: var(--refi-soft);
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__mortgage--new {
	border-color: #c8d8f2;
	background: #edf3ff;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__section-head {
	display: flex;
	align-items: center;
	margin-bottom: 22px;
	gap: 12px;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__section-head > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--refi-navy);
	color: #f2cf62;
	font-size: 11px;
	font-weight: 800;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__section-head p {
	margin: 0;
	color: var(--refi-blue);
	font-size: 10px;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__section-head h3 {
	margin: 1px 0 0;
	color: var(--refi-navy);
	font-size: clamp(20px, 2vw, 25px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__field {
	display: block;
	min-width: 0;
	margin: 0;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__field + .bhlsg-refi__field {
	margin-top: 17px;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__field > span:first-child {
	display: block;
	margin: 0 0 7px;
	color: #23395d;
	font-size: 13px;
	font-weight: 650;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__money,
.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__suffix {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 50px;
	overflow: hidden;
	border: 1px solid #cbd6e4;
	border-radius: 9px;
	background: #fff;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__money b,
.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__suffix b {
	display: inline-flex;
	align-items: center;
	align-self: stretch;
	flex: 0 0 auto;
	padding: 0 12px;
	background: #f7f9fc;
	color: #52617a;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__money b {
	border-right: 1px solid #e1e7f0;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__suffix b {
	border-left: 1px solid #e1e7f0;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__money input,
.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__suffix input {
	flex: 1 1 0;
	width: 0;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 13px 0 12px;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: var(--refi-navy);
	font: inherit;
	font-size: 16px;
	outline: 0;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__money:focus-within,
.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__suffix:focus-within {
	border-color: var(--refi-blue);
	box-shadow: 0 0 0 3px rgba(0, 71, 204, 0.12);
}

.bhlsg-refi[data-refinancing-calculator] input[aria-invalid="true"] {
	background: #fff7f7;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__errors {
	margin: 0 0 22px;
	padding: 13px 15px;
	border: 1px solid rgba(0, 71, 204, 0.24);
	border-radius: 9px;
	background: #f2f6ff;
	color: var(--refi-navy);
	font-size: 13px;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__errors ul {
	margin: 6px 0 0 18px;
	padding: 0;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__actions {
	display: flex;
	align-items: center;
	margin-top: 24px;
	gap: 10px;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 49px;
	margin: 0;
	padding: 12px 22px;
	border: 1px solid var(--refi-navy);
	border-radius: 9px;
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__button--primary {
	background: var(--refi-navy);
	color: #fff;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__button--primary:hover {
	border-color: var(--refi-blue);
	background: var(--refi-blue);
	transform: translateY(-1px);
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__button--secondary {
	border-color: #cbd6e4;
	background: #fff;
	color: #52617a;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__button:focus-visible {
	outline: 3px solid rgba(212, 175, 55, 0.45);
	outline-offset: 2px;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__empty,
.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__report {
	width: 100%;
	margin: 22px 0 0;
	padding: clamp(22px, 3.5vw, 34px);
	border: 1px solid var(--refi-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(6, 30, 87, 0.055);
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__empty {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 190px;
	flex-direction: column;
	background: linear-gradient(145deg, #f8faff, #eef4ff);
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__empty > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-bottom: 14px;
	border-radius: 10px;
	background: var(--refi-navy);
	color: #f2cf62;
	font-size: 20px;
	font-weight: 800;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__empty h3 {
	margin: 0;
	color: var(--refi-navy);
	font-size: 20px;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__empty p {
	margin: 7px 0 0;
	color: var(--refi-muted);
	font-size: 13px;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__report {
	display: grid;
	grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
	gap: 16px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__report.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__saving {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	min-height: 200px;
	margin: 0;
	padding: 26px;
	border-radius: 10px;
	background: var(--refi-navy);
	color: #fff;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__saving p {
	margin: 0;
	color: #c9d9f4;
	font-size: 12px;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__saving output {
	display: block;
	margin: 8px 0;
	color: #f2cf62;
	font-size: clamp(34px, 5vw, 50px);
	font-weight: 750;
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__saving span {
	color: #e5ecf8;
	font-size: 13px;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__comparison {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__comparison section,
.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__interest-summary {
	margin: 0;
	padding: 16px;
	border: 1px solid #e0e7f0;
	border-radius: 9px;
	background: #fff;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__comparison p,
.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__interest-summary p {
	margin: 0;
	color: var(--refi-muted);
	font-size: 11px;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__comparison strong,
.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__interest-summary strong {
	display: block;
	margin-top: 5px;
	color: var(--refi-navy);
	font-size: 18px;
	font-weight: 700;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__interest-summary {
	grid-column: 1 / -1;
	background: #edf3ff;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__interest-summary span {
	display: block;
	margin-top: 3px;
	color: #52617a;
	font-size: 11px;
}

.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__disclaimer {
	grid-column: 1 / -1;
	margin: 0;
	color: #7a8598;
	font-size: 10px;
	line-height: 1.55;
}

@media (max-width: 820px) {
	.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__mortgages,
	.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__report {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 620px) {
	.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__form,
	.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__empty,
	.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__report {
		padding: 20px 16px;
		border-radius: 10px;
	}

	.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__mortgage {
		padding: 20px 15px;
	}

	.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__button {
		width: 100%;
	}

	.bhlsg-refi[data-refinancing-calculator] .bhlsg-refi__comparison {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bhlsg-refi[data-refinancing-calculator] *,
	.bhlsg-refi[data-refinancing-calculator] *::before,
	.bhlsg-refi[data-refinancing-calculator] *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
