/* Shelterbelt & Windbreak Cost Calculator - styles */

.sbc-app {
	max-width: 980px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #23282d;
	box-sizing: border-box;
}
.sbc-app * {
	box-sizing: border-box;
}

.sbc-section {
	background: #fff;
	border: 1px solid #dcdfe1;
	border-radius: 8px;
	padding: 20px 22px;
	margin-bottom: 18px;
}

.sbc-section h2 {
	font-size: 18px;
	margin: 0 0 4px;
	color: #1d3b1f;
}

.sbc-section h3 {
	font-size: 15px;
	margin: 0 0 10px;
}

.sbc-subtitle {
	font-size: 13px;
	color: #666;
	margin: 0 0 16px;
}

.sbc-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.sbc-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

@media (max-width: 640px) {
	.sbc-grid-2,
	.sbc-grid-4 {
		grid-template-columns: 1fr;
	}
}

.sbc-field {
	margin-bottom: 12px;
}

.sbc-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
}

.sbc-field .sbc-help {
	font-weight: 400;
	color: #767676;
	font-size: 12px;
	display: block;
	margin-top: 2px;
}

.sbc-field input[type="number"],
.sbc-field input[type="text"],
.sbc-field select {
	width: 100%;
	padding: 7px 8px;
	border: 1px solid #c3c7c9;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
}

.sbc-sides {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 6px;
}

.sbc-side-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #f4f7f4;
	border: 1px solid #d8e0d8;
	border-radius: 6px;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
}

.sbc-side-toggle input {
	margin: 0;
}

.sbc-row-card {
	border: 1px solid #dfe4df;
	border-left: 4px solid #4a7c4a;
	border-radius: 6px;
	padding: 14px 16px;
	margin-bottom: 12px;
	background: #fafcfa;
	position: relative;
}

.sbc-row-card .sbc-row-title {
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #4a7c4a;
	margin-bottom: 10px;
}

.sbc-row-remove {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	color: #a33;
	font-size: 13px;
	cursor: pointer;
	font-weight: 600;
}
.sbc-row-remove:hover {
	text-decoration: underline;
}

.sbc-row-fields {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 10px;
}

@media (max-width: 780px) {
	.sbc-row-fields {
		grid-template-columns: 1fr 1fr;
	}
}

.sbc-species-note {
	grid-column: 1 / -1;
	font-size: 12px;
	color: #55665a;
	background: #eef3ee;
	border-radius: 4px;
	padding: 6px 10px;
	margin-top: -2px;
}

.sbc-btn {
	display: inline-block;
	background: #3f6b3f;
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.sbc-btn:hover {
	background: #34592f;
}
.sbc-btn.sbc-btn-secondary {
	background: #eef1ee;
	color: #33402e;
	border: 1px solid #c7d0c3;
}
.sbc-btn.sbc-btn-secondary:hover {
	background: #e2e8e0;
}

.sbc-visual-wrap {
	background: #fff;
	border: 1px solid #dcdfe1;
	border-radius: 8px;
	overflow: hidden;
}

.sbc-visual-wrap svg {
	width: 100%;
	height: auto;
	display: block;
	background: #f7f9f6;
}

.sbc-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 10px 16px;
	font-size: 12px;
	border-top: 1px solid #eceeec;
}
.sbc-legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
}
.sbc-legend-swatch {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	display: inline-block;
}

table.sbc-summary-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
table.sbc-summary-table th,
table.sbc-summary-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #eceeec;
}
table.sbc-summary-table th {
	background: #f4f7f4;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #4a5a4a;
}
table.sbc-summary-table tfoot td {
	font-weight: 700;
	border-top: 2px solid #4a7c4a;
	border-bottom: none;
}
.sbc-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.sbc-grand-total {
	margin-top: 14px;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	background: #eef3ee;
	border-radius: 6px;
	padding: 14px 18px;
}
.sbc-grand-total .sbc-label {
	font-size: 14px;
	font-weight: 600;
}
.sbc-grand-total .sbc-amount {
	font-size: 26px;
	font-weight: 800;
	color: #2f5330;
}

.sbc-note {
	font-size: 12px;
	color: #767676;
	margin-top: 10px;
	line-height: 1.5;
}

.sbc-warning {
	font-size: 12px;
	background: #fff8e6;
	border: 1px solid #f0dfa8;
	color: #6b5410;
	border-radius: 5px;
	padding: 8px 10px;
	margin-top: 10px;
}
