/* PSTS Tank Table — colors are custom properties so the Elementor Style tab can change them. */
.psts-htt {
	--psts-htt-head-bg: #0f2a43;
	--psts-htt-head-fg: #ffffff;
	--psts-htt-row-bg: #ffffff;
	--psts-htt-stripe-bg: #f5f8fb;
	--psts-htt-hover-bg: #eaf2fa;
	--psts-htt-text: #334155;
	--psts-htt-link: #0f2a43;
	--psts-htt-link-hover: #1d6fd1;
	--psts-htt-price: #0f2a43;
	--psts-htt-border: #dbe3ec;
	--psts-htt-muted: #64748b;
	--psts-htt-radius: 10px;
	--psts-htt-heading: #0f2a43;
	--psts-htt-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	color: var(--psts-htt-text);
	font-family: var(--psts-htt-font);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* Theme styles often set their own font on headings, tables and inputs; keep Inter throughout. */
.psts-htt .psts-htt__heading,
.psts-htt .psts-htt__group-title,
.psts-htt .psts-htt__table,
.psts-htt .psts-htt__table th,
.psts-htt .psts-htt__table td,
.psts-htt .psts-htt__input,
.psts-htt .psts-htt__sort {
	font-family: var(--psts-htt-font);
}

.psts-htt *,
.psts-htt *::before,
.psts-htt *::after {
	box-sizing: border-box;
}

/* ---------- Heading, summary, groups, notes ---------- */
.psts-htt .psts-htt__heading {
	margin: 0 0 8px;
	color: var(--psts-htt-heading);
}

.psts-htt .psts-htt__summary {
	margin: 0 0 20px;
	color: var(--psts-htt-text);
}

.psts-htt__group + .psts-htt__group {
	margin-top: 28px;
}

.psts-htt .psts-htt__group-title {
	margin: 0 0 10px;
	color: var(--psts-htt-heading);
}

.psts-htt__group[hidden] {
	display: none;
}

.psts-htt .psts-htt__note {
	width: 100%;
	max-width: none;
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--psts-htt-muted);
}

.psts-htt__ft {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--psts-htt-muted);
	white-space: nowrap;
}

.psts-htt .psts-htt__diag ul {
	margin: 6px 0 0 18px;
	padding: 0;
	list-style: disc;
}

.psts-htt .psts-htt__table tbody tr.psts-htt__flagged td {
	box-shadow: inset 0 0 0 9999px rgba(219, 166, 23, 0.14);
}

/* Same column widths in every size group. */
@media (min-width: 701px) {
	.psts-htt .psts-htt__table { table-layout: fixed; }
	.psts-htt .psts-htt__table th.psts-htt__desc { width: 30%; }
	.psts-htt .psts-htt__table th.psts-htt__gal { width: 9%; }
	.psts-htt .psts-htt__table th.psts-htt__dims { width: 20%; }
	.psts-htt .psts-htt__table th.psts-htt__weight { width: 9%; }
	.psts-htt .psts-htt__table th.psts-htt__sg { width: 7%; }
	.psts-htt .psts-htt__table th.psts-htt__color { width: 12%; }
	.psts-htt .psts-htt__table th.psts-htt__price { width: 14%; }
	.psts-htt .psts-htt__table td { overflow-wrap: anywhere; }
}

.psts-htt .psts-htt__diag {
	margin: 0 0 18px;
}

/* ---------- Sortable headings ---------- */
.psts-htt .psts-htt__sort {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: inherit;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
}

.psts-htt .psts-htt__sort:hover,
.psts-htt .psts-htt__sort:focus {
	color: inherit;
	background: none;
}

.psts-htt .psts-htt__sort:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.psts-htt__arrow {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.35;
}

.psts-htt th[aria-sort="ascending"] .psts-htt__arrow {
	border-top: 0;
	border-bottom: 5px solid currentColor;
	opacity: 1;
}

.psts-htt th[aria-sort="descending"] .psts-htt__arrow {
	opacity: 1;
}

.psts-htt .psts-htt__table th.psts-htt__price .psts-htt__sort {
	flex-direction: row-reverse;
}

.psts-htt .psts-htt__table th.psts-htt__gal,
.psts-htt .psts-htt__table td.psts-htt__gal,
.psts-htt .psts-htt__table th.psts-htt__sg,
.psts-htt .psts-htt__table td.psts-htt__sg,
.psts-htt .psts-htt__table th.psts-htt__weight,
.psts-htt .psts-htt__table td.psts-htt__weight {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* ---------- Search ---------- */
.psts-htt__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin: 0 0 14px;
}

.psts-htt__search {
	flex: 1 1 260px;
	max-width: 420px;
	margin: 0;
}

.psts-htt .psts-htt__input {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 14px;
	font: inherit;
	color: var(--psts-htt-text);
	background: #fff;
	border: 1px solid var(--psts-htt-border);
	border-radius: var(--psts-htt-radius);
	outline: none;
}

.psts-htt .psts-htt__input:focus {
	border-color: var(--psts-htt-link-hover);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--psts-htt-link-hover) 20%, transparent);
}

.psts-htt__count {
	margin: 0;
	font-size: 14px;
	color: var(--psts-htt-muted);
	font-variant-numeric: tabular-nums;
}

/* ---------- Table ---------- */
.psts-htt__scroll {
	overflow-x: auto;
	border: 1px solid var(--psts-htt-border);
	border-radius: var(--psts-htt-radius);
	background: var(--psts-htt-row-bg);
}

.psts-htt .psts-htt__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
}

.psts-htt .psts-htt__table th,
.psts-htt .psts-htt__table td {
	padding: 12px 16px;
	text-align: left;
	vertical-align: middle;
	border: 0;
	border-bottom: 1px solid var(--psts-htt-border);
	background: transparent;
}

.psts-htt .psts-htt__table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--psts-htt-head-fg);
	background: var(--psts-htt-head-bg);
}

.psts-htt .psts-htt__table tbody td {
	background: var(--psts-htt-row-bg);
}

.psts-htt .psts-htt__table tbody tr:nth-child(even) td,
.psts-htt .psts-htt__table tbody tr.psts-htt-even td {
	background: var(--psts-htt-stripe-bg);
}

.psts-htt.is-filtered .psts-htt__table tbody tr:nth-child(even) td {
	background: var(--psts-htt-row-bg);
}

.psts-htt.is-filtered .psts-htt__table tbody tr.psts-htt-even td {
	background: var(--psts-htt-stripe-bg);
}

.psts-htt .psts-htt__table tbody tr:hover td {
	background: var(--psts-htt-hover-bg);
}

.psts-htt .psts-htt__table tbody tr:last-child td {
	border-bottom: 0;
}

.psts-htt .psts-htt__table tr[hidden] {
	display: none;
}

.psts-htt .psts-htt__table .psts-htt__dims,
.psts-htt .psts-htt__table .psts-htt__color,
.psts-htt .psts-htt__table .psts-htt__price {
	white-space: nowrap;
}

.psts-htt .psts-htt__table th.psts-htt__price,
.psts-htt .psts-htt__table td.psts-htt__price {
	text-align: right;
}

.psts-htt .psts-htt__table td.psts-htt__price {
	font-weight: 600;
	color: var(--psts-htt-price);
	font-variant-numeric: tabular-nums;
}

.psts-htt .psts-htt__table td.psts-htt__desc a {
	font-weight: 600;
	color: var(--psts-htt-link);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
	text-underline-offset: 3px;
}

.psts-htt .psts-htt__table td.psts-htt__desc a:hover,
.psts-htt .psts-htt__table td.psts-htt__desc a:focus-visible {
	color: var(--psts-htt-link-hover);
	text-decoration-color: currentColor;
}

.psts-htt__empty {
	margin: 12px 0 0;
	padding: 20px;
	text-align: center;
	color: var(--psts-htt-muted);
	border: 1px dashed var(--psts-htt-border);
	border-radius: var(--psts-htt-radius);
}

.psts-htt__empty[hidden] {
	display: none;
}

.psts-htt__diag,
.psts-htt--error {
	margin-top: 10px;
	padding: 10px 14px;
	font-size: 13px;
	color: #7a4b00;
	background: #fcf9e8;
	border: 1px solid #f0d98c;
	border-radius: 8px;
}

.psts-htt--error {
	color: #8a1c1c;
	background: #fdecec;
	border-color: #f3c2c2;
}

.psts-htt .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Phones: each tank becomes a card ---------- */
@media (max-width: 700px) {
	.psts-htt__scroll {
		overflow: visible;
		border: 0;
		background: transparent;
	}

	.psts-htt .psts-htt__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.psts-htt .psts-htt__table,
	.psts-htt .psts-htt__table tbody,
	.psts-htt .psts-htt__table tr,
	.psts-htt .psts-htt__table td {
		display: block;
		width: 100%;
	}

	.psts-htt .psts-htt__table tbody tr {
		margin: 0 0 10px;
		overflow: hidden;
		border: 1px solid var(--psts-htt-border);
		border-radius: var(--psts-htt-radius);
	}

	.psts-htt .psts-htt__table tbody tr td,
	.psts-htt .psts-htt__table tbody tr:nth-child(even) td,
	.psts-htt .psts-htt__table tbody tr.psts-htt-even td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 8px 14px;
		text-align: right;
		white-space: normal;
		background: var(--psts-htt-row-bg);
		border-bottom: 1px solid var(--psts-htt-border);
	}

	.psts-htt .psts-htt__table tbody tr td:last-child {
		border-bottom: 0;
	}

	.psts-htt .psts-htt__table tbody td::before {
		content: attr(data-label);
		flex: 0 0 auto;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		text-align: left;
		color: var(--psts-htt-muted);
	}

	.psts-htt .psts-htt__table tbody tr td.psts-htt__desc,
	.psts-htt .psts-htt__table tbody tr:nth-child(even) td.psts-htt__desc,
	.psts-htt .psts-htt__table tbody tr.psts-htt-even td.psts-htt__desc {
		display: block;
		text-align: left;
		background: var(--psts-htt-stripe-bg);
	}

	.psts-htt .psts-htt__table tbody td.psts-htt__desc::before {
		display: none;
	}

	.psts-htt .psts-htt__table td.psts-htt__price,
	.psts-htt .psts-htt__table td.psts-htt__gal,
	.psts-htt .psts-htt__table td.psts-htt__sg,
	.psts-htt .psts-htt__table td.psts-htt__weight {
		text-align: right;
	}

	.psts-htt .psts-htt__table td.psts-htt__dims {
		flex-wrap: wrap;
	}

	.psts-htt__ft {
		flex-basis: 100%;
		text-align: right;
	}
}
