/* PBM Timber Length Calculator - compact layout. Selectors are prefixed to beat theme heading/input/button styles. */
.pbm-tlc {
	margin: 10px 0 14px;
	padding: 10px 12px;
	background: #f7f8fa;
	border: 1px solid #e1e4e8;
	border-radius: 6px;
	box-sizing: border-box;
	max-width: 380px;
	width: 100%;
	flex: 0 0 100%;
}

.pbm-tlc *,
.pbm-tlc *::before,
.pbm-tlc *::after {
	box-sizing: border-box;
}

.pbm-tlc .pbm-tlc__title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	color: inherit;
}

.pbm-tlc .pbm-tlc__label {
	display: block;
	margin: 0 0 4px;
	padding: 0;
	font-size: 12px;
	line-height: 1.3;
	font-weight: 600;
}

.pbm-tlc .pbm-tlc__row {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	margin: 0;
}

.pbm-tlc input.pbm-tlc__input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: 34px;
	min-height: 0;
	margin: 0;
	padding: 0 8px;
	font-size: 14px;
	line-height: 32px;
	background: #fff;
	border: 1px solid #c9ced6;
	border-radius: 4px;
	box-shadow: none;
}

.pbm-tlc input.pbm-tlc__input:focus {
	outline: 0;
	border-color: #1e73be;
	box-shadow: 0 0 0 2px rgba( 30, 115, 190, 0.2 );
}

.pbm-tlc button.pbm-tlc__btn {
	flex: 0 0 auto;
	width: auto;
	height: 34px;
	min-height: 0;
	margin: 0;
	padding: 0 12px;
	font-size: 13px;
	line-height: 34px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
	color: #fff;
	background: #1e73be;
	border: 0;
	border-radius: 4px;
	box-shadow: none;
	transition: background 0.15s ease;
}

.pbm-tlc button.pbm-tlc__btn:hover,
.pbm-tlc button.pbm-tlc__btn:focus {
	background: #155a95;
	color: #fff;
}

.pbm-tlc .pbm-tlc__result {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.35;
}

.pbm-tlc .pbm-tlc__result:empty {
	display: none;
}

.pbm-tlc .pbm-tlc__result.is-error {
	padding: 6px 8px;
	color: #8a1f11;
	background: #fdecea;
	border-left: 3px solid #d93025;
	border-radius: 3px;
}

.pbm-tlc .pbm-tlc__result.is-ok .pbm-tlc__total {
	font-size: 17px;
	color: #1a7f37;
}

.pbm-tlc .pbm-tlc__calc {
	display: block;
	margin-top: 1px;
	font-size: 11px;
	color: #5f6b7a;
}

.pbm-tlc .pbm-tlc__note {
	margin: 6px 0 0;
	padding: 0;
	font-size: 11px;
	line-height: 1.3;
	color: #5f6b7a;
}

@media ( max-width: 480px ) {
	.pbm-tlc {
		max-width: 100%;
	}
}
