/* GBS Landscaping Calculators — frontend styles (deliberately neutral, theme-friendly) */

.gbs-lc {
	max-width: 860px;
	margin: 0 0 2em;
}

.gbs-lc__title {
	margin: 0 0 0.5em;
}

.gbs-lc__notes p {
	margin: 0 0 0.4em;
	font-size: 0.9em;
	opacity: 0.8;
}

.gbs-lc__inputs {
	display: flex;
	flex-wrap: wrap;
	gap: 1em 2em;
	margin: 1em 0 1.25em;
}

.gbs-lc__input {
	display: flex;
	flex-direction: column;
	gap: 0.3em;
	font-weight: 600;
}

.gbs-lc__input input {
	width: 10em;
	max-width: 100%;
	padding: 0.5em 0.65em;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 4px;
	font-size: 1em;
}

.gbs-lc__table {
	width: 100%;
	border-collapse: collapse;
}

.gbs-lc__table th,
.gbs-lc__table td {
	padding: 0.6em 0.75em;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	text-align: left;
	vertical-align: top;
}

.gbs-lc__table thead th {
	border-bottom-width: 2px;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.gbs-lc__col-qty,
.gbs-lc__col-price,
.gbs-lc__col-subtotal,
.gbs-lc__total {
	text-align: right !important;
	white-space: nowrap;
}

.gbs-lc__variant {
	display: block;
	margin-top: 0.35em;
	max-width: 100%;
}

.gbs-lc__total-label {
	text-align: right !important;
	font-weight: 700;
}

.gbs-lc__total {
	font-weight: 700;
}

.gbs-lc__price-note {
	margin-top: 0.75em;
	font-size: 0.85em;
	opacity: 0.75;
}

/* Layout only — the button itself is intentionally unstyled here so it
   inherits the theme/WooCommerce .button / .wp-element-button styles. */
.gbs-lc__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em 1em;
	margin-top: 1em;
}

.gbs-lc__basket-status {
	font-size: 0.9em;
}

/* Belt-and-braces: if the wrapper says pricing is off, never show price
   columns even if stale/cached markup contains them. */
.gbs-lc[data-pricing="0"] .gbs-lc__col-price,
.gbs-lc[data-pricing="0"] .gbs-lc__col-subtotal,
.gbs-lc[data-pricing="0"] tfoot,
.gbs-lc[data-pricing="0"] .gbs-lc__price-note {
	display: none !important;
}

@media (max-width: 600px) {
	.gbs-lc__table th,
	.gbs-lc__table td {
		padding: 0.5em 0.4em;
		font-size: 0.92em;
	}
}
