.trusteel-storage-calculator {
	--trusteel-accent: #d96c1c;
	--trusteel-secondary: #1f5f85;
	--trusteel-ink: #17212b;
	--trusteel-muted: #5f6f7d;
	--trusteel-border: #d8e0e6;
	--trusteel-soft: #f4f7f9;
	--trusteel-panel: #ffffff;
	color: var(--trusteel-ink);
	font-family: inherit;
}

.trusteel-storage-calculator * {
	box-sizing: border-box;
}

.trusteel-calc {
	background: var(--trusteel-panel);
	border: 1px solid var(--trusteel-border);
	border-radius: 8px;
	box-shadow: 0 16px 40px rgba(23, 33, 43, 0.08);
	overflow: hidden;
}

.trusteel-calc--fallback {
	align-items: center;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	padding: 28px;
}

.trusteel-calc__header {
	background: #ffffff;
	border-bottom: 1px solid var(--trusteel-border);
	padding: 28px;
}

.trusteel-calc__header-row {
	align-items: end;
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1fr) auto;
}

.trusteel-calc__eyebrow {
	color: var(--trusteel-accent);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.trusteel-calc h2,
.trusteel-calc h3,
.trusteel-calc p {
	margin-top: 0;
}

.trusteel-calc h2 {
	color: var(--trusteel-ink);
	font-size: 1.85rem;
	line-height: 1.15;
	margin-bottom: 10px;
}

.trusteel-calc h3 {
	color: var(--trusteel-ink);
	font-size: 1rem;
	line-height: 1.25;
	margin-bottom: 0;
}

.trusteel-calc h3 .trusteel-calc__help {
	margin-left: 6px;
	vertical-align: middle;
}

.trusteel-calc p {
	color: var(--trusteel-muted);
	line-height: 1.55;
	margin-bottom: 0;
}

.trusteel-calc__summary-pill {
	background: var(--trusteel-soft);
	border: 1px solid var(--trusteel-border);
	border-radius: 8px;
	min-width: 188px;
	padding: 14px 16px;
}

.trusteel-calc__summary-pill span {
	color: var(--trusteel-muted);
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	margin-bottom: 4px;
}

.trusteel-calc__summary-pill strong {
	color: var(--trusteel-secondary);
	display: block;
	font-size: 1rem;
	line-height: 1.25;
}

.trusteel-calc__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
}

.trusteel-calc__controls {
	padding: 28px;
}

.trusteel-calc__results {
	background: #f8fafb;
	border-left: 1px solid var(--trusteel-border);
	padding: 28px;
}

.trusteel-calc__section-head {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 14px;
}

.trusteel-calc__section-head span {
	color: var(--trusteel-muted);
	font-size: 0.82rem;
	font-weight: 700;
}

.trusteel-calc__label-row {
	align-items: center;
	display: inline-flex !important;
	gap: 6px;
	line-height: 1.25;
	min-width: 0;
}

.trusteel-calc__label-text {
	display: inline !important;
	min-width: 0;
}

.trusteel-calc__help {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--trusteel-border);
	border-radius: 999px;
	color: var(--trusteel-secondary) !important;
	cursor: help;
	display: inline-flex !important;
	flex: 0 0 auto;
	font-size: 0.68rem !important;
	font-weight: 900 !important;
	height: 18px;
	justify-content: center;
	line-height: 1;
	position: relative;
	text-align: center;
	width: 18px;
	z-index: 4;
}

.trusteel-calc__help::after {
	background: var(--trusteel-ink);
	border-radius: 6px;
	bottom: calc(100% + 8px);
	box-shadow: 0 8px 20px rgba(23, 33, 43, 0.18);
	color: #ffffff;
	content: attr(data-tooltip);
	font-size: 0.78rem;
	font-weight: 600;
	left: 50%;
	line-height: 1.35;
	max-width: min(280px, 78vw);
	opacity: 0;
	padding: 9px 10px;
	pointer-events: none;
	position: absolute;
	text-align: left;
	text-transform: none;
	transform: translate(-50%, 4px);
	transition: opacity 0.16s ease, transform 0.16s ease;
	visibility: hidden;
	width: max-content;
	z-index: 20;
}

.trusteel-calc__help:hover::after,
.trusteel-calc__help:focus::after {
	opacity: 1;
	transform: translate(-50%, 0);
	visibility: visible;
}

.trusteel-calc__help:focus {
	outline: 3px solid rgba(217, 108, 28, 0.28);
	outline-offset: 2px;
}

.trusteel-calc__tabs {
	background: var(--trusteel-soft);
	border: 1px solid var(--trusteel-border);
	border-radius: 8px;
	display: grid;
	gap: 4px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 20px;
	padding: 4px;
}

.trusteel-calc__tab {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 6px;
	color: var(--trusteel-muted);
	cursor: pointer;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 700;
	min-height: 40px;
	padding: 8px 10px;
	transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.trusteel-calc__tab.is-active {
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(23, 33, 43, 0.1);
	color: var(--trusteel-secondary);
}

.trusteel-calc__field-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trusteel-calc__field {
	display: grid;
	gap: 7px;
	min-width: 0;
}

.trusteel-calc__field--wide {
	grid-column: 1 / -1;
}

.trusteel-calc__field span,
.trusteel-calc__unit-row label span {
	color: var(--trusteel-ink);
	font-size: 0.84rem;
	font-weight: 700;
}

.trusteel-calc input,
.trusteel-calc select {
	appearance: none;
	background: #ffffff;
	border: 1px solid var(--trusteel-border);
	border-radius: 6px;
	color: var(--trusteel-ink);
	font: inherit;
	min-height: 44px;
	padding: 10px 12px;
	width: 100%;
}

.trusteel-calc select {
	background-image: linear-gradient(45deg, transparent 50%, var(--trusteel-muted) 50%), linear-gradient(135deg, var(--trusteel-muted) 50%, transparent 50%);
	background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	padding-right: 34px;
}

.trusteel-calc input:focus,
.trusteel-calc select:focus,
.trusteel-calc__tab:focus-visible,
.trusteel-calc__cta:focus-visible,
.trusteel-calc__phone:focus-visible,
.trusteel-calc__copy:focus-visible {
	outline: 3px solid rgba(217, 108, 28, 0.28);
	outline-offset: 2px;
}

.trusteel-calc input[type="range"] {
	accent-color: var(--trusteel-accent);
	padding-left: 0;
	padding-right: 0;
}

.trusteel-calc__range-shell {
	align-items: center;
	background: var(--trusteel-soft);
	border: 1px solid var(--trusteel-border);
	border-radius: 8px;
	display: flex;
	height: 46px;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.trusteel-calc__range-fill {
	background: linear-gradient(90deg, rgba(217, 108, 28, 0.95), rgba(31, 95, 133, 0.92));
	bottom: 0;
	left: 0;
	position: absolute;
	top: 0;
	transition: width 0.22s ease;
	width: var(--trusteel-range-pct);
}

.trusteel-calc__range-value {
	background: rgba(255, 255, 255, 0.86);
	border-radius: 999px;
	color: var(--trusteel-ink) !important;
	display: inline-flex !important;
	font-size: 0.84rem !important;
	font-weight: 900 !important;
	line-height: 1;
	padding: 6px 10px;
	position: relative;
	z-index: 2;
}

.trusteel-calc .trusteel-calc__range-input {
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	height: 100%;
	inset: 0;
	min-height: 0;
	opacity: 0;
	padding: 0;
	position: absolute;
	width: 100%;
	z-index: 3;
}

.trusteel-calc__range-shell:focus-within {
	outline: 3px solid rgba(217, 108, 28, 0.28);
	outline-offset: 2px;
}

.trusteel-calc__field output {
	color: var(--trusteel-secondary);
	font-size: 0.9rem;
	font-weight: 800;
}

.trusteel-calc__unit-mix,
.trusteel-calc__roi-controls {
	border-top: 1px solid var(--trusteel-border);
	margin-top: 22px;
	padding-top: 22px;
}

.trusteel-calc__unit-grid {
	display: grid;
	gap: 10px;
}

.trusteel-calc__mix-total.is-balanced {
	color: var(--trusteel-secondary);
}

.trusteel-calc__mix-total.is-over {
	color: #b54816;
}

.trusteel-calc__mix-total.is-under {
	color: #805b10;
}

.trusteel-calc__mix-alert {
	border-radius: 6px;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.4;
	margin: -4px 0 12px;
	padding: 10px 12px;
}

.trusteel-calc__mix-alert.is-over {
	background: #fff4ed;
	border: 1px solid #f3b894;
	color: #8b3510;
}

.trusteel-calc__mix-alert.is-under {
	background: #fff9e8;
	border: 1px solid #e5c879;
	color: #74510d;
}

.trusteel-calc__unit-labels {
	color: var(--trusteel-muted);
	display: grid;
	font-size: 0.76rem;
	font-weight: 800;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr) 96px 78px;
	letter-spacing: 0;
	margin: 0 12px 8px;
	text-transform: uppercase;
}

.trusteel-calc__unit-labels span:last-child {
	text-align: right;
}

.trusteel-calc__unit-row {
	align-items: center;
	border: 1px solid var(--trusteel-border);
	border-radius: 8px;
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr) 96px 78px;
	padding: 12px;
}

.trusteel-calc__unit-row strong,
.trusteel-calc__unit-row span {
	display: block;
}

.trusteel-calc__unit-row strong {
	color: var(--trusteel-ink);
	font-size: 0.92rem;
	line-height: 1.25;
}

.trusteel-calc__unit-row > div span {
	color: var(--trusteel-muted);
	font-size: 0.78rem;
	margin-top: 2px;
}

.trusteel-calc__unit-row input {
	min-height: 38px;
	padding: 7px 8px;
}

.trusteel-calc__unit-row output {
	color: var(--trusteel-secondary);
	display: grid;
	font-size: 0.78rem;
	gap: 2px;
	justify-items: end;
	text-align: right;
}

.trusteel-calc__unit-row output strong {
	color: var(--trusteel-secondary);
	font-size: 1rem;
	font-weight: 900;
	line-height: 1;
}

.trusteel-calc__unit-row output span {
	color: var(--trusteel-muted);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
}

.trusteel-calc__results-head {
	border-bottom: 1px solid var(--trusteel-border);
	margin-bottom: 18px;
	padding-bottom: 16px;
}

.trusteel-calc__results-head h3 {
	font-size: 1.45rem;
	line-height: 1.15;
}

.trusteel-calc__metrics {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trusteel-calc__metric {
	background: #ffffff;
	border: 1px solid var(--trusteel-border);
	border-radius: 8px;
	padding: 13px;
}

.trusteel-calc__metric-label {
	color: var(--trusteel-muted);
	font-size: 0.78rem;
	font-weight: 700;
	margin-bottom: 5px;
}

.trusteel-calc__metric-label .trusteel-calc__label-text {
	color: var(--trusteel-muted);
	font-size: 0.78rem;
	font-weight: 700;
}

.trusteel-calc__metric strong {
	color: var(--trusteel-ink);
	display: block;
	font-size: 1.05rem;
	line-height: 1.2;
}

.trusteel-calc__table-wrap {
	border: 1px solid var(--trusteel-border);
	border-radius: 8px;
	margin-top: 18px;
	overflow: auto;
}

.trusteel-calc table {
	background: #ffffff;
	border-collapse: collapse;
	min-width: 100%;
}

.trusteel-calc th,
.trusteel-calc td {
	border-bottom: 1px solid var(--trusteel-border);
	font-size: 0.86rem;
	padding: 10px 12px;
	text-align: left;
	white-space: nowrap;
}

.trusteel-calc th {
	color: var(--trusteel-muted);
	font-weight: 800;
}

.trusteel-calc tr:last-child td {
	border-bottom: 0;
}

.trusteel-calc__notes {
	display: grid;
	gap: 8px;
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
}

.trusteel-calc__notes li {
	color: var(--trusteel-muted);
	font-size: 0.88rem;
	line-height: 1.45;
	padding-left: 18px;
	position: relative;
}

.trusteel-calc__notes li::before {
	background: var(--trusteel-accent);
	border-radius: 99px;
	content: "";
	height: 7px;
	left: 0;
	position: absolute;
	top: 0.62em;
	width: 7px;
}

.trusteel-calc__actions {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 20px;
}

.trusteel-calc__cta,
.trusteel-calc__phone,
.trusteel-calc__copy {
	align-items: center;
	border-radius: 6px;
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 800;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	text-decoration: none;
}

.trusteel-calc__cta {
	background: var(--trusteel-accent);
	color: #ffffff;
	grid-column: 1 / -1;
}

.trusteel-storage-calculator .trusteel-calc__cta,
.trusteel-storage-calculator .trusteel-calc__cta:visited,
.trusteel-storage-calculator .trusteel-calc__cta:hover,
.trusteel-storage-calculator .trusteel-calc__cta:focus {
	color: #ffffff !important;
}

.trusteel-calc__phone {
	background: #ffffff;
	border: 1px solid var(--trusteel-border);
	color: var(--trusteel-secondary);
}

.trusteel-calc__copy {
	appearance: none;
	background: #ffffff;
	border: 1px solid var(--trusteel-border);
	color: var(--trusteel-ink);
	cursor: pointer;
	font-family: inherit;
}

.trusteel-calc__disclaimer {
	color: var(--trusteel-muted);
	font-size: 0.78rem;
	line-height: 1.45;
	margin-top: 14px;
}

@media (max-width: 860px) {
	.trusteel-calc__header-row,
	.trusteel-calc__body,
	.trusteel-calc--fallback {
		display: block;
	}

	.trusteel-calc__summary-pill {
		margin-top: 18px;
	}

	.trusteel-calc__results {
		border-left: 0;
		border-top: 1px solid var(--trusteel-border);
	}
}

@media (max-width: 620px) {
	.trusteel-calc__header,
	.trusteel-calc__controls,
	.trusteel-calc__results {
		padding: 20px;
	}

	.trusteel-calc h2 {
		font-size: 1.5rem;
	}

	.trusteel-calc__tabs,
	.trusteel-calc__field-grid,
	.trusteel-calc__metrics,
	.trusteel-calc__actions {
		grid-template-columns: 1fr;
	}

	.trusteel-calc__unit-labels {
		grid-template-columns: minmax(0, 1fr) 86px 68px;
	}

	.trusteel-calc__unit-row {
		grid-template-columns: minmax(0, 1fr) 86px 68px;
	}
}
