/* Cup of Air — product hub capacity filter chrome (UX-002)
   Table visuals: site design system (.compare-table / Helix custom_css + cupofair-mobile.css) */

.coa-ps {
	--coa-navy: #013a58;
	--coa-accent: #0b8b91;
	width: min(1180px, calc(100% - 40px));
	margin: 40px auto 48px;
	color: var(--coa-navy);
}

.coa-ps-inner {
	padding: 8px 0 4px;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.coa-ps-title {
	margin: 0 0 8px;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--coa-navy);
	text-align: center;
}

.coa-ps-intro {
	margin: 0 auto 20px;
	max-width: 52ch;
	text-align: center;
	color: #2f4550;
	font-size: 16px;
	line-height: 1.5;
}

.coa-ps-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
}

.coa-ps-filter {
	appearance: none;
	border: 1.5px solid rgba(1, 58, 88, 0.18);
	background: #fff;
	color: var(--coa-navy);
	border-radius: 10px;
	min-height: 40px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.coa-ps-filter:hover,
.coa-ps-filter:focus {
	border-color: var(--coa-accent);
	outline: none;
}

.coa-ps-filter:focus-visible {
	outline: 3px solid rgba(115, 195, 196, 0.55);
	outline-offset: 2px;
}

.coa-ps-filter.is-active {
	background: var(--coa-navy);
	border-color: var(--coa-navy);
	color: #fff;
}

.coa-ps-count {
	margin: 0 0 14px;
	text-align: center;
	font-size: 14px;
	color: #5a6f7c;
}

/* Filter-only behavior */
.coa-ps .compare-table tr.coa-ps-row.is-dimmed {
	display: none;
}

.coa-ps .compare-table .coa-btn {
	white-space: nowrap;
}

/* 3-col Model / Capacity / Details: clean rows, no cyan stripe, real gutters */
.coa-ps .compare-table {
	border-collapse: separate !important;
	border-spacing: 0 10px !important;
	width: 100% !important;
	min-width: 0 !important;
	table-layout: fixed;
}

.coa-ps .compare-table th,
.coa-ps .compare-table td {
	padding: 16px 20px !important;
	box-sizing: border-box;
	vertical-align: middle;
}

.coa-ps .compare-table th:first-child,
.coa-ps .compare-table td:first-child {
	padding-left: 22px !important;
	text-align: left !important;
}

.coa-ps .compare-table th:last-child,
.coa-ps .compare-table td:last-child {
	padding-right: 22px !important;
}

.coa-ps .compare-table td {
	background: #fff !important;
	box-shadow: 0 6px 18px rgba(1, 58, 88, 0.07);
}

.coa-ps .compare-table td:first-child {
	background: #fff !important;
	font-weight: 600;
	color: #013a58;
	border-radius: 14px 0 0 14px;
	box-shadow: 0 6px 18px rgba(1, 58, 88, 0.07);
}

.coa-ps .compare-table td:nth-child(2) {
	background: #fff !important;
	font-weight: 600;
	text-align: center !important;
}

.coa-ps .compare-table td:last-child {
	border-radius: 0 14px 14px 0;
	text-align: center !important;
}

.coa-ps .compare-table th:nth-child(2),
.coa-ps .compare-table th:nth-child(3) {
	text-align: center !important;
}

/* Compact 3-col selector: fit viewport, no sticky/scroll trap */
@media (max-width: 768px) {
	.coa-ps .compare-table-wrap {
		overflow-x: visible;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.coa-ps .compare-table th,
	.coa-ps .compare-table td {
		padding: 14px 14px !important;
		font-size: 15px !important;
	}

	.coa-ps .compare-table th:first-child,
	.coa-ps .compare-table td:first-child {
		position: static;
		width: 26%;
		min-width: 0;
		max-width: none;
		box-shadow: none;
		padding-left: 16px !important;
		white-space: nowrap !important;
	}

	.coa-ps .compare-table th:nth-child(2),
	.coa-ps .compare-table td:nth-child(2) {
		width: 30%;
		min-width: 0;
		max-width: none;
		text-align: center !important;
		white-space: nowrap !important;
		background: #fff !important;
	}

	.coa-ps .compare-table th:nth-child(3),
	.coa-ps .compare-table td:nth-child(3) {
		width: 44%;
		min-width: 0;
		max-width: none;
		text-align: center !important;
		padding-right: 16px !important;
	}

	.coa-ps .compare-table td:first-child {
		box-shadow: 0 6px 18px rgba(1, 58, 88, 0.07);
	}

	.coa-ps .compare-table .coa-btn {
		display: inline-flex;
		max-width: 100%;
		justify-content: center;
	}
}

/* Legacy: catalog card hide class (unused while table sits below listing) */
.coa-product-listing .sppb-column.is-coa-ps-hidden {
	display: none !important;
}

@media (max-width: 720px) {
	.coa-ps {
		width: min(1180px, calc(100% - 28px));
		margin: 28px auto 36px;
	}

	.coa-ps-filter {
		flex: 1 1 calc(50% - 8px);
		text-align: center;
		min-height: 42px;
	}
}

@media (max-width: 380px) {
	.coa-ps-filter {
		flex: 1 1 100%;
	}
}
