.tpx {
	--tpx-ink: #142033;
	--tpx-muted: #657083;
	--tpx-line: #d7dde7;
	--tpx-soft: #f4f7fb;
	--tpx-panel: #ffffff;
	--tpx-blue: #1d5fa8;
	--tpx-blue-dark: #123f73;
	--tpx-green: #1f7a5a;
	--tpx-warn: #9a5a00;
	color: var(--tpx-ink);
	font-family: inherit;
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 18px 56px;
}

.tpx,
.tpx-detail,
.tpx-panel,
.tpx-detail-grid,
.tpx-detail-summary,
.tpx-detail-media {
	min-width: 0;
	max-width: 100%;
}

body:not(.wp-admin) .site-header,
body:not(.wp-admin) .main-header-bar,
body:not(.wp-admin) .ast-primary-header-bar {
	border-bottom: 1px solid rgba(20, 32, 51, .1);
	box-shadow: 0 8px 24px rgba(20, 32, 51, .06);
}

body:not(.wp-admin) .main-header-menu .menu-link,
body:not(.wp-admin) .ast-builder-menu .menu-link {
	font-weight: 700;
	letter-spacing: 0;
}

.tpx * {
	box-sizing: border-box;
}

.tpx p,
.tpx li,
.tpx td,
.tpx th,
.tpx small,
.tpx strong,
.tpx a,
.tpx h1,
.tpx h2,
.tpx h3 {
	overflow-wrap: anywhere;
	word-break: normal;
}

.tpx a {
	color: var(--tpx-blue);
}

.tpx-catalog-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 38px;
	background:
		linear-gradient(110deg, rgba(18, 63, 115, .96), rgba(29, 95, 168, .88)),
		linear-gradient(135deg, #eef4f9 0%, #ffffff 100%);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 8px;
	margin-bottom: 22px;
	color: #fff;
	box-shadow: 0 22px 60px rgba(18, 63, 115, .22);
	position: relative;
	overflow: hidden;
}

.tpx-catalog-hero::after {
	content: "";
	position: absolute;
	inset: auto -80px -110px auto;
	width: 360px;
	height: 260px;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px),
		linear-gradient(0deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
	background-size: 28px 28px;
	transform: rotate(-12deg);
	pointer-events: none;
}

.tpx-catalog-hero > * {
	position: relative;
	z-index: 1;
}

.tpx-catalog-hero p {
	color: rgba(255, 255, 255, .86);
	max-width: 720px;
}

.tpx-catalog-hero h1,
.tpx-detail h1 {
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.08;
	margin: 4px 0 10px;
	letter-spacing: 0;
}

.tpx-kicker {
	color: #9bd1ff;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: .08em;
	margin: 0;
}

.tpx-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	border: 1px solid var(--tpx-blue);
	background: var(--tpx-blue);
	color: #fff !important;
	text-decoration: none;
	border-radius: 6px;
	padding: 10px 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(29, 95, 168, .18);
	transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.tpx-button:hover,
.tpx-button:focus {
	background: var(--tpx-blue-dark);
	border-color: var(--tpx-blue-dark);
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(18, 63, 115, .22);
}

.tpx-button:disabled {
	cursor: not-allowed;
	opacity: .72;
	transform: none;
}

.tpx-button-secondary {
	background: #fff;
	color: var(--tpx-blue) !important;
	border-color: rgba(29, 95, 168, .22);
}

.tpx-button-link {
	background: transparent;
	border-color: transparent;
	color: var(--tpx-blue) !important;
	padding-left: 0;
	padding-right: 0;
}

.tpx-filters {
	display: grid;
	grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(140px, 1fr)) minmax(120px, .8fr) auto;
	gap: 12px;
	align-items: end;
	padding: 18px;
	background: var(--tpx-panel);
	border: 1px solid var(--tpx-line);
	border-radius: 8px;
	margin-bottom: 16px;
	box-shadow: 0 14px 40px rgba(20, 32, 51, .07);
}

.tpx label {
	display: grid;
	gap: 6px;
	font-weight: 700;
	color: var(--tpx-ink);
}

.tpx label span {
	font-size: 13px;
}

.tpx input,
.tpx select,
.tpx textarea {
	width: 100%;
	border: 1px solid var(--tpx-line);
	border-radius: 6px;
	background: #fff;
	color: var(--tpx-ink);
	padding: 11px 12px;
	min-height: 44px;
	font: inherit;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.tpx input:focus,
.tpx select:focus,
.tpx textarea:focus {
	outline: none;
	border-color: var(--tpx-blue);
	box-shadow: 0 0 0 3px rgba(29, 95, 168, .14);
}

.tpx-search-label {
	position: relative;
}

.tpx-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 20;
	background: #fff;
	border: 1px solid var(--tpx-line);
	border-radius: 6px;
	box-shadow: 0 18px 36px rgba(17, 28, 46, .14);
	overflow: hidden;
}

.tpx-suggestions a {
	display: block;
	padding: 10px 12px;
	text-decoration: none;
	border-bottom: 1px solid var(--tpx-line);
}

.tpx-result-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 18px 0;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--tpx-line);
	border-radius: 8px;
	color: var(--tpx-muted);
}

.tpx-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.tpx-card {
	display: grid;
	grid-template-rows: 210px 1fr;
	background: #fff;
	border: 1px solid var(--tpx-line);
	border-radius: 8px;
	overflow: hidden;
	min-width: 0;
	box-shadow: 0 10px 30px rgba(20, 32, 51, .06);
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.tpx-card:hover {
	transform: translateY(-3px);
	border-color: rgba(29, 95, 168, .35);
	box-shadow: 0 20px 42px rgba(20, 32, 51, .11);
}

.tpx-card-image {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	padding: 18px;
	border-bottom: 1px solid var(--tpx-line);
}

.tpx-card-image img {
	max-width: 74%;
	max-height: 96px;
	object-fit: contain;
	opacity: .2;
}

.tpx-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
}

.tpx-card h2 {
	font-size: 18px;
	line-height: 1.25;
	margin: 0;
	letter-spacing: 0;
}

.tpx-card p {
	margin: 0;
	color: var(--tpx-muted);
}

.tpx-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tpx-card-meta span {
	font-size: 12px;
	color: var(--tpx-blue-dark);
	background: #e8f1fa;
	border-radius: 5px;
	padding: 4px 8px;
}

.tpx-sku {
	color: var(--tpx-ink) !important;
}

.tpx-card-actions,
.tpx-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: auto;
}

.tpx-pagination {
	display: flex;
	gap: 8px;
	margin-top: 24px;
}

.tpx-pagination .page-numbers {
	padding: 8px 12px;
	border: 1px solid var(--tpx-line);
	border-radius: 6px;
	text-decoration: none;
}

.tpx-pagination .current {
	background: var(--tpx-blue);
	color: #fff;
}

.tpx-empty,
.tpx-panel {
	background: #fff;
	border: 1px solid var(--tpx-line);
	border-radius: 8px;
	padding: 22px;
	margin: 18px 0;
	box-shadow: 0 12px 34px rgba(20, 32, 51, .06);
}

.tpx-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
	font-size: 14px;
	color: var(--tpx-muted);
}

.tpx-detail-grid {
	display: grid;
	grid-template-columns: minmax(300px, .9fr) minmax(320px, 1.1fr);
	gap: 28px;
	align-items: start;
	margin-bottom: 24px;
}

.tpx-detail-media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	background: #fff;
	border: 1px solid var(--tpx-line);
	border-radius: 8px;
	padding: 24px;
}

.tpx-detail-media img {
	max-width: 68%;
	max-height: 170px;
	object-fit: contain;
	opacity: .18;
}

.tpx-detail-summary {
	padding: 20px;
	background: #fff;
	border: 1px solid var(--tpx-line);
	border-radius: 8px;
	box-shadow: 0 12px 34px rgba(20, 32, 51, .06);
}

.tpx-detail .tpx-kicker,
.tpx-panel .tpx-kicker {
	color: var(--tpx-blue-dark);
}

.tpx-no-price {
	display: inline-flex;
	padding: 8px 10px;
	border-left: 4px solid var(--tpx-green);
	background: #eef8f4;
	color: var(--tpx-green);
	font-weight: 700;
	border-radius: 0 6px 6px 0;
}

.tpx-spec-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
	table-layout: fixed;
}

.tpx-spec-table th,
.tpx-spec-table td {
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--tpx-line);
	padding: 11px 10px;
	overflow-wrap: anywhere;
	word-break: normal;
}

.tpx-spec-table th {
	width: 260px;
	background: var(--tpx-soft);
}

.tpx-spec-list {
	display: grid;
	margin-top: 16px;
	border: 1px solid var(--tpx-line);
	border-bottom: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.tpx-spec-row {
	display: grid;
	grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
	border-bottom: 1px solid var(--tpx-line);
	min-width: 0;
}

.tpx-spec-row dt,
.tpx-spec-row dd {
	margin: 0;
	padding: 12px 14px;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: normal;
}

.tpx-spec-row dt {
	background: var(--tpx-soft);
	font-weight: 800;
	color: var(--tpx-ink);
}

.tpx-spec-row dd {
	color: var(--tpx-ink);
}

.tpx-muted {
	color: var(--tpx-muted);
	font-size: 13px;
}

.tpx-applications {
	white-space: pre-wrap;
	max-height: 220px;
	overflow: auto;
	background: var(--tpx-soft);
	border: 1px solid var(--tpx-line);
	border-radius: 6px;
	padding: 10px;
	font-size: 13px;
}

.tpx-form {
	background: #fff;
	border: 1px solid var(--tpx-line);
	border-radius: 8px;
	padding: 26px;
	box-shadow: 0 16px 44px rgba(20, 32, 51, .08);
}

.tpx-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.tpx-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
}

.tpx-quote-row {
	display: grid;
	grid-template-columns: 1fr 90px auto;
	gap: 12px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--tpx-line);
	background: #fff;
}

.tpx-quote-row strong {
	display: block;
}

.tpx-quote-row small {
	color: var(--tpx-muted);
}

.tpx-form-response {
	margin-top: 14px;
	font-weight: 700;
}

.tpx-form-response.is-success {
	color: var(--tpx-green);
}

.tpx-form-response.is-error {
	color: #a33232;
}

.tpx-requested-panel {
	background: #f8fafc;
}

.tpx-requested-panel h2,
.tpx-panel h2 {
	font-size: 24px;
	line-height: 1.2;
	margin-top: 0;
	letter-spacing: 0;
}

.tpx-short {
	color: var(--tpx-muted);
	font-size: 17px;
	line-height: 1.6;
}

.tpx-floating-quote {
	position: fixed !important;
	right: 22px !important;
	bottom: 22px !important;
	z-index: 999999 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 58px !important;
	height: 58px !important;
	min-width: 58px !important;
	min-height: 58px !important;
	max-width: 58px !important;
	max-height: 58px !important;
	border-radius: 999px !important;
	background: var(--tpx-blue, #1d5fa8) !important;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 18px 36px rgba(18, 63, 115, .32);
	border: 2px solid #fff !important;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
	overflow: visible !important;
}

.tpx-floating-quote:hover,
.tpx-floating-quote:focus {
	background: var(--tpx-blue-dark, #123f73);
	transform: translateY(-2px);
	box-shadow: 0 22px 44px rgba(18, 63, 115, .38);
}

.tpx-floating-quote svg {
	display: block !important;
	width: 26px !important;
	height: 26px !important;
	min-width: 26px !important;
	min-height: 26px !important;
	max-width: 26px !important;
	max-height: 26px !important;
	stroke: currentColor !important;
	fill: none !important;
	margin: 0 !important;
}

.tpx-floating-quote .tpx-quote-count {
	position: absolute;
	top: -5px;
	right: -5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 999px;
	background: #0a1728;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	border: 2px solid #fff;
}

@media (max-width: 1080px) {
	.tpx-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tpx-search-label {
		grid-column: 1 / -1;
	}

	.tpx-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	body:not(.wp-admin),
	body:not(.wp-admin) .site,
	body:not(.wp-admin) .site-content,
	body:not(.wp-admin) .content-area,
	body:not(.wp-admin) .ast-container,
	body:not(.wp-admin) .entry-content {
		max-width: 100%;
		overflow-x: hidden;
	}

	.tpx {
		padding: 18px 12px 88px;
		width: 100%;
		max-width: 100vw;
		overflow-x: hidden;
	}

	.tpx-catalog-hero,
	.tpx-detail-grid,
	.tpx-form-grid,
	.tpx-filters,
	.tpx-card-grid {
		grid-template-columns: 1fr;
	}

	.tpx-detail-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 16px;
	}

	.tpx-catalog-hero {
		display: grid;
		padding: 22px;
	}

	.tpx-detail-media {
		min-height: auto;
		padding: 14px;
	}

	.tpx-detail-media img {
		width: auto;
		max-width: 72%;
		max-height: 110px;
	}

	.tpx-detail-summary,
	.tpx-panel,
	.tpx-form {
		width: 100%;
		max-width: 100%;
		padding: 16px;
		overflow-x: hidden;
	}

	.tpx-detail h1 {
		font-size: clamp(26px, 8vw, 36px);
	}

	.tpx-actions {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
	}

	.tpx-actions .tpx-button {
		width: 100%;
	}

	.tpx-spec-table,
	.tpx-spec-table tbody,
	.tpx-spec-table tr {
		display: block;
		width: 100%;
	}

	.tpx-spec-table tr {
		border-bottom: 1px solid var(--tpx-line);
	}

	.tpx-spec-table th,
	.tpx-spec-table td {
		display: block;
		width: 100%;
		border-bottom: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.tpx-spec-table th {
		padding-bottom: 4px;
	}

	.tpx-spec-table td {
		padding-top: 0;
	}

	.tpx-spec-list {
		display: block;
		width: 100%;
		max-width: 100%;
		overflow: hidden;
	}

	.tpx-spec-row {
		display: block;
		width: 100%;
		max-width: 100%;
	}

	.tpx-spec-row dt,
	.tpx-spec-row dd {
		display: block;
		width: 100%;
		max-width: 100%;
		padding: 10px 12px;
		white-space: normal;
		overflow-wrap: anywhere !important;
		word-break: break-word !important;
		hyphens: auto;
	}

	.tpx-spec-row dt {
		padding-bottom: 6px;
	}

	.tpx-spec-row dd {
		padding-top: 0;
	}

	.tpx-quote-row {
		grid-template-columns: 1fr;
	}

	.tpx-detail .tpx-actions {
		position: sticky;
		bottom: 0;
		z-index: 10;
		padding: 10px;
		background: rgba(255, 255, 255, .96);
		border: 1px solid var(--tpx-line);
		border-radius: 8px;
	}

	.tpx-floating-quote {
		right: 16px;
		bottom: 16px;
		width: 54px;
		height: 54px;
	}
}
