.rcdpt {
	--rcdpt-brand: #7B1F23;
	--rcdpt-brand-dark: #5C1216;
	--rcdpt-brand-tint: #F7EDEE;
	--rcdpt-text: #3f3f3f;
	--rcdpt-muted: #6b6b6b;
	--rcdpt-faint: #888;
	--rcdpt-line: #EAE7E3;
	--rcdpt-line-soft: #EEECE9;
	--rcdpt-control: #D8D5D1;
	--rcdpt-panel: #E6E4E1;
	--rcdpt-head: #F3F2F1;
	--rcdpt-hover: #ECEAE6;
	color: var(--rcdpt-text);
	font-size: 13px;
	line-height: 1.45;
}

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

.rcdpt [hidden],
.rcdpt .rcdpt-table tr[hidden] {
	display: none !important;
}

.rcdpt .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.rcdpt a {
	text-decoration: none;
}

/* Theme buttons carry their own colours; reset them inside the table UI. */
.rcdpt button {
	font: inherit;
	line-height: 1.2;
	margin: 0;
	border-radius: 3px;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

/* ---------- Filter bar ---------- */

.rcdpt-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: var(--rcdpt-panel);
	border: 1px solid #D6D3CE;
	border-radius: 4px;
}

.rcdpt-filters__head {
	display: flex;
	align-items: center;
}

.rcdpt-filters__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #555;
}

.rcdpt .rcdpt-filters__toggle {
	display: none;
}

.rcdpt-filters__fields {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.rcdpt-select,
.rcdpt-search {
	position: relative;
	display: block;
	margin: 0;
}

/* Dropdowns share the row evenly instead of sizing to their longest option. */
.rcdpt-select {
	flex: 1 1 140px;
	min-width: 0;
}

.rcdpt .rcdpt-select select {
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.rcdpt .rcdpt-reset,
.rcdpt-count,
.rcdpt-filters__head {
	flex: none;
}

@media (min-width: 1101px) {
	.rcdpt-filters,
	.rcdpt-filters__fields {
		flex-wrap: nowrap;
	}

	.rcdpt-filters__fields {
		min-width: 0;
	}

	.rcdpt-select {
		flex: 1 1 0;
	}

	.rcdpt .rcdpt-search {
		flex: 1.4 1 0;
		min-width: 140px;
	}
}

.rcdpt .rcdpt-select select,
.rcdpt .rcdpt-search input {
	width: 100%;
	height: 36px;
	margin: 0;
	padding: 0 12px;
	font: inherit;
	font-size: 12px;
	color: #444;
	background-color: #fff;
	border: 1px solid var(--rcdpt-control);
	border-radius: 3px;
	box-shadow: none;
	outline: none;
}

.rcdpt .rcdpt-select select {
	padding-right: 30px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23777' stroke-width='1.4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 11px center;
}

.rcdpt .rcdpt-select select:focus,
.rcdpt .rcdpt-search input:focus {
	border-color: var(--rcdpt-brand);
	box-shadow: 0 0 0 2px var(--rcdpt-brand-tint);
}

.rcdpt-search {
	flex: 1;
	min-width: 170px;
}

.rcdpt .rcdpt-search input {
	padding-left: 30px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13'%3E%3Ccircle cx='5.5' cy='5.5' r='4.5' fill='none' stroke='%239a9792' stroke-width='1.4'/%3E%3Cpath d='M9 9l3 3' stroke='%239a9792' stroke-width='1.4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 11px center;
}

.rcdpt .rcdpt-search input::placeholder {
	color: #9a9792;
}

.rcdpt .rcdpt-reset,
.rcdpt .rcdpt-noresults button {
	padding: 0;
	font-size: 12px;
	color: var(--rcdpt-brand);
	background: none;
	border: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rcdpt .rcdpt-reset:hover,
.rcdpt .rcdpt-noresults button:hover {
	color: var(--rcdpt-brand-dark);
	background: none;
}

.rcdpt-count {
	font-size: 11.5px;
	color: #5a5a5a;
	white-space: nowrap;
}

/* ---------- Table ---------- */

.rcdpt .rcdpt-table {
	width: 100%;
	margin: 16px 0 0;
	border-collapse: collapse;
	border: 1px solid var(--rcdpt-line);
	background: #fff;
}

.rcdpt .rcdpt-table th,
.rcdpt .rcdpt-table td {
	padding: 12px 14px;
	text-align: left;
	vertical-align: middle;
	border: 0;
	border-bottom: 1px solid var(--rcdpt-line-soft);
	background: transparent;
}

.rcdpt .rcdpt-table th {
	padding-top: 10px;
	padding-bottom: 10px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--rcdpt-muted);
	background: var(--rcdpt-head);
	border-bottom-color: #E3E1DE;
	white-space: nowrap;
}

.rcdpt .rcdpt-table td {
	font-size: 12.5px;
}

.rcdpt .rcdpt-table tbody tr:nth-child(odd) > td,
.rcdpt .rcdpt-table tbody tr:nth-child(even) > td {
	background: transparent;
}

.rcdpt .rcdpt-table tbody tr:hover > td {
	background: var(--rcdpt-hover);
}

.rcdpt .rcdpt-table .rcdpt-col-image {
	width: 72px;
}

.rcdpt-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 40px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #E3E0DC;
}

.rcdpt-thumb img {
	max-width: 88%;
	max-height: 88%;
	object-fit: contain;
}

.rcdpt .rcdpt-col-part a {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--rcdpt-brand);
	white-space: nowrap;
}

.rcdpt .rcdpt-col-part a:hover {
	color: var(--rcdpt-brand-dark);
	text-decoration: underline;
}

.rcdpt .rcdpt-table .rcdpt-col-datasheet,
.rcdpt .rcdpt-table .rcdpt-col-details {
	text-align: right;
	white-space: nowrap;
}

.rcdpt .rcdpt-table .rcdpt-col-datasheet {
	padding-right: 4px;
}

.rcdpt a.rcdpt-btn {
	display: inline-block;
	padding: 8px 12px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	background: var(--rcdpt-brand);
	border-radius: 3px;
	transition: background-color .15s, color .15s, border-color .15s;
}

.rcdpt a.rcdpt-btn:hover,
.rcdpt a.rcdpt-btn:focus {
	color: #fff;
	background: var(--rcdpt-brand-dark);
}

.rcdpt a.rcdpt-btn--outline {
	padding: 6.5px 12px;
	color: var(--rcdpt-brand);
	background: #fff;
	border: 1.5px solid var(--rcdpt-brand);
}

.rcdpt a.rcdpt-btn--outline:hover,
.rcdpt a.rcdpt-btn--outline:focus,
.rcdpt .rcdpt-table tbody tr:hover a.rcdpt-btn--outline {
	color: #fff;
	background: var(--rcdpt-brand);
	border-color: var(--rcdpt-brand);
}

/* Whole row hints that it leads somewhere. */
.rcdpt .rcdpt-table tbody tr:hover .rcdpt-col-part a {
	text-decoration: underline;
}

.rcdpt-empty {
	color: #b5b2ad;
}

.rcdpt-noresults {
	margin: 16px 0 0;
	padding: 28px 14px;
	text-align: center;
	color: var(--rcdpt-muted);
	border: 1px dashed var(--rcdpt-control);
	border-radius: 4px;
}

/* ---------- Compact pager above the table ---------- */

.rcdpt-toppager {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
	margin-top: 12px;
}

.rcdpt-toppager + .rcdpt-table {
	margin-top: 6px;
}

.rcdpt-range {
	margin-right: 10px;
	font-size: 12.5px;
	color: #555;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.rcdpt .rcdpt-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: #444;
	background: transparent;
	border: 0;
	border-radius: 50%;
	transition: background-color .15s, color .15s;
}

.rcdpt .rcdpt-step:hover:not(:disabled),
.rcdpt .rcdpt-step:focus-visible {
	color: var(--rcdpt-brand);
	background: var(--rcdpt-hover);
}

.rcdpt .rcdpt-step:focus-visible {
	outline: 2px solid var(--rcdpt-brand);
	outline-offset: 1px;
}

.rcdpt .rcdpt-step:disabled {
	color: #C4C1BC;
	background: transparent;
	cursor: default;
}

@media (max-width: 767px) {
	.rcdpt .rcdpt-step {
		width: 40px;
		height: 40px;
	}
}

/* ---------- Pagination ---------- */

.rcdpt-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
}

.rcdpt-showing {
	font-size: 12px;
	color: var(--rcdpt-faint);
}

.rcdpt-pages {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rcdpt .rcdpt-pages button {
	min-width: 36px;
	padding: 7px 12px;
	font-size: 12.5px;
	color: #444;
	background: #fff;
	border: 1px solid #E0DDD8;
}

.rcdpt .rcdpt-pages button:hover:not(:disabled):not([aria-current]) {
	color: var(--rcdpt-brand);
	background: #fff;
	border-color: var(--rcdpt-brand);
}

.rcdpt .rcdpt-pages button[aria-current] {
	font-weight: 600;
	color: #fff;
	background: var(--rcdpt-brand);
	border-color: var(--rcdpt-brand);
	cursor: default;
}

.rcdpt .rcdpt-pages button:disabled {
	color: #bbb;
	background: #fff;
	cursor: default;
}

.rcdpt-gap {
	padding: 7px 4px;
	color: var(--rcdpt-faint);
}

/* ---------- CTA bar ---------- */

.rcdpt-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 28px;
	padding: 26px 34px;
	background: var(--rcdpt-brand);
}

.rcdpt-cta__title {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}

.rcdpt-cta__text {
	margin-top: 3px;
	font-size: 12.5px;
	color: #E8D2D4;
}

.rcdpt-cta__buttons {
	display: flex;
	gap: 12px;
	white-space: nowrap;
}

.rcdpt-cta__buttons a {
	display: inline-block;
	padding: 13px 22px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	border-radius: 3px;
	transition: background-color .15s;
}

.rcdpt a.rcdpt-cta__primary {
	color: var(--rcdpt-brand);
	background: #fff;
}

.rcdpt a.rcdpt-cta__primary:hover {
	color: var(--rcdpt-brand);
	background: #F1E2E3;
}

/* ---------- Narrow screens: hide columns instead of reflowing ----------
   Order: Operating Temp, Construction, Voltage, Wattage, MIL Type, Datasheet.
   Image, Part, Value Range and Details always stay. */

@media (max-width: 1180px) {
	.rcdpt .rcdpt-table .rcdpt-col-operating_temp {
		display: none;
	}
}

@media (max-width: 1040px) {
	.rcdpt .rcdpt-table .rcdpt-col-construction {
		display: none;
	}
}

@media (max-width: 920px) {
	.rcdpt .rcdpt-table .rcdpt-col-voltage {
		display: none;
	}
}

@media (max-width: 820px) {
	.rcdpt .rcdpt-table .rcdpt-col-wattage {
		display: none;
	}
}

@media (max-width: 720px) {
	.rcdpt .rcdpt-table .rcdpt-col-mil_type {
		display: none;
	}
}

@media (max-width: 620px) {
	.rcdpt .rcdpt-table .rcdpt-col-datasheet {
		display: none;
	}
}

@media (max-width: 560px) {
	.rcdpt .rcdpt-table th,
	.rcdpt .rcdpt-table td {
		padding-left: 8px;
		padding-right: 8px;
	}

	.rcdpt .rcdpt-table .rcdpt-col-image {
		width: 56px;
	}

	.rcdpt-thumb {
		width: 40px;
		height: 32px;
	}

	.rcdpt .rcdpt-col-part a {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.rcdpt a.rcdpt-btn {
		padding: 7px 9px;
	}

	.rcdpt a.rcdpt-btn--outline {
		padding: 5.5px 9px;
	}
}
/* ---------- Phone: collapsible filters ---------- */

@media (max-width: 767px) {
	.rcdpt-filters {
		padding: 10px 12px;
	}

	.rcdpt-filters__head {
		flex: 1;
		justify-content: flex-end;
	}

	.rcdpt-filters__label {
		display: none;
	}

	.rcdpt .rcdpt-filters__toggle {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 9px 14px;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: .05em;
		text-transform: uppercase;
		color: var(--rcdpt-brand);
		background: #fff;
		border: 1.5px solid var(--rcdpt-brand);
	}

	.rcdpt .rcdpt-filters__toggle:hover,
	.rcdpt .rcdpt-filters__toggle:focus {
		color: var(--rcdpt-brand);
		background: var(--rcdpt-brand-tint);
	}

	.rcdpt .rcdpt-filters__toggle::after {
		content: "";
		width: 7px;
		height: 7px;
		margin-left: 2px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform .15s;
	}

	.rcdpt.is-filters-open .rcdpt-filters__toggle::after {
		transform: translateY(1px) rotate(-135deg);
	}

	.rcdpt-count {
		order: -1;
	}

	.rcdpt:not(.is-ready) .rcdpt-filters__toggle {
		display: none;
	}

	.rcdpt-filters__fields {
		flex-basis: 100%;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.rcdpt.is-ready:not(.is-filters-open) .rcdpt-filters__fields {
		display: none;
	}

	.rcdpt-search {
		grid-column: 1 / -1;
		order: -1;
	}

	.rcdpt .rcdpt-select select,
	.rcdpt .rcdpt-search input {
		height: 42px;
		font-size: 16px; /* prevents iOS zoom on focus */
	}

	.rcdpt .rcdpt-reset {
		grid-column: 1 / -1;
		justify-self: start;
		padding: 4px 0;
	}

	.rcdpt-footer {
		justify-content: center;
		text-align: center;
	}

	.rcdpt-pages {
		justify-content: center;
	}

	.rcdpt .rcdpt-pages button {
		min-width: 40px;
		min-height: 40px;
	}

	.rcdpt-cta {
		flex-direction: column;
		align-items: stretch;
		padding: 24px 20px;
		text-align: center;
	}

	.rcdpt-cta__buttons {
		flex-direction: column;
	}

	.rcdpt-cta__buttons a {
		text-align: center;
	}
}

@media (max-width: 380px) {
	.rcdpt-filters__fields {
		grid-template-columns: minmax(0, 1fr);
	}
}
