/* TBA Framework - shared front-end styles */

.tba-tool {
	width: 100%;
	margin: 1.5em 0;
	padding: 1.5em;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	line-height: 1.4;
	box-sizing: border-box;
}

.tba-tool *,
.tba-tool *::before,
.tba-tool *::after {
	box-sizing: border-box;
}

.tba-tool__title {
	margin: 0 0 1em;
	font-size: 1.25em;
}

.tba-tool__section-heading {
	margin: 0 0 0.75em;
	font-size: 0.95em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b6b6b;
}

.tba-tool__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2em;
}

@media (max-width: 640px) {
	.tba-tool__grid {
		grid-template-columns: 1fr;
	}
}

.tba-field {
	margin-bottom: 0.9em;
}

.tba-field label {
	display: block;
	margin-bottom: 0.3em;
	font-weight: 600;
	font-size: 0.92em;
}

.tba-field input[type="number"],
.tba-field select {
	width: 100%;
	padding: 0.45em 0.6em;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 1em;
	background: #fff;
}

.tba-field__prefixed,
.tba-field__suffixed {
	display: flex;
	align-items: center;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	overflow: hidden;
}

.tba-field__prefixed input,
.tba-field__suffixed input {
	border: none;
	border-radius: 0;
}

.tba-field__prefixed input:focus,
.tba-field__suffixed input:focus {
	outline: none;
}

.tba-field__prefix,
.tba-field__suffix {
	padding: 0.45em 0.6em;
	background: #f0f0f1;
	color: #50575e;
	font-size: 0.95em;
}

.tba-result {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1em;
	padding: 0.5em 0;
	border-bottom: 1px dashed #e2e2e2;
}

.tba-result:last-child {
	border-bottom: none;
}

.tba-result__label {
	color: #3c434a;
	font-size: 0.92em;
}

.tba-result__value {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.tba-result--total {
	margin-top: 0.4em;
	padding-top: 0.6em;
	border-top: 2px solid #2c3338;
}

.tba-result--total .tba-result__value {
	font-size: 1.1em;
}
