/*
 * Price basis. Like the card call to action, this block is printed inside the
 * theme's product summary, outside the `.nsd` scope, so every declaration has
 * to stand on its own.
 *
 * The sheet never prices a product in the abstract : the amount only holds for
 * one dimension, on one billing basis, before delivery and installation. The
 * block keeps that context glued to the price instead of leaving it in the
 * description where nobody reads it.
 */
.nsd-price-details {
	margin: -0.5rem 0 1.25rem;
	font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	line-height: 1.5;
}

.nsd-price-basis {
	margin: 0 0 0.2rem;
	font-size: 0.86rem;
	font-weight: 500;
	color: #1a1c1e;
}

.nsd-price-mention {
	margin: 0;
	font-size: 0.74rem;
	letter-spacing: 0.02em;
	color: #5a5e62;
}

.nsd-price-options {
	margin-top: 0.85rem;
	padding: 0.7rem 0.9rem;
	border-left: 2px solid #85be14;
	background-color: #f7f6f4;
}

.nsd-price-options-title {
	margin: 0 0 0.25rem;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #5a5e62;
}

.nsd-price-options-body {
	margin: 0;
	font-size: 0.82rem;
	color: #1a1c1e;
}

/* Billing basis glued to the amount in listings and related products. */
.nsd-price-unit {
	font-size: 0.78rem;
	font-weight: 500;
	white-space: nowrap;
	color: #5a5e62;
}

/*
 * Ordering configurator. Printed inside the theme's add-to-cart form, outside
 * the `.nsd` scope, so every declaration stands on its own.
 */
.nsd-calc {
	margin: 0 0 1.25rem;
	padding: 1rem 1.1rem;
	border: 1px solid #e0ddd8;
	border-left: 2px solid #85be14;
	background-color: #f7f6f4;
	font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.nsd-calc__field {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}

.nsd-calc__field label {
	flex: 1 1 12rem;
	margin: 0;
	font-size: 0.82rem;
	font-weight: 500;
	color: #1a1c1e;
}

.nsd-calc__field input[type="number"] {
	width: 6rem;
	padding: 0.45rem 0.6rem;
	border: 1px solid #e0ddd8;
	border-radius: 2px;
	background-color: #fff;
	font-size: 0.9rem;
	color: #1a1c1e;
}

.nsd-calc__field--stepper {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) auto auto;
}

.nsd-calc__stepper {
	display: inline-grid;
	grid-template-columns: 44px 72px 44px;
	border: 1px solid #cfd2d3;
	border-radius: 7px;
	overflow: hidden;
}

.nsd-calc__stepper button {
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: #14181b;
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	cursor: pointer;
}

.nsd-calc__stepper input[type="number"] {
	width: 72px;
	min-height: 44px;
	padding: 0 6px;
	border: 0;
	border-radius: 0;
	text-align: center;
	font-size: 16px;
	font-weight: 800;
}

.nsd-calc__stepper button:focus-visible {
	outline: 3px solid #ef8200;
	outline-offset: -3px;
}

@media (max-width: 520px) {
	.nsd-calc__field--stepper {
		grid-template-columns: 1fr;
	}
}

.nsd-calc__field--range {
	display: block;
	margin-bottom: 1rem;
}

.nsd-calc__range-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.45rem;
}

.nsd-calc__range-heading label {
	flex: 1 1 auto;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.35;
}

.nsd-calc__range-value {
	display: inline-flex;
	min-width: 5.4rem;
	min-height: 44px;
	align-items: baseline;
	justify-content: center;
	gap: 0.3rem;
	padding: 0.45rem 0.75rem;
	border: 1px solid #72a810;
	border-radius: 4px;
	background: #fff;
	color: #1a1c1e;
}

.nsd-calc__range-value output {
	font-size: 1.15rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.nsd-calc__range-value abbr {
	border: 0;
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
}

.nsd-calc__field input[type="range"] {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	accent-color: #85be14;
	cursor: pointer;
	touch-action: pan-y;
}

.nsd-calc__field input[type="range"]::-webkit-slider-runnable-track {
	height: 8px;
	border-radius: 99px;
	background: #d8ddd0;
}

.nsd-calc__field input[type="range"]::-webkit-slider-thumb {
	width: 30px;
	height: 30px;
	margin-top: -11px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #85be14;
	box-shadow: 0 0 0 2px #638f0d, 0 3px 10px rgba(26, 28, 30, 0.25);
	-webkit-appearance: none;
}

.nsd-calc__field input[type="range"]::-moz-range-track {
	height: 8px;
	border-radius: 99px;
	background: #d8ddd0;
}

.nsd-calc__field input[type="range"]::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #85be14;
	box-shadow: 0 0 0 2px #638f0d, 0 3px 10px rgba(26, 28, 30, 0.25);
}

.nsd-calc__field input[type="range"]:focus-visible {
	outline: 3px solid rgba(217, 111, 13, 0.38);
	outline-offset: 2px;
}

.nsd-calc__range-scale {
	display: flex;
	justify-content: space-between;
	margin-top: -0.3rem;
	font-size: 0.72rem;
	font-weight: 600;
	color: #5a5e62;
}

.nsd-calc__unit,
.nsd-calc__price {
	font-size: 0.76rem;
	color: #5a5e62;
}

.nsd-calc__price {
	display: block;
	font-weight: 400;
}

.nsd-calc__choice {
	margin: 0 0 0.85rem;
	padding: 0;
	border: 0;
}

.nsd-calc__choice legend {
	margin-bottom: 0.35rem;
	padding: 0;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #5a5e62;
}

.nsd-calc__radio {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-right: 1rem;
	font-size: 0.85rem;
	color: #1a1c1e;
}

.nsd-calc__help {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.74rem;
	color: #5a5e62;
}

.nsd-calc__addon[hidden] {
	display: none;
}

.nsd-calc__total {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding-top: 0.8rem;
	border-top: 1px solid #e0ddd8;
}

.nsd-calc__total-label {
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #5a5e62;
}

.nsd-calc__total-value {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1a1c1e;
}

.nsd-calc__total-note {
	flex: 1 0 100%;
	font-size: 0.72rem;
	color: #5a5e62;
}

.nsd-payment-banner {
	display: flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 0.55rem 0.8rem;
	padding: 0.5rem max(1rem, env(safe-area-inset-left));
	background: #171a1d;
	color: #fff;
	font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 0.82rem;
	line-height: 1.35;
	text-align: center;
}

.nsd-payment-banner__mark,
.nsd-payment-note > span {
	display: inline-flex;
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #85be14;
	color: #111;
	font-size: 0.75rem;
	font-weight: 800;
}

.nsd-payment-banner strong {
	color: #fff;
	font-size: 0.84rem;
	letter-spacing: 0.01em;
}

.nsd-payment-banner > span:last-child {
	color: rgba(255, 255, 255, 0.74);
}

.nsd-payment-note {
	display: flex;
	min-height: 44px;
	align-items: center;
	gap: 0.55rem;
	margin: 0.65rem 0;
	color: #30363a;
	font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 0.78rem;
	line-height: 1.35;
}

.nsd-payment-note > span {
	width: 1.85rem;
	height: 1.85rem;
	font-size: 0.68rem;
}

.nsd-payment-note strong,
.nsd-payment-row strong {
	color: #30363a;
	font-weight: 700;
}

.nsd-payment-row th,
.nsd-payment-row td {
	vertical-align: middle;
}

.nsd-cart-units {
	max-width: 28rem;
	margin-top: 0.8rem;
	padding: 0.85rem;
	border: 1px solid #dedbd4;
	border-left: 3px solid #85be14;
	border-radius: 4px;
	background: #f7f6f4;
	font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.nsd-cart-units__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.35rem;
}

.nsd-cart-units__heading label {
	margin: 0;
	color: #252a2e;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.35;
}

.nsd-cart-units__value {
	display: inline-flex;
	min-width: 4.9rem;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	padding: 0.35rem 0.65rem;
	border: 1px solid #72a810;
	border-radius: 4px;
	background: #fff;
	color: #252a2e;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.nsd-cart-units__value abbr {
	border: 0;
	text-decoration: none;
}

.nsd-cart-units input[type="range"] {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	accent-color: #85be14;
	cursor: pointer;
	touch-action: pan-y;
}

.nsd-cart-units input[type="range"]::-webkit-slider-runnable-track {
	height: 8px;
	border-radius: 99px;
	background: #d8ddd0;
}

.nsd-cart-units input[type="range"]::-webkit-slider-thumb {
	width: 30px;
	height: 30px;
	margin-top: -11px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #85be14;
	box-shadow: 0 0 0 2px #638f0d, 0 3px 10px rgba(26, 28, 30, 0.25);
	-webkit-appearance: none;
}

.nsd-cart-units input[type="range"]::-moz-range-track {
	height: 8px;
	border-radius: 99px;
	background: #d8ddd0;
}

.nsd-cart-units input[type="range"]::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #85be14;
	box-shadow: 0 0 0 2px #638f0d, 0 3px 10px rgba(26, 28, 30, 0.25);
}

.nsd-cart-units input[type="range"]:focus-visible {
	outline: 3px solid rgba(217, 111, 13, 0.38);
	outline-offset: 2px;
}

.nsd-cart-units__scale {
	display: flex;
	justify-content: space-between;
	margin-top: -0.35rem;
	color: #60676c;
	font-size: 0.7rem;
	font-weight: 600;
}

.nsd-cart-units--discrete {
	min-width: 12rem;
	margin: 0 auto;
}

.nsd-cart-units--discrete .nsd-cart-units__heading {
	margin-bottom: 0.55rem;
}

.nsd-cart-units__stepper {
	display: grid;
	grid-template-columns: 44px minmax(52px, 1fr) 44px;
	align-items: stretch;
	width: 100%;
	border: 1px solid #cfd5c7;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}

.nsd-cart-units__stepper button,
.nsd-cart-units__stepper input {
	min-width: 0;
	min-height: 44px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #252a2e;
	font: inherit;
	font-weight: 800;
	text-align: center;
}

.nsd-cart-units__stepper button {
	padding: 0;
	font-size: 1.15rem;
	cursor: pointer;
}

.nsd-cart-units__stepper button:hover,
.nsd-cart-units__stepper button:focus-visible {
	background: #85be14;
	color: #172006;
}

.nsd-cart-units__stepper input {
	border-inline: 1px solid #cfd5c7;
	-moz-appearance: textfield;
}

.nsd-cart-units__stepper input::-webkit-inner-spin-button,
.nsd-cart-units__stepper input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.nsd-cart-units--discrete small {
	display: block;
	margin-top: 0.4rem;
	color: #60676c;
	font-size: 0.68rem;
	line-height: 1.35;
}

.woocommerce-cart-form [name="update_cart"].nsd-cart-update-visible {
	display: inline-flex !important;
	min-height: 44px;
	align-items: center;
	justify-content: center;
}



