/* rent-vs-buy */

.tool-header-actions {
	display: none !important;
}

.rvb-tool-header {
	margin-bottom: 24px;
}

.tool-top-ad-primary {
	margin: 16px 0 20px;
}

.rvb-toolbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 10px 0 14px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--c-border);
}

.rvb-toolbar-title {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--c-text-2);
}

.rvb-toolbar-spacer {
	flex: 1 1 auto;
	min-width: 0;
}

.rvb-toolbar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.rvb-toolbar .btn {
	height: 34px;
	padding-top: 0;
	padding-bottom: 0;
	white-space: nowrap;
}

.rvb-status {
	min-height: 1.25rem;
	margin-bottom: 8px;
	font-size: 0.82rem;
	color: var(--c-text-3);
}

.rvb-status.is-error {
	color: #dc2626;
}

.rvb-status.is-success {
	color: #0f766e;
}

.rvb-main-grid {
	display: grid;
	grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
	gap: 18px;
	align-items: start;
	margin-bottom: 24px;
}

.rvb-form-body {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	padding: 16px;
}

.rvb-field-full,
.rvb-section-title {
	grid-column: 1 / -1;
}

.rvb-section-title {
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid var(--c-border);
	font-size: 0.78rem;
	font-weight: 800;
	color: #0f766e;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.rvb-field-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.rvb-field-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--c-text-3);
}

.rvb-input-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rvb-form-body .form-control,
.rvb-form-body .form-select {
	border-radius: 10px;
	border: 1px solid var(--c-border-strong);
	font-size: 0.95rem;
	padding-top: 0.52rem;
	padding-bottom: 0.52rem;
	font-variant-numeric: tabular-nums;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rvb-form-body .form-control:focus,
.rvb-form-body .form-select:focus {
	border-color: rgba(13, 148, 136, 0.46);
	box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
	outline: none;
}

.rvb-unit-badge {
	flex: 0 0 auto;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--c-text-2);
	padding: 0 2px;
}

.rvb-results-panel {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

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

.rvb-result-card {
	border: 1px solid var(--c-border);
	border-radius: 14px;
	background: var(--c-surface);
	padding: 14px 16px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	min-width: 0;
}

.rvb-result-card--primary {
	grid-column: 1 / -1;
	border-color: rgba(13, 148, 136, 0.35);
}

.rvb-result-label {
	margin-bottom: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--c-text-3);
}

.rvb-result-value {
	font-size: 1.35rem;
	font-weight: 750;
	line-height: 1.2;
	color: #0f766e;
	font-variant-numeric: tabular-nums;
	word-break: break-word;
}

.rvb-result-value--muted {
	font-size: 1.08rem;
	color: var(--c-text);
}

.rvb-result-note {
	margin-top: 6px;
	font-size: 0.82rem;
	line-height: 1.4;
	color: var(--c-text-2);
}

.rvb-chart-panel,
.rvb-insight-card {
	border: 1px solid var(--c-border);
	border-radius: 14px;
	background: var(--c-surface);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.rvb-chart-panel {
	padding: 14px;
}

.rvb-chart-header h2,
.rvb-table-header h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 750;
}

#rvb-chart {
	display: block;
	width: 100%;
	height: auto;
	min-height: 240px;
}

.rvb-insight-card {
	display: flex;
	gap: 8px;
	padding: 12px 14px;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--c-text-3);
}

.rvb-insight-card i {
	flex: 0 0 auto;
	color: #0f766e;
	margin-top: 2px;
}

.rvb-table-section {
	margin-bottom: 20px;
}

.rvb-table-wrap {
	border: 1px solid var(--c-border);
	border-radius: 12px;
	overflow: hidden;
}

.rvb-table {
	margin-bottom: 0;
	font-size: 0.84rem;
	vertical-align: middle;
}

.rvb-table thead th {
	background: var(--c-surface-2, rgba(0, 0, 0, 0.02));
	color: var(--c-text-2);
	border-bottom-color: var(--c-border);
	white-space: nowrap;
}

.rvb-table td,
.rvb-table th {
	font-variant-numeric: tabular-nums;
}

.rvb-table .rvb-positive {
	color: #0f766e;
	font-weight: 700;
}

.rvb-table .rvb-negative {
	color: #dc2626;
	font-weight: 700;
}

.rvb-info-section {
	margin-top: 34px !important;
	padding-top: 28px !important;
	margin-bottom: 32px;
}

.rvb-info-tabs {
	margin-bottom: 24px;
}

.rvb-info-tabs .tab-btn.active::after {
	display: none;
}

.rvb-faq-list .faq-item {
	margin-bottom: 12px;
	border-radius: 16px;
}

.rvb-faq-list .faq-q {
	font-size: 0.9rem;
	padding: 14px 16px;
}

.rvb-faq-list .faq-a {
	display: none;
	font-size: 0.86rem;
	line-height: 1.7;
	padding-top: 12px;
}

.rvb-faq-list .faq-item.is-open .faq-a {
	display: block;
}

.rvb-faq-list .faq-item .faq-q i {
	transition: transform 0.2s ease;
}

.rvb-faq-list .faq-item.is-open .faq-q i {
	transform: rotate(180deg);
}

.rvb-info-section .rk-item {
	padding: 18px 0;
	margin: 0;
	border-radius: 0;
	background: transparent !important;
}

.rvb-info-section .rk-thumb {
	width: 84px;
	height: 84px;
	min-width: 84px;
	min-height: 84px;
	border-radius: 14px;
	align-self: flex-start;
}

.rvb-info-section .rk-thumb::after {
	background: rgba(0, 0, 0, 0.16);
}

.rvb-info-section .rk-thumb-icon {
	font-size: 1.45rem;
}

.rvb-info-section .rk-info > .d-flex {
	margin-bottom: 4px !important;
}

.rvb-info-section .rk-info > .d-flex > div:first-child,
.rvb-info-section .rk-tag {
	display: none !important;
}

.rvb-info-section .rk-title {
	font-size: 0.875rem;
	line-height: 1.35;
	margin-bottom: 6px;
}

.rvb-info-section .rk-excerpt {
	font-size: 0.77rem;
	line-height: 1.55;
}

.rvb-info-section .rk-date {
	margin-top: 8px;
	font-size: 0.88rem;
}

@media (max-width: 1100px) {
	.rvb-main-grid {
		grid-template-columns: 1fr;
	}

}

@media (max-width: 720px) {
	.rvb-toolbar {
		align-items: stretch;
	}

	.rvb-toolbar-title,
	.rvb-toolbar-actions {
		width: 100%;
	}

	.rvb-toolbar-actions {
		overflow-x: auto;
		padding-bottom: 2px;
	}

	.rvb-form-body,
	.rvb-result-cards {
		grid-template-columns: 1fr;
	}

	.rvb-result-card--primary {
		grid-column: auto;
	}

	.rvb-chart-panel {
		padding: 12px;
	}

	#rvb-chart {
		min-height: 220px;
	}
}
