/* Btw Impact Calculator - basisstyling. Neutraal opgezet zodat het in de
   meeste WordPress-thema's past; overschrijf gerust met je eigen thema-CSS. */

.bbc-calculator {
	max-width: 640px;
	margin: 1.5em 0;
	padding: 1.5em;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fafafa;
	box-sizing: border-box;
	font-size: 1em;
	line-height: 1.5;
}

.bbc-calculator *,
.bbc-calculator *::before,
.bbc-calculator *::after {
	box-sizing: inherit;
}

.bbc-calculator__intro p {
	margin-top: 0;
}

.bbc-field {
	margin-bottom: 1.25em;
}

.bbc-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}

.bbc-field input[type="number"] {
	width: 100%;
	max-width: 280px;
	padding: 0.5em 0.6em;
	border: 1px solid #bbb;
	border-radius: 4px;
	font-size: 1em;
}

.bbc-field input[type="range"] {
	width: 100%;
}

.bbc-field__hint {
	margin: 0.35em 0 0;
	font-size: 0.85em;
	color: #666;
}

.bbc-field__label-standalone {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}

.bbc-field__radios {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
}

.bbc-radio {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
	font-weight: 400;
	cursor: pointer;
}

.bbc-radio input[type="radio"] {
	margin-top: 0.25em;
	flex-shrink: 0;
}

.bbc-field__presets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-top: 0.6em;
}

/*
 * Sommige thema's zetten eigen stijlen op alle <button>-elementen (bijv.
 * witte tekstkleur, hoofdletters, schaduw), bedoeld voor knoppen met een
 * gekleurde achtergrond. Die stijlen kunnen hierdoorheen lekken en de tekst
 * onleesbaar maken op onze eigen (lichte) achtergrond. "all: unset" haalt
 * eerst alle overgeërfde/thema-stijlen weg, waarna we alles zelf opnieuw
 * instellen; de !important-regels zijn een extra vangnet voor thema-CSS met
 * een hogere specificiteit.
 */
.bbc-calculator .bbc-field__presets .bbc-preset {
	all: unset;
	box-sizing: border-box;
	display: inline-block;
	background-color: #fff !important;
	color: #2c2c2c !important;
	border: 1px solid #bbb !important;
	border-radius: 999px !important;
	padding: 0.4em 1em !important;
	margin: 0;
	font-size: 0.85em !important;
	font-family: inherit !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	text-align: center;
	text-transform: none !important;
	text-decoration: none !important;
	white-space: normal;
	box-shadow: none !important;
	cursor: pointer;
}

.bbc-calculator .bbc-field__presets .bbc-preset:hover,
.bbc-calculator .bbc-field__presets .bbc-preset:focus {
	background-color: #eef6ee !important;
	border-color: #6aa66a !important;
	color: #1f3d1f !important;
}

.bbc-results {
	margin-top: 1.5em;
}

.bbc-results__table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.bbc-results__table th,
.bbc-results__table td {
	text-align: left;
	padding: 0.6em 0.7em;
	border-bottom: 1px solid #e2e2e2;
	font-size: 0.95em;
}

.bbc-results__table thead th {
	font-weight: 700;
	border-bottom: 2px solid #ccc;
}

.bbc-results__table tbody th {
	font-weight: 600;
}

.bbc-results__table td:not(:first-child) {
	font-variant-numeric: tabular-nums;
}

.bbc-results--negative .bbc-results__table td:nth-child(4) {
	color: #a4262c;
}

.bbc-results__explain {
	margin-top: 0.9em;
	font-style: italic;
	color: #444;
}

.bbc-results__table th[title] {
	cursor: help;
	text-decoration: underline dotted;
	text-decoration-color: #999;
	text-underline-offset: 3px;
}

.bbc-explainer {
	margin-top: 1.25em;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	padding: 0.15em 1em;
}

.bbc-explainer summary {
	cursor: pointer;
	font-weight: 600;
	padding: 0.6em 0;
	list-style: revert;
}

.bbc-explainer summary:focus-visible {
	outline: 2px solid #6aa66a;
	outline-offset: 2px;
}

.bbc-explainer__content {
	padding-bottom: 0.8em;
	border-top: 1px solid #eee;
	padding-top: 0.6em;
}

.bbc-explainer__content p {
	margin: 0 0 0.8em;
	font-size: 0.92em;
	line-height: 1.55;
	color: #333;
}

.bbc-explainer__content p:last-child {
	margin-bottom: 0;
}

.bbc-calculator__disclaimer {
	margin-top: 1.5em;
	padding: 0.8em 1em;
	border-top: 1px solid #ddd;
	background: #f3f1ea;
	border-left: 3px solid #a4894a;
	font-size: 0.8em;
	line-height: 1.5;
	color: #555;
}

@media ( max-width: 480px ) {
	.bbc-results__table {
		font-size: 0.85em;
	}

	.bbc-results__table th,
	.bbc-results__table td {
		padding: 0.45em 0.4em;
	}
}
