/*
 * Fuel Price Table Pro — Frontend Styles
 * Preserves all original class names and visual design.
 */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.fuel-price-table-wrapper {
	overflow-x: auto;
	border: 1px solid #dcdcdc;
	border-radius: 20px;
	-webkit-overflow-scrolling: touch;
}

/* ── Desktop Table ────────────────────────────────────────────────────────── */
.fuel-price-table {
	width: 100%;
	min-width: 900px;
	border-collapse: collapse;
	font-family: 'Avenir', sans-serif;
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 0;
}

.fuel-price-table th {
	background: #D43734;
	color: #fff;
	padding-top: 24px;
	padding-bottom: 24px;
	text-align: left;
	font-family: 'Archivo', sans-serif;
	font-size: 24px;
	line-height: 1.1;
}

.fuel-price-table th:first-child {
	padding-left: 30px;
}

.fuel-price-table td {
	text-align: left;
	font-size: 20px;
	line-height: 1.1;
	font-weight: 700;
	padding-top: 24px;
	padding-bottom: 24px;
}

.fuel-price-table .terminal-name {
	text-align: left;
	padding-left: 30px;
}

/* Override theme table borders */
.fuel-price-table td,
.fuel-price-table th {
	border: none !important;
	vertical-align: middle !important;
}

/* Alternating rows */
.fuel-price-table tbody > tr:nth-child(odd) > td,
.fuel-price-table tbody > tr:nth-child(odd) > th {
	background-color: #fff !important;
}

.fuel-price-table tbody > tr:nth-child(even) > td,
.fuel-price-table tbody > tr:nth-child(even) > th {
	background-color: #f5f5f5;
}

/* ── Responsive visibility ────────────────────────────────────────────────── */
.desktop-view {
	display: block !important;
}

.fuel-price-mobile {
	display: none;
}

@media (max-width: 767px) {
	.desktop-view {
		display: none !important;
	}

	.fuel-price-mobile {
		display: block;
	}
}

/* ── Mobile Card UI ───────────────────────────────────────────────────────── */
.fuel-card {
	border: 1px solid #B3B3B3;
	border-radius: 12px;
	margin-bottom: 16px;
	overflow: hidden;
	background: #fff;
}

.fuel-card-header {
	color: #fff;
	font-size: 27px;
	font-weight: 600;
	line-height: 1.1;
	border-bottom: 1px solid;
	display: flex;
}

.fuel-card-header .fuel-label,
.fuel-card-header .fuel-value {
	padding: 11px 20px;
	font-size: 27px;
	line-height: 1.1;
}

@media (max-width: 439px) {
	.fuel-card-header .fuel-label,
	.fuel-card-header .fuel-value {
		font-size: 22px;
		line-height: 1.1;
	}
}

@media (max-width: 400px) {
	.fuel-card-header .fuel-label,
	.fuel-card-header .fuel-value {
		font-size: 19px;
		line-height: 1.1;
	}

	.fuel-label,
	.fuel-value {
		font-size: 17px;
	}
}

.fuel-card-body {
	width: 100%;
}

.fuel-card-body .fuel-row:nth-child(odd) .fuel-value {
	background: #f5f5f5;
}

.fuel-row {
	display: flex;
	width: 100%;
	border-bottom: 1px solid #fff;
}

.fuel-row:last-child {
	border-bottom: none;
}

.fuel-label {
	width: 55%;
	background: #D43734;
	color: #fff;
	padding: 15.5px 0 15.5px 20px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.1;
}

.fuel-value {
	width: 45%;
	background: #fff;
	color: #000;
	padding: 15.5px 0 15.5px 20px;
	font-size: 19px;
	font-weight: 600;
	text-align: left;
	line-height: 1.1;
}
