.rad-tools-category .list-block {
	padding: 2rem;
	border-radius: 5px;
	background-color: #f3f3f3;
}

.rad-tools-category .case-study-card > .list-block {
	padding: 1.5rem;
	border-radius: 0;
	background-color: transparent;
}

.rad-tools-category [data-case-study-card] {
	transition: opacity 180ms ease, transform 180ms ease;
}

.rad-tools-category .case-study-card-fade-in,
.rad-tools-category .case-study-card-fade-out {
	opacity: 0;
	transform: translateY(0.5rem);
}

.rad-tools-category .case-study-card-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.rad-tools-category [data-case-study-card] {
		transition: none;
	}

	.case-study-tag-cloud .case-study-tag-filter {
		transition: none;
	}
}

/* Card images vary in native orientation (portrait/landscape/square), so
   crop them to a consistent aspect ratio rather than letting tall images
   stretch the card. */
.rad-tools-category .list-block > a.card-img-link {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 5px;
	background-color: #fff;
}

.rad-tools-category .list-block > a.card-img-link img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Cards falling back to the featured/banner image (or the placeholder) are
   letterbox-shaped by design - show the whole image at its own natural
   height rather than cropping it into (or padding it out to) a 4:3 box. */
.rad-tools-category .list-block > a.card-img-link:has(img.card-img-banner) {
	aspect-ratio: auto;
}

.rad-tools-category .list-block > a.card-img-link img.card-img-banner {
	height: auto;
	object-fit: contain;
}

.rad-tools-category .list-block-content ul {
	margin-bottom: 1.5rem;
}

.rad-tools-category .list-block-content li::before {
	position: relative;
	top: 4px;
	margin-right: 0.5rem;
	color: var(--pbmit-link-color-normal);
	font-family: flaticon;
	font-size: 1.25rem;
	font-style: normal;
	font-weight: 400 !important;
	line-height: 1;
	text-transform: none;
	content: "\f13c";
	-webkit-font-smoothing: antialiased;
}

.rad-tools-cta-secondary,
.rad-tools-cta-secondary:hover,
.rad-tools-cta-secondary:focus {
	color: #fff !important;
}

.case-study-taxonomy-pill {
	background-color: var(--pbmit-global-color);
	color: #fff;
}

.case-study-filters .form-control,
.case-study-filters .form-select {
	min-height: 55px;
	border-color: var(--pbmit-global-color);
}

.case-study-filters .input-group > .form-control {
	height: 55px;
	padding: 15px;
	border: 1px solid var(--pbmit-global-color);
	/* border-right: 0; */
	line-height: 1.5;
}

.case-study-filters .form-control:focus,
.case-study-filters .form-select:focus {
	border-color: var(--pbmit-global-color);
	box-shadow: 0 0 0 0.25rem rgba(211, 0, 108, 0.2);
}

.case-study-filters .case-study-search-clear {
	display: flex;
	height: 55px;
	min-width: 44px;
	align-items: center;
	justify-content: center;
	border-color: var(--pbmit-global-color);
	color: var(--pbmit-global-color);
}

.case-study-filters .case-study-search-clear[hidden] {
	display: none;
}

.case-study-filters .case-study-search-clear:hover,
.case-study-filters .case-study-search-clear:focus {
	border-color: var(--pbmit-global-color);
	background-color: var(--pbmit-global-color);
	color: #fff;
}

.case-study-filters .case-study-search-clear:focus {
	box-shadow: 0 0 0 0.25rem rgba(211, 0, 108, 0.2);
}

.case-study-tag-cloud .case-study-tag-filter {
	border: 1px solid var(--pbmit-global-color);
	border-radius: 50rem;
	background-color: #fff;
	color: var(--pbmit-global-color);
	transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.case-study-tag-cloud .case-study-tag-filter:hover,
.case-study-tag-cloud .case-study-tag-filter.active {
	background-color: var(--pbmit-global-color);
	color: #fff;
}

.case-study-tag-cloud .case-study-tag-filter:focus-visible {
	border-color: var(--pbmit-global-color);
	outline: 0;
	box-shadow: 0 0 0 0.25rem rgba(211, 0, 108, 0.2);
}

#case-study-search::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.document-library-filters .form-control,
.document-library-filters .form-select {
	min-height: 55px;
	border-color: var(--pbmit-global-color);
}

.document-library-filters .form-control:focus,
.document-library-filters .form-select:focus {
	border-color: var(--pbmit-global-color);
	box-shadow: 0 0 0 0.25rem rgba(211, 0, 108, 0.2);
}

.document-library-filter-actions .pbmit-btn {
	white-space: nowrap;
}

.document-library-item {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr) auto;
	gap: 1.5rem;
	align-items: center;
	padding: 1.25rem 0;
	border-bottom: 1px solid #ddd;
}

.document-library-thumbnail {
	display: flex;
	min-height: 142px;
	align-items: center;
	justify-content: center;
}

.document-library-preview {
	display: block;
	width: 100px;
	max-height: 142px;
	border: 1px solid #ddd;
	object-fit: contain;
}

.document-library-preview-fallback {
	display: flex;
	width: 100px;
	height: 142px;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	background: #f3f3f3;
	color: var(--pbmit-global-color);
	font-weight: 700;
}

.document-library-title {
	margin-bottom: 0.5rem;
	font-size: 1.2rem;
}

.document-library-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	color: #555;
	font-size: 0.95rem;
}

.document-library-related-items {
	margin-top: 0.5rem;
	color: #555;
	font-size: 0.95rem;
}

.related-documents {
	margin-top: 3rem;
}

.related-documents-types {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 1rem 0;
	padding: 0;
	list-style: none;
}

.related-documents-types a {
	color: var(--pbmit-global-color);
	font-weight: 600;
	text-decoration: underline;
}

.document-library-result-count {
	margin-bottom: 0;
}

.document-library-pagination {
	margin-top: 2rem;
}

.document-library-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.document-library-pagination .page-numbers a,
.document-library-pagination .page-numbers span {
	display: inline-block;
	padding: 0.5rem 0.75rem;
	border: 1px solid #ddd;
}

.document-library-pagination .page-numbers .current {
	border-color: var(--pbmit-global-color);
	background: var(--pbmit-global-color);
	color: #fff;
}

@media (max-width: 767.98px) {
	.document-library-item {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 1rem;
	}

	.document-library-thumbnail {
		min-height: 108px;
	}

	.document-library-preview,
	.document-library-preview-fallback {
		width: 76px;
		max-height: 108px;
	}

	.document-library-action {
		grid-column: 2;
	}
}

/* Bullet lists typed directly into a category/landing page's main content
   editor (e.g. "Typical uses for hydraulic torque tools") get the same
   tick-icon style used everywhere else - no special class required. */
.rad-tools-category .col-md-12.order-1 ul,
.rad-tools-category .col-md-9.order-1 ul {
	list-style: none;
	padding-left: 0;
	margin-bottom: 1.5rem;
}

.rad-tools-category .col-md-12.order-1 li::before,
.rad-tools-category .col-md-9.order-1 li::before {
	position: relative;
	top: 4px;
	margin-right: 0.5rem;
	color: var(--pbmit-link-color-normal);
	font-family: flaticon;
	font-size: 1.25rem;
	font-style: normal;
	font-weight: 400 !important;
	line-height: 1;
	text-transform: none;
	content: "\f13c";
	-webkit-font-smoothing: antialiased;
}

/* Any bullet list an editor creates in the single item's content editor
   automatically gets the same tick-icon style used on the cards - no
   special class required. */
.rad-tools-product .single-product-info ul {
	list-style: none;
	padding-left: 0;
	margin-bottom: 1.5rem;
}

.rad-tools-product .single-product-info li::before {
	position: relative;
	top: 4px;
	margin-right: 0.5rem;
	color: var(--pbmit-link-color-normal);
	font-family: flaticon;
	font-size: 1.25rem;
	font-style: normal;
	font-weight: 400 !important;
	line-height: 1;
	text-transform: none;
	content: "\f13c";
	-webkit-font-smoothing: antialiased;
}

.rad-tools-product .single-product-info table {
	margin-bottom: 1.5rem;
}

/* Adds breathing room below the [accordion] shortcode output so following
   content doesn't sit flush against the last accordion item. */
.rad-tools-product .single-product-info .accordion-style-2 {
	margin-bottom: 3rem;
}

.rad-tools-product .gallery-container {
	max-width: 900px;
	margin: 2rem auto;
	overflow: hidden;
}

.rad-tools-product .main-img {
	display: block;
	width: 100%;
	height: 450px;
	object-fit: contain;
}

.rad-tools-product .thumbs-col {
	position: relative;
	overflow: hidden;
}

.rad-tools-product .thumbs-wrapper {
	display: flex;
	transition: transform 0.6s ease;
}

.rad-tools-product .wc-product-gallery-thumb {
	padding: 0;
	border: 2px solid transparent;
	background: #ffffff;
	cursor: pointer;
}

.rad-tools-product .wc-product-gallery-thumb.active {
	border-color: #d3006c;
}

.rad-tools-product .wc-product-gallery-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.rad-tools-product .thumb-nav.up,
.rad-tools-product .thumb-nav.down {
	display: none;
}

@media (min-width: 769px) {
	.rad-tools-product .gallery-container .row {
		display: flex;
	}

	.rad-tools-product .thumbs-col {
		width: 25%;
		height: 450px;
	}

	.rad-tools-product .thumbs-wrapper {
		flex-direction: column;
	}

	.rad-tools-product .wc-product-gallery-thumb {
		width: 100%;
		height: 150px;
	}

	.rad-tools-product .thumb-nav.up,
	.rad-tools-product .thumb-nav.down {
		display: block;
		z-index: 10;
		opacity: 0.8;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		font-size: 1.5rem;
	}
	.rad-tools-product .thumb-nav.up { top: 5px; }
	.rad-tools-product .thumb-nav.down { bottom: 5px; }
}

@media (max-width: 768px) {
	.rad-tools-product .thumbs-col {
		width: 100%;
		margin-top: 0;
	}

	.rad-tools-product .thumbs-wrapper {
		flex-direction: row;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.rad-tools-product .wc-product-gallery-thumb {
		flex: 0 0 auto;
		width: auto;
		height: 100px;
		scroll-snap-align: center;
	}

	.rad-tools-product .main-img {
		height: 250px;
	}
}

/* Hire landing page ([hire_cards] shortcode) - jump links row to the
   grouped sections, item images and optional Card Content details. */
.hire-jump-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

.hire-jump-link {
	margin: 0;
}

/* Group header: title/intro next to a smaller version of the section
   image. A flex container with items bottom-aligned keeps the title and
   image's bottom edges level with each other, regardless of which is
   taller, so the cards always start directly below with no extra gap. */
.hire-group-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
}

.hire-group-header-text {
	flex: 1 1 auto;
}

.hire-group-header-text > :last-child {
	margin-bottom: 0;
}

.hire-group-header-image {
	flex: 0 0 auto;
	max-width: 180px;
}

.hire-group-header-image img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 768px) {
	.hire-group-header-image {
		display: none;
	}
}

/* Adds breathing room below the Hire landing page's FAQ accordion so the
   closing "Need Equipment for an Upcoming Job?" section doesn't sit flush
   against the last accordion item. */
.hire-landing .accordion-style-2 {
	margin-bottom: 3rem;
}
