/* Renter Savings Optimizer (scoped) */
.fp-renter-scope .fpp-section-wrapper {
	max-width: 100%;
	font-family: 'IBM Plex Sans', sans-serif;
	color: var(--fp-navy, #0C0C30);
}

.fp-renter-scope .fpp-sheet-auditor {
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	grid-template-areas:
		'header header'
		'inputs outputs'
		'footer footer';
	overflow-x: clip;
	overflow-y: visible;
	border: 1px solid var(--border-light, #E6E6E3);
	font-family: 'IBM Plex Sans', sans-serif;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	container-type: inline-size;
	container-name: fp-renter-auditor;
}

.fp-renter-scope .fpp-sheet-auditor * {
	box-sizing: border-box;
}

.fp-renter-scope .fpp-sheet-auditor .fpp-sheet-merged-header {
	grid-area: header;
}

.fp-interactive-wrapper.fp-tool-root.fp-tool-root--renter-savings .fp-renter-scope .fpp-sheet-merged-header--cta,
.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="renter-savings"] .fp-renter-scope .fpp-sheet-merged-header--cta,
.elementor-widget:has([data-fp-tool-render="renter-savings"]) .fp-renter-scope .fpp-sheet-merged-header--cta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.fp-interactive-wrapper.fp-tool-root.fp-tool-root--renter-savings .fp-renter-scope .fpp-header-titles,
.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="renter-savings"] .fp-renter-scope .fpp-header-titles {
	display: flex;
	flex-direction: column;
}

.fp-interactive-wrapper.fp-tool-root.fp-tool-root--renter-savings .fp-renter-scope .fpp-protocol-line,
.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="renter-savings"] .fp-renter-scope .fpp-protocol-line {
	font-size: 0.8rem;
	color: var(--fp-gold, #B87F0D);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 700;
}

.fp-interactive-wrapper.fp-tool-root.fp-tool-root--renter-savings .fp-renter-scope .fpp-btn-explore,
.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="renter-savings"] .fp-renter-scope .fpp-btn-explore {
	background: var(--fp-gold, #B87F0D);
	color: var(--fp-navy, #0C0C30);
	padding: 12px 24px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 1px;
	transition: 0.3s ease;
	border: 1px solid transparent;
	white-space: nowrap;
}

.fp-interactive-wrapper.fp-tool-root.fp-tool-root--renter-savings .fp-renter-scope .fpp-btn-explore:hover,
.fp-interactive-wrapper.fp-tool-root.fp-tool-root--renter-savings .fp-renter-scope .fpp-btn-explore:focus,
.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="renter-savings"] .fp-renter-scope .fpp-btn-explore:hover,
.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="renter-savings"] .fp-renter-scope .fpp-btn-explore:focus {
	background: #fff;
	color: var(--fp-navy, #0C0C30);
	box-shadow: 0 4px 15px rgba(184, 127, 13, 0.4);
}

.fp-renter-scope .fpp-sheet-merged-header {
	background: var(--fp-navy, #0C0C30);
	color: #fff;
	padding: 25px 30px;
	border-bottom: 4px solid var(--fp-gold, #B87F0D);
}

.fp-renter-scope .fpp-sheet-merged-header h1 {
	font-family: 'Vollkorn', serif;
	font-size: 2.2rem;
	margin: 0 0 5px 0;
	line-height: 1.1;
	color: #fff;
}

.fp-renter-scope .fpp-sheet-merged-header span {
	font-size: 0.8rem;
	color: var(--fp-gold, #B87F0D);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 700;
}

.fp-renter-scope .fpp-sheet-col {
	display: flex;
	flex-direction: column;
	background: #fff;
	min-width: 0;
}

.fp-renter-scope .fpp-col-left {
	grid-area: inputs;
	border-right: 1px solid var(--border-light, #E6E6E3);
}

.fp-renter-scope .fpp-sheet-col:not(.fpp-col-left) {
	grid-area: outputs;
}

.fp-renter-scope .fpp-sheet-auditor .fpp-action-footer {
	grid-area: footer;
	margin-top: 0;
	border-radius: 0 0 4px 4px;
}

.fp-renter-scope .fpp-sheet-section-header {
	background: #f8f8f8;
	color: var(--fp-navy, #0C0C30);
	padding: 12px 20px;
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-bottom: 1px solid var(--border-light, #E6E6E3);
}

.fp-renter-scope .fpp-sheet-section-header--flush {
	border-top: none;
}

.fp-renter-scope .fpp-sheet-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 10px 20px;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.85rem;
	transition: background 0.2s;
	gap: 10px 12px;
	flex-wrap: nowrap;
}

.fp-renter-scope .fpp-sheet-row:hover {
	background: #fafafa;
}

.fp-renter-scope .fpp-sheet-row span.label {
	color: #444;
	font-weight: 600;
	flex: 1 1 50%;
	min-width: 0;
	max-width: calc(100% - 108px);
	line-height: 1.35;
	overflow-wrap: break-word;
	padding-right: 4px;
}

.fp-renter-scope .fpp-sheet-input-wrap {
	display: flex;
	align-items: center;
	border: 1px solid transparent;
	border-radius: 4px;
	background: rgba(184, 127, 13, 0.05);
	padding: 4px 8px;
	transition: 0.2s;
	flex: 0 0 auto;
	flex-shrink: 0;
	min-width: 100px;
	max-width: 45%;
}

.fp-renter-scope .fpp-sheet-input-wrap:focus-within {
	border-color: var(--fp-gold, #B87F0D);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(184, 127, 13, 0.1);
}

.fp-renter-scope .fpp-sheet-input-wrap span.prefix {
	color: var(--fp-gold, #B87F0D);
	font-weight: 700;
	font-size: 0.85rem;
	margin-right: 5px;
}

.fp-renter-scope .fpp-sheet-input-wrap span.suffix {
	color: #888;
	font-weight: 700;
	font-size: 0.85rem;
	margin-left: 5px;
}

.fp-renter-scope .fpp-sheet-in {
	border: none;
	background: transparent;
	text-align: right;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--fp-navy, #0C0C30);
	width: 85px;
	outline: none;
}

.fp-renter-scope .fpp-sheet-output {
	font-weight: 700;
	color: var(--fp-navy, #0C0C30);
	font-size: 1rem;
	flex: 0 0 auto;
	flex-shrink: 0;
	text-align: right;
	white-space: nowrap;
}

.fp-renter-scope .fpp-sheet-output.gold {
	color: var(--fp-gold, #B87F0D);
}

.fp-renter-scope .fpp-sheet-output.primary-metric {
	font-family: 'Vollkorn', serif;
	font-size: 1.4rem;
}

.fp-renter-scope .fpp-charts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	padding: 30px;
	background: var(--fp-navy, #0C0C30);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	min-width: 0;
}

.fp-renter-scope .fpp-chart-box {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	width: 100%;
}

.fp-renter-scope .fpp-chart-box h4 {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #fff;
	font-weight: 700;
	margin: 0 0 20px 0;
}

.fp-renter-scope .fpp-canvas-bar {
	width: 100%;
	height: 240px;
	position: relative;
}

.fp-renter-scope .fpp-canvas-bar canvas {
	max-width: 100% !important;
}

@container fp-renter-auditor (max-width: 640px) {
	.fp-renter-scope .fpp-sheet-merged-header {
		padding: 1rem 1rem 1.15rem;
	}

	.fp-renter-scope .fpp-sheet-merged-header h1 {
		font-size: clamp(1.25rem, 5vw, 1.5rem);
	}

	.fp-renter-scope .fpp-sheet-row {
		flex-direction: column;
		align-items: stretch;
		gap: 0.4rem;
		padding: 0.65rem 14px;
	}

	.fp-renter-scope .fpp-sheet-row span.label {
		flex: none;
		width: 100%;
		max-width: none;
		padding-right: 0;
	}

	.fp-renter-scope .fpp-sheet-input-wrap {
		width: 100%;
		max-width: none;
		min-width: 0;
		justify-content: flex-end;
	}

	.fp-renter-scope .fpp-sheet-in {
		width: 100%;
		min-width: 0;
		flex: 1 1 auto;
	}

	.fp-renter-scope .fpp-sheet-output {
		width: 100%;
		text-align: left;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.fp-renter-scope .fpp-sheet-output.primary-metric {
		font-size: 1.25rem;
	}

	.fp-renter-scope .fpp-charts-grid {
		padding: 20px 14px;
	}

	.fp-renter-scope .fpp-canvas-bar {
		height: 220px;
	}
}

@container fp-renter-auditor (max-width: 900px) {
	.fp-renter-scope .fpp-sheet-auditor {
		grid-template-columns: 1fr;
		grid-template-areas:
			'header'
			'inputs'
			'outputs'
			'footer';
	}

	.fp-renter-scope .fpp-col-left {
		border-right: none;
		border-bottom: 1px solid var(--border-light, #E6E6E3);
	}
}

@media (max-width: 1024px) {
	.fp-renter-scope .fpp-sheet-auditor {
		grid-template-columns: 1fr;
		grid-template-areas:
			'header'
			'inputs'
			'outputs'
			'footer';
	}

	.fp-renter-scope .fpp-col-left {
		border-right: none;
		border-bottom: 1px solid var(--border-light, #E6E6E3);
	}

	.fp-interactive-wrapper.fp-tool-root.fp-tool-root--renter-savings .fp-renter-scope .fpp-sheet-merged-header--cta,
	.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="renter-savings"] .fp-renter-scope .fpp-sheet-merged-header--cta {
		flex-direction: column;
		align-items: flex-start;
	}

	.fp-interactive-wrapper.fp-tool-root.fp-tool-root--renter-savings .fp-renter-scope .fpp-btn-explore,
	.fp-interactive-wrapper.fp-tool-root[data-fp-tool-render="renter-savings"] .fp-renter-scope .fpp-btn-explore {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 640px) {
	.fp-renter-scope .fpp-charts-grid {
		padding: 18px 12px;
	}
}
