table.kalkylator-tabell {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 10px;
}

.mhrf-calculator-results--outside .smaller-text {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 60px;
}
.mhrf-calculator {
	background: var(--blue-secondary);
	padding: 35px 50px;
	border-radius: 4px;
	width: 100%;
	max-width: 768px;
	margin-left: auto;
	margin-right: auto;
}

.mhrf-calculator table {
	margin: 0;
}

@media screen and (max-width: 767px) {
	.mhrf-calculator {
		padding: 22px;
		padding-top: 35px;
		padding-bottom: 35px;
	}
}

.kalkylator-input-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-end;
}

.kalkylator-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.kalkylator-input-inline > .kalkylator-field:first-child {
	flex: 2;
}

@media screen and (max-width: 767px) {
	.kalkylator-input-inline > .kalkylator-field,
	.kalkylator-input-inline > .kalkylator-field:first-child {
		flex: 0 0 100%;
	}

	.kalkylator-field--btn {
		flex-direction: column;
		align-items: flex-start;
	}

	.kalkylator-result-wrapper {
		flex-direction: column;
	}

	.extra-btns-wrapper {
		flex-direction: column;
		align-items: flex-start;
	}

	.mhrf-calculator {
		border-radius: 0;
	}
}

.kalkylator-field label {
	color: #000;
}

.kalkylator-field input,
.kalkylator-field select {
	padding: 12px 16px;
	border: 1px solid #85a6d1;
	border-radius: 4px;
	width: 100% !important;
	background: white !important;
}

.kalkylator-field--btn {
	flex: none;
	flex-basis: 100%;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.kalkylator-field--btn .btn-secondary.btn-secondary.btn-secondary {
	width: fit-content !important;
	flex: none;
	font-size: 18px;
	margin-top: 4px;
}

.extra-btns-wrapper {
	margin-top: 30px;
	display: flex;
	gap: 16px;
}

.kalkylator-result-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-top: 20px;
}

.kalkylator-result-box {
	background: white;
	padding: 20px 30px;
	border-radius: 4px;
}

.kalkylator-result-box p {
	margin: 0;
	font-size: 1.2em;
}

.kalkylator-result-note {
	margin: 0;
	max-width: 300px;
}

#mhrf-back-to-calculator,
.mhrf-back-link {
	text-decoration: none;
	cursor: pointer;
	font-weight: 500;
	color: black !important;
	display: inline-block;
	margin-bottom: 30px;
}

.mhrf-back-link-wrapper {
	margin: 0;
}

#mhrf-back-to-calculator:hover,
.mhrf-back-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.kalkylator-tabell .kalkylator-icon {
	width: 28px;
	height: 28px;
	max-width: 28px;
	vertical-align: middle;
	margin-right: 8px;
	margin-left: 0;
	position: static;
	background: none;
	border-radius: 0;
	padding: 0;
}

.kalkylator-tabell .label-data {
	position: relative;
	padding-right: 30px !important;
}

.kalkylator-chevron-wrap {
	position: absolute;
	right: 8px;
	top: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	border-radius: 5px;
	transition:
		background 0.1s ease-out,
		transform 0.3s ease;
}

.kalkylator-row--open .kalkylator-chevron-wrap {
	transform: rotate(180deg);
}

.kalkylator-tabell .kalkylator-chevron {
	width: 12px;
	max-width: 12px;
	height: auto;
	position: static;
	background: none;
	border-radius: 0;
	padding: 0;
	margin: 0;
}

.kalkylator-row--has-info {
	cursor: pointer;
}

.kalkylator-info-content {
	height: 0;
	overflow: hidden;
	transition: height 0.3s ease;
}

.kalkylator-info-content p {
	margin: 16px 0 0 35px;
	font-size: 0.9em;
	line-height: 1.5;
}

.mhrf-calculator-results--outside {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

@media screen and (max-width: 767px) {
	.mhrf-calculator-results--outside {
		padding: 0 22px;
	}
}

table.kalkylator-tabell td {
	vertical-align: top;
}

table.kalkylator-tabell tr {
	transition: 0.1s ease-out;
}

table.kalkylator-tabell tr:hover .kalkylator-chevron-wrap {
	background: var(--blue-primary);
}

table.kalkylator-tabell tr:hover .kalkylator-chevron-wrap .kalkylator-chevron {
	filter: brightness(0) invert(1);
}

.kalkylator-tabell {
	table-layout: auto;
	overflow: visible;
}

.kalkylator-tabell thead,
.kalkylator-tabell thead tr,
.kalkylator-tabell thead th {
	overflow: visible;
}

.overflow-table {
	overflow: visible;
}

.kalkylator-tabell thead th:first-child {
	width: 35%;
}

.kalkylator-tabell thead {
	position: relative;
	z-index: 2;
}

.kalkylator-th--tooltip {
	position: relative;
	cursor: help;
}

.kalkylator-tabell .kalkylator-tooltip-icon {
	width: 16px;
	height: 16px;
	max-width: 16px;
	position: static;
	background: var(--blue-primary);
	border-radius: 50%;
	padding: 4px;
	margin: 0 0 0 4px;
	vertical-align: middle;
}

.kalkylator-tooltip {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 4px;
	background: #fef9e7;
	color: #000;
	border-radius: 4px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	min-width: 300px;
	max-width: 380px;
	z-index: 10;
	white-space: normal;
}

@media screen and (min-width: 768px) {
	.kalkylator-th--tooltip:hover .kalkylator-tooltip {
		display: block;
	}
}

.kalkylator-tooltip-close {
	display: none;
}

@media screen and (max-width: 767px) {
	.kalkylator-tooltip-close {
		display: block;
		position: absolute;
		top: 8px;
		right: 8px;
		background: none;
		border: none;
		font-size: 20px;
		line-height: 1;
		cursor: pointer;
		padding: 0;
		color: #000;
	}

	.kalkylator-tooltip {
		padding-right: 30px;
	}

	.kalkylator-tooltip.kalkylator-tooltip--visible {
		display: block;
	}
}

.kalkylator-loading {
	opacity: 0.3;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

@media screen and (max-width: 1025px) {
	#mhrf-calculator-results .overflow-table {
		padding-right: 90px;
	}
}
