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: 45px 50px;
	border-radius: 5px;
	overflow: hidden;
	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;
	}

}

.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 select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='black' stroke-opacity='0.7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !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;
	color: #435B79;
}

#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: 24px;
	height: 24px;
	max-width: 24px;
	vertical-align: middle;
	margin-right: 8px;
	margin-left: 0;
	position: static;
	background: none;
	border-radius: 0;
	padding: 0;
	margin-top:4px;
	pointer-events:none;

}

@media screen and (max-width: 767px) {
	.kalkylator-tabell .kalkylator-icon {
		width: 20px;
		height: 20px;
		max-width: 20px;
		margin-top: 5px;
	}
}

.kalkylator-tabell .label-data {
	position: relative;
	padding-right: 30px !important;
	font-weight: 600;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
}

.kalkylator-tabell .label-data > .kalkylator-info-content {
	grid-column: 1 / -1;
	font-weight: 400;
}

.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: 16px;
	line-height: 1.5;
}

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

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

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

table.kalkylator-tabell tr:hover td {
	text-shadow: none !important;
}

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-tabell thead th {
	text-transform: none;
}

.kalkylator-th--tooltip {
	position: relative;
}
.kalkylator-th--tooltip strong{
	text-transform:uppercase;
}

.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 2px 4px;
	vertical-align: middle;
	pointer-events:none;
}


.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;
	text-transform:none;

}

@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;
	}
}
