/* RMR Fit-for-your-car panel
   Namespace: .rmr- prefix everywhere to avoid colliding with theme styles.
   Designed to inherit text colour from the host theme; only sets its own
   structural colours (green border for perfect, amber for medium, etc.). */

.rmr-fit-panel {
	background: #fff;
	border: 2px solid #2a9d6e;
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 8px 24px rgba(42,157,110,0.12);
	margin: 0 0 28px;
	font-family: inherit;
}
.rmr-fit-panel.is-good {
	border-color: #e8a52b;
	box-shadow: 0 8px 24px rgba(232,165,43,0.12);
}
.rmr-fit-panel.is-poor {
	border-color: #c25a2d;
	box-shadow: 0 8px 24px rgba(194,90,45,0.12);
}
.rmr-fit-panel--guest {
	border-color: #c5cdf0;
	box-shadow: 0 4px 14px rgba(10,26,59,0.06);
}

.rmr-fit-panel__head {
	display: flex; justify-content: space-between;
	align-items: flex-start; gap: 12px; margin-bottom: 18px;
}
.rmr-fit-panel__title {
	font-size: 1.05rem; color: #0a1a3b; margin: 8px 0 0;
	line-height: 1.3;
}
.rmr-fit-panel__title small {
	display: block; font-size: 0.85rem; color: #5a6b87;
	font-weight: 500; margin-top: 2px;
}
.rmr-fit-panel__sub {
	color: #5a6b87; margin: 8px 0 0; font-size: 0.92rem;
}
.rmr-fit-panel__score {
	font-size: 2.2rem; font-weight: 800; color: #2a9d6e;
	line-height: 1; font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.rmr-fit-panel__score sub {
	font-size: 1rem; color: #5a6b87; font-weight: 500;
}
.rmr-fit-panel.is-good .rmr-fit-panel__score { color: #e8a52b; }
.rmr-fit-panel.is-poor .rmr-fit-panel__score { color: #c25a2d; }

.rmr-fit-panel__scale {
	display: grid; gap: 6px; margin-top: 4px;
}
.rmr-fit-row {
	display: grid; grid-template-columns: 26px 1fr; gap: 12px;
	align-items: center; padding: 8px 10px; border-radius: 8px;
	font-size: 0.9rem;
}
.rmr-fit-row.is-active {
	background: rgba(42,157,110,0.10);
}
.rmr-fit-panel.is-good .rmr-fit-row.is-active {
	background: rgba(232,165,43,0.12);
}
.rmr-fit-panel.is-poor .rmr-fit-row.is-active {
	background: rgba(194,90,45,0.12);
}
.rmr-fit-row__num {
	width: 24px; height: 24px; border-radius: 5px; color: #fff;
	display: grid; place-items: center; font-weight: 800; font-size: 0.8rem;
}
.rmr-fit-row__num.l5 { background: #2a9d6e; }
.rmr-fit-row__num.l4 { background: #4ab47e; }
.rmr-fit-row__num.l3 { background: #e8a52b; }
.rmr-fit-row__num.l2 { background: #c25a2d; }
.rmr-fit-row__num.l1 { background: #a73a3a; }
.rmr-fit-row b { display: block; color: #0a1a3b; }
.rmr-fit-row small { color: #5a6b87; }

.rmr-fit-panel__foot {
	margin-top: 14px; padding: 12px 14px;
	background: #f6f7fb; border-radius: 8px;
	font-size: 0.88rem; color: #5a6b87;
}
.rmr-fit-panel__foot b { color: #0a1a3b; }
.rmr-fit-panel__foot a { color: #2447ff; font-weight: 600; text-decoration: none; }
.rmr-fit-panel__foot a:hover { text-decoration: underline; }

/* Guest form */
.rmr-fit-panel__form {
	display: flex; gap: 8px; margin-top: 14px;
}
.rmr-fit-panel__form select {
	flex: 1; padding: 11px 12px;
	border: 1px solid #e4e7ef; border-radius: 8px;
	font-size: 0.95rem; font-family: inherit; background: #fff;
}
.rmr-fit-panel__hint {
	margin: 10px 0 0; font-size: 0.85rem; color: #5a6b87;
}
.rmr-fit-panel__hint a { color: #2447ff; font-weight: 600; text-decoration: none; }

/* Mini button + pill — namespaced so theme styles don't clash */
.rmr-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 11px 18px; border-radius: 8px;
	font-weight: 700; font-size: 0.92rem; font-family: inherit;
	border: 1px solid transparent; cursor: pointer;
	text-decoration: none;
}
.rmr-btn--action { background: #2447ff; color: #fff; }
.rmr-btn--action:hover { background: #1c39d6; }

.rmr-pill {
	display: inline-block; padding: 4px 10px; border-radius: 999px;
	font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
	text-transform: uppercase;
}
.rmr-pill--soft { background: #e9ecf9; color: #0a1a3b; }

/* Mobile */
@media (max-width: 640px) {
	.rmr-fit-panel { padding: 18px; }
	.rmr-fit-panel__head { flex-direction: column; gap: 4px; }
	.rmr-fit-panel__score { font-size: 1.8rem; align-self: flex-start; }
	.rmr-fit-panel__form { flex-direction: column; }
}
