/* FRVA Tire Discount - MSPN search form & results
 * Intentionally minimal: font-family, colors, and button styling are
 * inherited from the active theme (Tripster) via its .form-control,
 * .btn.btn-primary, and .table classes. Rules below only handle layout.
 */

.frva-tire-search-form .frva-tire-search-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.frva-tire-search-form .frva-tire-search-input {
	flex: 1 1 auto;
	min-width: 0;
	font: inherit;
	color: inherit;
}

.frva-tire-search-form .frva-tire-search-btn {
	flex: 0 0 auto;
	white-space: nowrap;
	cursor: pointer;
}

/* Fallbacks only for themes/child themes that don't style these classes.
 * Uses currentColor / inherit so it blends with the theme palette. */
.frva-tire-search-form .frva-tire-search-input:not([class*="form-control"]) {
	padding: 10px 14px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
}

.frva-tire-search-noresults {
	margin-top: 1em;
	opacity: 0.8;
}

.frva-tire-search-results {
	margin-top: 1.5em;
	overflow-x: auto;
}

.frva-tire-results-table {
	width: 100%;
	border-collapse: collapse;
}

.frva-tire-results-table th,
.frva-tire-results-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.frva-tire-results-table thead th {
	font-weight: 600;
	border-bottom-width: 2px;
}

.frva-tire-search-divider {
	text-align: center;
	margin: 10px 0;
	opacity: 0.6;
	font-size: 0.85em;
}

.frva-tire-search-form .frva-tire-search-select {
	flex: 1 1 auto;
	min-width: 0;
}

/* Stack the form vertically in narrow sidebars / mobile */
@media (max-width: 480px) {
	.frva-tire-search-form .frva-tire-search-row {
		flex-direction: column;
	}
}
