/**
Theme Name: Astra Child
Author: Mayukh Ray
Author URI: http://wpastra.com/about/
Description: Child theme for Track Parts Corporation catalog site
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

:root {
  --wp--style--block-gap: 0;
}

body {
  letter-spacing: 0;
}

body.home .ast-container:not(.ast-primary-header .ast-container) {
  max-width: 100% !important;
  width: 100% !important;
  padding-inline: 0 !important;
}

/* The Spare Parts archive has full-bleed bands too (the High-Demand section),
   so its container is released the same way. Every content block inside the
   listing is already constrained by .tpc-listing__inner. */
body.post-type-archive-tpc_product .ast-container:not(.ast-primary-header .ast-container) {
  max-width: 100% !important;
  width: 100% !important;
  padding-inline: 0 !important;
}

.ast-builder-menu-1 .menu-item.current-menu-item>.menu-link {
  font-weight: 500;
}

.wp-block-image img:focus {
  outline: none;
}

a,
a:focus,
a:hover,
a:focus-visible {
  color: inherit;
  outline: none;
  transition: all 0.3s ease-in-out;
}

p {
  color: #615f5f;
}

input:focus,
input[type='text']:focus,
input[type='email']:focus,
input[type='url']:focus,
input[type='password']:focus,
input[type='reset']:focus,
input[type='search']:focus,
input[type='number']:focus,
textarea:focus,
.wp-block-search__input:focus,
[data-section='section-header-mobile-trigger'] .ast-button-wrap .ast-mobile-menu-trigger-minimal:focus,
.ast-mobile-popup-drawer.active .menu-toggle-close:focus,
#ast-scroll-top:focus,
#coupon_code:focus,
#ast-coupon-code:focus {
  outline: none;
  border: inherit;
}

.ast-search-menu-icon.slide-search a:focus-visible:focus-visible,
.astra-search-icon:focus-visible,
#close:focus-visible,
a:focus-visible,
.ast-menu-toggle:focus-visible,
.site .skip-link:focus-visible,
.wp-block-loginout input:focus-visible,
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper,
.ast-header-navigation-arrow:focus-visible,
.ast-orders-table__row .ast-orders-table__cell:focus-visible,
a#ast-apply-coupon:focus-visible,
#ast-apply-coupon:focus-visible,
#close:focus-visible,
.button.search-submit:focus-visible,
#search_submit:focus,
.normal-search:focus-visible,
.ast-header-account-wrap:focus-visible,
.astra-cart-drawer-close:focus,
.ast-single-variation:focus,
.ast-button:focus,
.ast-builder-button-wrap:has(.ast-custom-button-link:focus),
.ast-builder-button-wrap .ast-custom-button-link:focus {
  outline: none;
}

.ast-header-html-wrap,
.ast-primary-header .ast-container {
  max-width: 1173px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.red-button-flip {
  font-family: 'Oxanium', sans-serif;
  width: fit-content;
  max-width: unset !important;
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #c00000 !important;
  color: #ffffff;
  font-weight: 600;
  padding: 3px 50px 0 50px !important;
  text-decoration: none;
  clip-path: polygon(0% 0%, 95% 0%, 100% 100%, 5% 100%);
  border: none;
  transition: all 0.3s ease-in-out;
}

.red-button-flip::after {
  content: '';
  display: inline-block;
  width: 70px;
  height: 2px;
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.red-button,
.ast-primary-header .ast-custom-button {
  display: inline-block;
  background: #c00000 !important;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 33px;
  text-decoration: none;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.red-button:hover {
  background: #d50606 !important;
  transition: all 0.3s ease-in-out;
}

.ast-theme-transparent-header [CLASS*='ast-header-button-'] .ast-custom-button:hover {
  background: #d50606 !important;
  color: #ffffff;
  transition: all 0.3s ease-in-out;
}

/*
 * Scroll-to-top button: same colours as .red-button above.
 *
 * Astra colours it from the Customizer's "link-color" global, which on this
 * site is still Astra's own default palette blue — nothing else on the site
 * uses that colour, so the round button stood out against the red buttons
 * everywhere else. #ast-scroll-top is the same ID selector Astra's own dynamic
 * CSS uses, so this wins purely on load order: astra-child-theme-css is
 * enqueued after astra-theme-css (functions.php), which is where that ID rule
 * lives.
 */
#ast-scroll-top {
  background-color: #c00000;
}

#ast-scroll-top:hover,
#ast-scroll-top:focus {
  background-color: #d50606;
}

.ast-primary-header .ast-custom-button {
  padding: 17px 29px;
}

.white-button {
  display: inline-block;
  background: #ffffff;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 33px;
  text-decoration: none;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.white-button:hover {
  background: #ffdbdb;
  transition: all 0.3s ease-in-out;
}

select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  /* Your custom chevron icon */
  background-image: url("data:image/svg+xml,%3Csvg width='11' height='7' viewBox='0 0 11 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.043 0.750022L5.39651 5.39648L0.750043 0.750022' stroke='%23797979' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.9em center !important;
  background-size: 11px 7px !important;
}

.wpcf7-form-control.wpcf7-not-valid {
  border: 1px solid #ff0000 !important;
  background: #fff8f8 !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border: 1px solid #ff0000;
  color: #c00000;
  background: #fff8f8;
  font-weight: 500;
}

.wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid #00ac47;
  color: #00ac47;
  background: #00ac4733;
  font-weight: 500;
}

/* ----- header ------  */

.site-header-section>div:first-child,
.site-header-section>div:last-child {
  padding: 0;
}

.main-header-menu>.menu-item>.menu-link {
  padding: 0px;
  margin-right: 32px;
}

.ast-builder-menu-1 .menu-item.current-menu-item>.menu-link {
  position: relative;
}

.ast-builder-menu-1 .menu-item.current-menu-item>.menu-link::before {
  position: absolute;
  content: '';
  display: inline-block;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #c00000, rgba(255, 255, 255, 0));
  bottom: -2px;
  left: 0;
  width: 100%;
}

/* ----- homepage home ------- */
.main-container {
  max-width: 1173px;
  margin-inline: auto;
}

.glass-bg {
  position: relative;
  background: #ffffff33;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  width: fit-content;
}

.glass-bg::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
}

.heading-line {
  font-family: 'Oxanium', sans-serif;
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 12px;
}

.justify-left {
  justify-content: flex-start;
}

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

/* RIGHT: line after the text, fading right */
.heading-line--right::after {
  content: '';
  display: inline-block;
  width: 70px;
  height: 2px;
  background: linear-gradient(to right, #c00000, rgba(255, 255, 255, 0));
}

/* LEFT: line before the text, fading left */
.heading-line--left::before {
  content: '';
  display: inline-block;
  width: 70px;
  height: 2px;
  background: linear-gradient(to left, #c00000, rgba(255, 255, 255, 0));
}

.heading-line--right span {
  font-weight: 600;
  font-size: 12px;
  color: #797979;
  margin-top: 3px;
}

.flex-shrink {
  flex-shrink: 0;
}

/* ----- counter ------ */
/* Glass panel wrapping the whole stats row */
.tpc-stats-row {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
}

/* Divider lines between stat groups (not after the last one) */
.tpc-counter-row-inner {
  position: relative;
  max-width: 1173px;
  width: 100%;
}

.tpc-counter-row-inner>.wp-block-group:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 39px;
  background-color: #b1b1b1;
}

.tpc-counter-row-inner>.wp-block-group {
  flex: 1;
  text-align: center;
}

/* The counter number styling */
.tpc-counter,
.tpc-counter-heading {
  font-family: 'Oxanium', sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  color: #ffffff;
  display: block;
}

/* ------ Authorized Network ------- */
.network-text {
  max-width: 38%;
}

.supplier-hover {
  border: 1px solid #dfdfdf;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

/* Makes the Cover block the relative parent */
.clickable-card {
  position: relative !important;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

/* Stretches the link to fill the ENTIRE Cover box */
.clickable-card a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
}

.supplier-hover:hover {
  border: 1px solid #c00000;
  box-shadow: 3px 5px 18px 0px #c1020226;
}

/* ------- Catagory Button ------- */
.flex-between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.catagory-button a,
.catagory-button button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease-in-out;
}

.catagory-button a:hover,
.catagory-button button:hover {
  color: #c00000 !important;
  transition: all 0.3s ease-in-out;
}

.catagory-button a svg,
.catagory-button button svg {
  margin-top: 2px;
  transform: translateX(0);
  transition: all 0.3s ease-in-out;
}

.catagory-button a:hover svg,
.catagory-button button:hover svg {
  transform: translateX(5px);
  transition: all 0.3s ease-in-out;
}

.translate-y {
  transform: translateY(80px);
}

/* ------- Priority Inventory ------- */
.priority-inventory {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-inline: auto;
}

.priority-inventory::before,
.priority-inventory::after {
  content: '';
  position: absolute;
  width: 515px;
  height: 431px;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.priority-inventory::before {
  top: 0;
  left: 0;
  background-image: url('./assets/images/inventory-top-bg.webp');
}

.priority-inventory::after {
  right: 0;
  bottom: 0;
  background-image: url('./assets/images/inventory-bottom-bg.webp');
}

.inventory-paragraph {
  max-width: 735px !important;
}

/* ----- inventory swiper card ------- */
.tpc-swiper-shell {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 45px;
  gap: 24px;
  align-items: center;
  max-width: 1320px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.tpc-swiper-shell:has(.swiper-button-lock) {
  grid-template-columns: minmax(0, 1fr);
}

.tpc-swiper {
  padding-bottom: 70px;
  max-width: 100%;
  padding-inline: 0;
  min-width: 0;
}

.tpc-swiper-slide {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #dfdfdf;
}

.tpc-card {
  min-height: 441px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  height: 100%;
}

.tpc-card__media {
  position: relative !important;
}

/* Fixed band so every card's caption and body line up, whatever the
   uploaded image's dimensions are */
.tpc-card__image {
  height: 210px;
  margin: 0;
  overflow: hidden;
}

.tpc-card__image img {
  max-height: 210px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tpc-card__caption {
  font-family: 'IBM Plex Sans', sans-serif;
  position: absolute !important;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.7);
  /* Fixed height rather than one that grows with the text: a one-line
     "Category — Brand" and a two-line one used to leave the strip at two
     different heights, which looked uneven across a row of cards. Sized for
     two lines — as long as a caption in this catalogue gets — so every card's
     strip matches, and a shorter caption is centred in the band instead of
     pinned to the top. Vertical padding is replaced by the flex centering;
     horizontal padding is unchanged. */
  height: 64px;
  box-sizing: border-box;
  padding: 0 15px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0;
  color: #fff !important;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
}

.tpc-card .wp-block-buttons {
  margin: 0 !important;
  padding: 0 18px 20px 15px;
}

.tpc-card__body {
  margin: 0 !important;
  padding: 12px 18px 0 15px;
}

.tpc-card__title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  margin: 0 0 15px;
}

.tpc-card__meta {
  color: #797979;
  font-size: 13px;
  line-height: 17px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 0;
}

.tpc-card__link {
  color: #1a1a1a;
  font-weight: 600;
}

.tpc-card__link:hover {
  color: #e53935;
}

/* ----- swiper carousel (front-end only) ------- */
.tpc-swiper-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  max-width: 1320px;
}

.tpc-swiper .swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
  width: 8px;
  height: 8px;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}

.tpc-swiper .swiper-pagination-bullet-active {
  background: #c00000;
  width: 27px;
  border-radius: 4px;
}

.swiper-button-prev {
  left: 0;
}

.swiper-button-next {
  right: 0;
}

.swiper-button-next,
.swiper-button-prev {
  width: 45px;
  height: 45px;
  margin-top: 0;
  border-radius: 7.5px;
  background: white;
  border: 1px solid #797979;
  outline: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

/*
 * Reassert the border once the button has been clicked. It is a plain
 * <button>, not one of the header/form controls .ast-button etc. already
 * cover, so nothing here was resetting the browser's own default focus
 * treatment for a button element — that could visually blank the border while
 * the arrow held focus, i.e. right after a click, until focus moved elsewhere.
 * The border itself never changed value; this only stops something else from
 * drawing over it.
 */
.swiper-button-next:focus,
.swiper-button-next:focus-visible,
.swiper-button-next:active,
.swiper-button-prev:focus,
.swiper-button-prev:focus-visible,
.swiper-button-prev:active {
  outline: none;
  border: 1px solid #797979;
}

.tpc-swiper-shell .swiper-button-next,
.tpc-swiper-shell .swiper-button-prev {
  position: static;
  inset: auto;
  transform: none;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  content: none;
}

.swiper-button-next {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 45'><path d='M19.5 16.5 25.5 22.5 19.5 28.5' stroke='%23797979' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.swiper-button-prev {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 45'><path d='M25.5 16.5 19.5 22.5 25.5 28.5' stroke='%23797979' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.swiper-button-next:hover:not(.swiper-button-disabled),
.swiper-button-prev:hover:not(.swiper-button-disabled) {
  background-color: #c00000;
  border-color: #c00000;
}

.swiper-button-next:hover:not(.swiper-button-disabled) {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 45'><path d='M19.5 16.5 25.5 22.5 19.5 28.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
}

.swiper-button-prev:hover:not(.swiper-button-disabled) {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 45'><path d='M25.5 16.5 19.5 22.5 25.5 28.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
}

.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Placeholder keeps the 210px media band when a product has no featured image */
.tpc-card__image-placeholder {
  display: block;
  width: 100%;
  height: 210px;

  background-color: #ececec;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M78.75 39.75C78.75 58.1346 78.75 67.3269 73.0365 73.0365C67.3308 78.75 58.1346 78.75 39.75 78.75C21.3654 78.75 12.1731 78.75 6.4596 73.0365C0.75 67.3308 0.75 58.1346 0.75 39.75C0.75 21.3654 0.75 12.1731 6.4596 6.4596C12.177 0.75 21.3654 0.75 39.75 0.75' stroke='%23797979' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M0.75 41.6996L7.5828 35.7209C9.29543 34.2236 11.513 33.4329 13.7866 33.5089C16.0602 33.585 18.22 34.522 19.8288 36.1304L36.5598 52.8614C37.8581 54.1595 39.5727 54.9579 41.4018 55.1163C43.2309 55.2747 45.0573 54.7828 46.5594 53.7272L47.7255 52.9082C49.8923 51.3863 52.5113 50.6445 55.1543 50.8039C57.7974 50.9633 60.3082 52.0145 62.2764 53.7857L74.85 65.0996' stroke='%23797979' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M44.6836 30.5858L43.7437 33.4016C43.6345 33.7295 43.6188 34.0814 43.6985 34.4177C43.7781 34.7541 43.9498 35.0616 44.1944 35.3058C44.439 35.55 44.7468 35.7212 45.0832 35.8002C45.4197 35.8793 45.7715 35.863 46.0993 35.7533L48.9151 34.8173L53.2675 33.3665C54.6247 32.9141 55.3033 32.6879 55.9429 32.3837C56.6964 32.0215 57.409 31.5796 58.0684 31.0655C58.6261 30.6365 59.1331 30.1295 60.1471 29.1155L75.1036 14.159L76.7299 12.5327C78.0004 11.2333 78.7073 9.48526 78.6971 7.66793C78.6869 5.8506 77.9604 4.11062 76.6754 2.82555C75.3903 1.54049 73.6503 0.81403 71.833 0.80382C70.0156 0.79361 68.2676 1.50047 66.9682 2.77102L65.3419 4.39732M65.3419 4.39732C65.3419 4.39732 65.5447 7.85662 68.5945 10.9064C71.6443 13.9562 75.1036 14.159 75.1036 14.159M65.3419 4.39732L50.3854 19.3538C49.3714 20.3678 48.8644 20.8748 48.4354 21.4325C47.9213 22.0919 47.4794 22.8045 47.1172 23.558C46.813 24.1976 46.5868 24.8762 46.1344 26.2334L44.6836 30.5858M44.6836 30.5858L48.9151 34.8173' stroke='%23797979' stroke-width='1.5'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center 40px;
  background-size: 80px 80px;
}

.tpc-card__image-placeholder:has(> img) {
  background-image: none;
}

/* ----- enquire modal ------- */
.tpc-modal {
  width: min(950px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 0;
  border: none;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: visible;
}

.tpc-modal::backdrop {
  background: rgba(10, 10, 10, 0.55);
}

body.tpc-modal-open {
  overflow: hidden;
}

.tpc-modal__inner {
  position: relative;
  display: flex;
  gap: 0;
  max-height: calc(100vh - 40px);
  overflow: hidden;
}

/* Fixed decorative photograph, the same for every product. Drop the file in as
   assets/images/enquiry-modal.webp — until then the panel colour shows. */
.tpc-modal__media {
  margin: 24px 0 24px 24px;
  border-radius: 14px;
  background-color: #e9e9ea;
  background-image: url('./assets/images/enquiry-modal.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-width: 340px;
  max-height: 730px;
}

.tpc-modal__content {
  padding: 30px;
  overflow-y: auto;
}

.tpc-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #6b6b6b;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.tpc-modal__close:hover {
  background: #f3f3f3;
  color: #c00000;
}

.tpc-modal__header {
  margin-bottom: 22px;
  padding-right: 40px;
}

.tpc-modal__title {
  margin: 0 0 12px;
  color: #c00000;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}

.tpc-modal__badge {
  display: inline-block;
  margin: 0;
  padding: 5px 13px;
  border: 1px solid #c00000;
  background: #fff;
  border-radius: 6px;
  color: #050308;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
}

/* ----- enquire modal: form ------- */
.tpc-enquire-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-bottom: 8px !important;
}

.tpc-field--full {
  grid-column: 1 / -1;
}

.tpc-field label {
  display: block;
  margin-bottom: 6px;
  color: #050308;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
}

.tpc-req {
  color: #c00000;
}

.tpc-enquire-form .wpcf7-form-control-wrap {
  display: block;
}

.tpc-enquire-form input[type='text'],
.tpc-enquire-form input[type='number'],
.tpc-enquire-form input[type='email'],
.tpc-enquire-form input[type='tel'],
.tpc-enquire-form textarea {
  width: 100%;
  padding: 11px 10px !important;
  border: 1px solid #dddddd;
  border-radius: 6px;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 18px;
  transition: border-color 0.3s ease-in-out;
}

.tpc-enquire-form input::placeholder,
.tpc-enquire-form textarea::placeholder {
  color: #9a9a9a;
}

.tpc-enquire-form input:focus,
.tpc-enquire-form textarea:focus {
  border-color: #ddd !important;
  outline: none;
}

/* Read-only fields are prefilled from the product and not user-editable */
.tpc-enquire-form input[readonly] {
  background: #f0f0f0;
  color: #6b6b6b;
  cursor: default;
}

.tpc-enquire-form input[readonly]:focus {
  border-color: #dddddd;
}

.tpc-enquire-form textarea {
  min-height: 78px;
  resize: none;
}

.tpc-enquire-form__actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 50px !important;
}

/* The submit tag carries .red-button, but Astra's CF7 compat CSS zeroes out
   input[type="submit"] background/padding, so restate the button here. */
.tpc-enquire-form input[type='submit'].red-button {
  display: inline-block;
  width: auto;
  background: #c00000;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  padding: 15px 33px;
  border: none;
  border-radius: 0;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.tpc-enquire-form input[type='submit'].red-button:hover {
  background: #d50606;
  color: #ffffff;
}

.tpc-enquire-form .wpcf7-spinner {
  margin: 0 0 0 10px;
  align-self: center;
}

.tpc-enquire-form .wpcf7-not-valid-tip {
  margin-top: 5px;
  color: #c00000;
  font-size: 13px;
  line-height: 1.3;
}

.tpc-enquire-form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  width: 100%;
  bottom: -50px;
}

.wpcf7-response-output {
  text-align: center;
}

/* ----- enquire modal: trust row ------- */
.tpc-modal__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin: 0;
  list-style: none;
}

.tpc-modal__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b6b6b;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
}

.tpc-modal__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #9a9a9a;
}

.tpc-modal__trust-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 921px) {
  .tpc-modal__inner {
    grid-template-columns: 1fr;
  }

  .tpc-modal__media {
    padding: 16px 16px 0;
  }

  .tpc-modal__image {
    max-height: 220px;
  }

  .tpc-modal__content {
    padding: 22px 20px 20px;
  }
}

@media (max-width: 544px) {
  .tpc-enquire-form__grid {
    grid-template-columns: 1fr;
  }

  .tpc-modal__title {
    font-size: 22px;
  }

  .tpc-enquire-form__actions {
    justify-content: stretch;
  }

  .tpc-enquire-form input[type='submit'] {
    width: 100%;
  }
}

/* ----- footer -------  */
.tpc-footer {
  background: #0a0a0a;
  background-image: url('./assets/images/footer-bg-desktop.webp');
  color: #fff;
  padding: 36px 0 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.page-id-11 .tpc-footer,
.page-id-434 .tpc-footer {
  padding: 132px 0 0;
}

.tpc-footer__inner {
  max-width: 1173px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.tpc-footer__brand {
  min-width: 366px;
}

.tpc-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  padding-bottom: 46px;
}

.tpc-footer__logo {
  padding: 6px 15px;
  background: #dfdfdf;
  max-width: 220px;
  margin-bottom: 22px;
}

.tpc-footer__desc {
  color: #f9f9f9;
  max-width: 345px;
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.tpc-footer__badges {
  list-style: none;
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  margin-inline: 0;
}

.tpc-badge a {
  color: #fff;
  background: #ffffff26;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  transition: background 0.25s ease-in-out;
}

.tpc-badge a:hover {
  background: #ffffff50;
  color: #fff !important;
  transition: background 0.25s ease-in-out;
}

.tpc-footer__heading {
  font-family: 'IBM Plex Sans', sans-serif;
  position: relative;
  padding-bottom: 6px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.tpc-footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  display: inline-block;
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, #c00000, rgba(255, 255, 255, 0));
}

/* Navigation menu (native WP nav block output) */
.tpc-footer__nav .menu-item.current-menu-item>a,
.tpc-footer__nav .current_page_item>a {
  font-weight: 600;
  color: #c00000;
  position: relative;
  display: inline-block;
  letter-spacing: 0.02em;
}

.tpc-footer__nav {
  max-width: 299px;
  margin-top: 84px;
}

.tpc-footer__nav ul,
.tpc-footer__nav .wp-block-navigation__container {
  column-count: 2;
  column-gap: 60px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tpc-footer__nav li,
.tpc-footer__nav .wp-block-navigation-item {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 24px;
  break-inside: avoid;
  white-space: nowrap;
}

.tpc-footer__nav a {
  color: #f9f9f9;
  text-decoration: none;
}

.tpc-footer__nav a:hover {
  color: #e53935;
}

/* Contact rows */
.tpc-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  color: #f9f9f9;
}

.tpc-contact-row p {
  margin: 0 !important;
  font-size: 16px;
  line-height: 24px;
}

.tpc-contact-row svg {
  flex-shrink: 0;
  margin-top: 4px !important;
  margin-inline: 0 !important;
}

.tpc-footer__contact {
  max-width: 371px;
  margin-top: 84px;
}

.tpc-footer__address {
  font-style: normal;
}

.tpc-footer__contact .footer-widget-item:last-child .tpc-contact-row svg {
  margin-top: 7px !important;
}

.tpc-footer__contact .footer-widget-item:last-child .tpc-contact-row {
  margin-bottom: 0;
}

.tpc-contact-row a {
  color: #f9f9f9;
  text-decoration: none;
  line-height: 24px;
}

.tpc-contact-row a:hover {
  color: #e53935;
}

/* ----- social icons (Simple Social Icons plugin override) ------- */
.tpc-footer__social-widget ul.alignleft {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tpc-footer__social-widget .footer-widget-item h4::after {
  display: none;
}

.tpc-footer__social-widget ul.alignleft li {
  list-style: none;
}

.tpc-footer__social-widget ul.alignleft li a svg {
  fill: #fff;
  height: inherit;
}

/* Per-brand background colors */
.tpc-footer__social-widget li.ssi-facebook {
  padding: 9px;
  border: 1px solid white;
  border-radius: 50%;
}

.tpc-footer__social-widget li.ssi-facebook a {
  background: #1877f2;
  border-radius: 50%;
  text-decoration: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: end;
  justify-content: center;
  overflow: hidden;
}

.tpc-footer__social-widget li.ssi-facebook a svg {
  transform: translateY(3px);
  width: 17.7px;
}

.tpc-footer__social-widget li.ssi-instagram {
  padding: 10px;
  border: 1px solid white;
  border-radius: 50%;
}

.tpc-footer__social-widget li.ssi-instagram a {
  background: radial-gradient(circle at 30% 107%,
      #fdf497 0%,
      #fdf497 5%,
      #fd5949 45%,
      #d6249f 60%,
      #285aeb 90%);
  border-radius: 4px;
  text-decoration: none;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpc-footer__social-widget li.ssi-instagram a svg {
  width: 17.7px;
}

.tpc-footer__social-widget li.ssi-twitter {
  padding: 10px;
  border: 1px solid white;
  border-radius: 50%;
}

.tpc-footer__social-widget li.ssi-twitter a {
  border-radius: 50%;
  text-decoration: none;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpc-footer__social-widget li.ssi-youtube {
  padding: 8.5px 6.5px;
  border: 1px solid white;
  border-radius: 50%;
}

.tpc-footer__social-widget li.ssi-youtube a {
  text-decoration: none;
  width: 27px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpc-footer__social-widget ul.alignleft li.ssi-youtube a svg {
  fill: #c00000;
}

.tpc-footer__social-widget li.ssi-linkedin {
  padding: 8.5px 6.5px;
  border: 1px solid white;
  border-radius: 50%;
}

.tpc-footer__social-widget li.ssi-linkedin a {
  text-decoration: none;
  width: 27px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpc-footer__social-widget ul.alignleft li.ssi-linkedin a svg {
  fill: #0a66c2;
}

/* Bottom bar */
.tpc-footer__bottom-outer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0px 0px 2px 0px #0000001f;
  background: #ffffff30;
}

.tpc-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.tpc-footer__bottom a {
  color: #fff;
  transition: color 0.3s ease-in-out;
}

.tpc-footer__bottom a:hover {
  color: #e53935;
  transition: color 0.3s ease-in-out;
}

.tpc-footer__copyright,
.tpc-footer__legal {
  font-weight: 500;
}

/* Legal links come from the Footer Secondary menu, so the pipe separators that
   used to be hardcoded in the markup are drawn between list items instead. */
.tpc-footer__legal ul.menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpc-footer__legal ul.menu li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.tpc-footer__legal ul.menu li:not(:last-child)::after {
  content: '|';
  color: rgba(255, 255, 255, 0.5);
}

.tpc-footer__powered {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* The background keeps its own shape: full width (never narrower than the
   1366px design, so a phone shows its middle rather than a squeezed strip),
   anchored to the bottom, leaving the heading area above it plain.
   It used to be 100% × 79% of the section, which stretched it to whatever
   shape the section had — a third wider on a 1920 screen, a tenth as wide
   on a phone. Important: the block sets "cover" inline. */
.featured-catagory {
  background-size: max(100%, 1366px) auto !important;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.cta-bg {
  background-image: url('./assets/images/cta-background.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
}

.cta-bg p {
  max-width: 48%;
  margin-inline: 0 !important;
}

.catagory-grid h3 {
  font-family: 'IBM Plex Sans', sans-serif;
}

/* ----------------------------------------- About Us Page ------------------------------------------------ */
.about-us-hero {
  background-image:
    linear-gradient(270deg, #050308 67.06%, rgba(5, 3, 8, 0) 146.41%),
    url('./assets/images/about-us-bg.webp');
  background-repeat: no-repeat;
  background-blend-mode: lighten;
  background-position: right;
}

.our-mission {
  background-image:
    linear-gradient(106.27deg, rgba(192, 0, 0) -366.36%, #f9f9f9 64.38%),
    url('./assets/images/our-mission-bg.webp');
  background-repeat: no-repeat;
  background-blend-mode: color;
  background-position: right;
}

.global-reach {
  box-shadow: 0px 0px 4px 0px #00000033;
}

.global-reach p {
  text-align: center;
}

/* -------- authorized network ------- */
.authorised-network {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-inline: auto;
}

.authorised-network::before,
.authorised-network::after {
  content: '';
  position: absolute;
  width: 613px;
  height: 410px;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.authorised-network::before {
  top: 0;
  left: 0;
  background-image: url('./assets/images/networt-top-bg.webp');
}

.authorised-network::after {
  right: 0;
  bottom: 0;
  background-image: url('./assets/images/networt-bottom-bg.webp');
}

.authorised-network .heading-line {
  gap: 64px;
}

.authorised-network .heading-line--left::before {
  background: linear-gradient(-90deg, #c00000 25%, #ffffff 100%);
  border-image-source: linear-gradient(-90deg, #c00000 25%, #ffffff 100%);
}

.authorised-network .heading-line--left::after {
  background: linear-gradient(90deg, #c00000 25%, #ffffff 100%);
  border-image-source: linear-gradient(90deg, #c00000 25%, #ffffff 100%);
}

.authorised-network .clickable-card h3 {
  font-family: 'IBM Plex Sans', sans-serif;
}

.authorised-network .clickable-card p {
  text-align: center;
}

.authorised-network .network-wrapper {
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.authorised-network .clickable-card a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
}

/* -------- Track parts advantage -------- */
.trp-advantage {
  background-image: url('./assets/images/trp-advantage-bg.webp');
  background-repeat: no-repeat;
  background-size: 100% 90%;
  background-position: bottom;
}

.trp-advantage h3 {
  font-family: 'IBM Plex Sans', sans-serif;
}

.advantage-grid {
  gap: 30px 0 !important;
}

/* ------- Logo marquee ------ */
.logo-marquee {
  overflow: hidden;
  width: 100%;
  border-color: #dfdfdf;
  border-top: 1px solid;
  border-bottom: 1px solid;
}

.logo-marquee .swiper {
  overflow: hidden;
  padding-block: 15px;
}

.logo-marquee .swiper-wrapper {
  align-items: center;
  transition-timing-function: linear !important;
}

.logo-marquee .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc((100% - 320px) / 6) !important;
  flex-shrink: 0;
}

.logo-marquee .swiper-slide .wp-block-image {
  margin: 0;
}

.logo-marquee .swiper-slide img {
  display: block;
  width: auto;
  max-height: 100px;
}

@media (max-width: 1024px) {
  .logo-marquee .swiper-slide {
    width: calc((100% - 96px) / 4) !important;
  }
}

@media (max-width: 639px) {
  .logo-marquee .swiper-slide {
    width: calc((100% - 24px) / 2) !important;
  }
}

/* ----------------------------------- Industries Served ----------------------------------- */

.industries-served-hero h1 span {
  display: block;
}

.industries-served-hero p {
  width: 42%;
  margin-inline: 0 !important;
}

.global-impact-grid {
  z-index: 1;
  position: relative;
}

.global-impact-grid .supplier-hover {
  cursor: default;
}

/* The photo at the top of each card, held to the design's 369 × 201 shape and
   trimmed to fit, the same way the product cards treat theirs. An image of
   another shape used to set its own height — a 1702 × 488 upload made one
   card 106px tall beside 201px neighbours. Correctly sized images look no
   different. The recommended upload is in inc/image-specs.php.

   Only the image that is a direct child of the card: the industry icon
   further down is nested deeper and keeps its own size. */
.global-impact-grid .supplier-hover>.wp-block-image {
  width: 100%;
}

.global-impact-grid .supplier-hover>.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 369 / 201;
  object-fit: cover;
}

.priority-inventory.global-impact::before {
  background-image: url('./assets/images/global-impact-top-bg.webp');
}

.priority-inventory.global-impact::after {
  background-image: url('./assets/images/global-impact-bottom-bg.webp');
}

.industries-served .cta-bg {
  background-image: url('./assets/images/industries-cta.webp');
}

/* ------------------------------------------- Brands --------------------------------------- */
.brands-hero .red-button-flip {
  max-width: 555px !important;
  margin-inline: 0 !important;
}

.brands-hero h1 {
  width: 75%;
  margin-inline: 0 !important;
}

.brands-hero p:not(.red-button-flip) {
  width: 64%;
  margin-inline: 0 !important;
}

.work-row>div {
  flex: 1;
}

/* ---------------------------------------- Contact Us Page ----------------------------------- */
.contact-us-hero p {
  width: 50%;
  margin-inline: 0 !important;
}

.get-in-touch {
  background: linear-gradient(107.12deg,
      rgba(192, 0, 0, 1) -339.2%,
      #f9f9f9 43.31%);
}

.get-in-touch-address address {
  font-style: normal;
}

.get-in-touch-container {}

.tpc-contact-address {
  font-style: normal;
}

.contact-details {
  flex: 0 0 44%;
}

.contact-details h2 {
  width: 90%;
}

.contact-form {
  flex: 0 0 55%;
}

/* ---------------------------- */
.tpc-contact-item p a {
  transition: color 0.3s ease-in-out;
}

.tpc-contact-item p a:hover {
  color: #c00000;
  transition: color 0.3s ease-in-out;
}

.address-label figure {
  display: inline-flex;
}

/* ------- contact form ------ */
.contact-form {
  background: #f9f9f9;
  border: 1px solid #dfdfdf;
  border-radius: 20px;
  padding: 36px 32px 60px;
  max-width: 640px;
}

.contact-form .wpcf7-form label {
  display: block;
  font-weight: 500;
  font-size: 16px;
  color: #050308;
}

.contact-form .wpcf7-form .required {
  color: #c00000;
}

.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form input[type='tel'],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dfdfdf;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  box-sizing: border-box;
  margin-top: 11px;
}

.contact-form input.wpcf7-form-control:not([type='submit']):focus,
.contact-form select.wpcf7-form-control:focus,
.contact-form textarea.wpcf7-form-control:focus {
  border-color: #dfdfdf;
}

.contact-form textarea {
  height: 115px;
  resize: none;
}

.contact-form .form-field {
  margin-bottom: 20px;
  position: relative;
}

.wpcf7-not-valid-tip {
  position: absolute;
  right: 0;
  bottom: -20px;
}

/* Two fields side by side per row */
.contact-form .form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 0;
}

.contact-form .form-row .form-field {
  flex: 1;
}

.contact-form .form-submit {
  margin-bottom: 0;
}

.contact-form .form-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
}

.contact-form .form-submit input[type='submit'] {
  display: inline-block;
  background: #c00000;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 33px;
  text-decoration: none;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  margin-left: 72px;
}

.contact-form .form-submit input[type='submit']:hover {
  background: #d50606;
}

.contact-form select {
  color: #999999;
}

.contact-form select option {
  color: #050308;
}

.contact-form select option:first-child {
  color: #999999;
}

/* ------------------------------------- */
.official-distributor {
  border-style: dashed;
}

/* --------- FAQ ---------- */
.faq-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-inline: auto;
}

.faq-section::before,
.faq-section::after {
  content: '';
  position: absolute;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.faq-section::before {
  width: 459px;
  height: 454px;
  top: 0;
  left: 0;
  background-image: url('./assets/images/faq-top-bg.webp');
}

.faq-section::after {
  width: 422px;
  height: 459px;
  right: 0;
  bottom: 0;
  background-image: url('./assets/images/faq-bottom-bg.webp');
}

.faq-section h2 {
  position: relative;
  z-index: 1;
}

.faq-accordion {
  z-index: 1;
  position: relative;
  max-width: 1030px;
}

.faq-accordion .accordion-item {
  overflow: hidden;
}

.faq-accordion .accordion-item h3 {
  font-family: 'IBM Plex Sans', sans-serif;
}

.accordion-panel {
  margin: 0;
}

/* Make the icon container a perfect circle */
.faq-accordion .wp-block-accordion-heading__toggle-icon {
  font-size: 0 !important;
  /* hide the default + */
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0px 0px 4px 0px #00000026;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  position: relative;
}

/* Insert your SVG */
.faq-accordion .wp-block-accordion-heading__toggle-icon::before {
  content: '';
  width: 14px;
  height: 7px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='7' viewBox='0 0 14 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 7L7 0L14 7H0Z' fill='%23797979'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}

/* Rotate when the accordion is open */
.faq-accordion .wp-block-accordion-item.is-open>.wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
  transform: rotate(180deg);
}

.faq-accordion .wp-block-accordion-item.is-closed>.wp-block-accordion-heading {
  transition: background-color 0.25s ease;
}

.faq-accordion .wp-block-accordion-item.is-open>.wp-block-accordion-heading {
  background-color: #c000001a !important;
  transition: background-color 0.25s ease;
}

/* ------------------------------- Spare Parts Listing ------------------------------- */
#primary.tpc-listing {
  margin: 10px 0;
}

.tpc-listing__inner {
  max-width: 1173px;
  margin-inline: auto;
  width: 100%;
}

.tpc-listing__filter-band {
  padding: 0 0 24px;
}

/* ----- search band (template-parts/product/filter-bar.php) ----- */
.tpc-filter-bar {
  background: #fdeaea;
  border: 0.6px solid #c000004d;
  border-radius: 15px;
  padding: 15px 15px;
}

.tpc-filter-bar__title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #c00000;
  margin: 0 0 6px;
}

.tpc-filter-bar__intro {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #050308;
  margin: 0 0 18px;
}

.tpc-filter-bar__label {
  display: block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: #c00000;
  margin-bottom: 8px;
}

.tpc-filter-bar__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tpc-filter-bar__search {
  flex: 1 1 auto;
  min-width: 0;
}

.tpc-filter-bar__glass {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #c00000;
  pointer-events: none;
  z-index: 1;
}

/* Important where Astra's own input[type=search] rules otherwise win. */
.tpc-filter-bar__input {
  width: 100%;
  height: 40px !important;
  padding: 0 64px 0 40px !important;
  border: 1px solid #ececec !important;
  border-radius: 4px !important;
  background: #fff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  line-height: 40px;
  color: #050308;
}

.tpc-filter-bar__input::placeholder {
  color: #9a9a9a;
}

.tpc-filter-bar__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.tpc-filter-bar__input:focus {
  outline: none;
  border-color: #c00000 !important;
}

.tpc-filter-bar__clear,
.tpc-filter-bar__toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #797979;
  cursor: pointer;
  text-decoration: none;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.tpc-filter-bar__clear {
  right: 36px;
}

.tpc-filter-bar__toggle {
  right: 8px;
}

.tpc-filter-bar__clear:hover,
.tpc-filter-bar__clear:focus-visible,
.tpc-filter-bar__toggle:hover {
  color: #c00000;
  background: #fdeaea;
}

.tpc-picker.is-open .tpc-filter-bar__toggle svg,
.tpc-picker.is-open .tpc-rfq-picker__toggle svg {
  transform: rotate(180deg);
}

.tpc-filter-bar__submit {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: #c00000;
  color: #fff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.tpc-filter-bar__submit:hover,
.tpc-filter-bar__submit:focus-visible {
  background: #d50606;
  color: white;
}

@media (max-width: 639px) {
  .tpc-filter-bar__row {
    flex-direction: column;
    align-items: stretch;
  }

  .tpc-filter-bar__submit {
    width: 100%;
  }
}

/* ----- part picker (assets/js/part-search.js) -----
   Shared by the search band and the RFQ item rows. The list is virtual: rows
   are absolutely placed inside a spacer as tall as the whole list, so their
   height is fixed — keep it in step with ROW_H in part-search.js. */
.tpc-picker {
  position: relative;
  display: block;
}

.tpc-picker__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(5, 3, 8, 0.12);
  overflow: hidden;
  text-align: left;
}

.tpc-picker__panel[hidden] {
  display: none;
}

.tpc-picker__status {
  padding: 12px 14px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #797979;
}

.tpc-picker__viewport {
  position: relative;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tpc-picker__spacer {
  position: relative;
}

.tpc-picker__option {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  padding: 7px 14px 7px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  border-left: 3px solid transparent;
  font-family: 'IBM Plex Sans', sans-serif;
}

.tpc-picker__option[hidden] {
  display: none;
}

/* Short lists (brands, models…): one line per row. ROW_H_COMPACT in JS. */
.tpc-picker__panel--compact .tpc-picker__option {
  height: 40px;
  padding-top: 0;
  padding-bottom: 0;
}

.tpc-picker__panel--compact .tpc-picker__option .tpc-picker__meta {
  display: none;
}

.tpc-picker__option:hover,
.tpc-picker__option.is-active {
  background: #fff3f3;
}

.tpc-picker__option.is-active {
  border-left-color: #c00000;
}

/* .tpc-picker prefix: on the RFQ form the picker sits in a .tpc-field, whose
   `.tpc-field span span` rule (CF7 tips) would otherwise pin these spans to
   the right edge. */
.tpc-picker .tpc-picker__name,
.tpc-picker .tpc-picker__meta,
.tpc-picker .tpc-picker__pn,
.tpc-picker .tpc-picker__cat {
  position: static;
}

.tpc-picker__name,
.tpc-picker__meta {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpc-picker__name {
  font-size: 14px;
  line-height: 20px;
  color: #050308;
}

.tpc-picker__meta {
  font-size: 12px;
  line-height: 16px;
  color: #797979;
}

.tpc-picker__pn:not(:empty)+.tpc-picker__cat:not(:empty)::before {
  content: '\00b7';
  margin: 0 6px;
}

.tpc-picker mark {
  background: transparent;
  color: #c00000;
  font-weight: 600;
  padding: 0;
}

/* A row whose content is still on its way from the worker. */
.tpc-picker__option.is-loading .tpc-picker__name,
.tpc-picker__option.is-loading .tpc-picker__meta {
  height: 10px;
  border-radius: 3px;
  background: #f0f0f0;
}

.tpc-picker__option.is-loading .tpc-picker__name {
  width: 60%;
  margin-bottom: 4px;
}

.tpc-picker__option.is-loading .tpc-picker__meta {
  width: 35%;
}

.tpc-picker__footer {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: 0;
  border-top: 1px solid #eee;
  border-radius: 0;
  background: #fff;
  color: #c00000;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.tpc-picker__footer:hover {
  background: #fff3f3;
}

.tpc-picker__footer[hidden],
.tpc-picker__list[hidden] {
  display: none;
}

/* OTHERS: pinned under the rows, outside the scrolling list, so it is always
   in reach — including when nothing matches. */
.tpc-picker__others {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 7px 14px 7px 16px;
  border-top: 1px solid #eee;
  border-left: 3px solid transparent;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
}

.tpc-picker__others .tpc-picker__name {
  font-weight: 600;
  color: #c00000;
}

.tpc-picker__others:hover,
.tpc-picker__others.is-active {
  background: #fff3f3;
}

.tpc-picker__others.is-active {
  border-left-color: #c00000;
}

/* ----- breadcrumb ----- */
.tpc-breadcrumb {
  margin: 20px 0 22px;
}

.tpc-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpc-breadcrumb__item {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: #797979;
}

/* Separator chevron from the design, as a data URI so no markup is needed.
   The '#' of the fill colour must be escaped to %23 inside a data URI. */
.tpc-breadcrumb__item+.tpc-breadcrumb__item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 8px;
  margin-right: 8px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='8' viewBox='0 0 6 8' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.995643 7.99985L-0.0000378746 6.99555L3.01286 4.00851L0.0258231 0.995604L1.03012 -0.0000764299L5.01285 4.01713L0.995643 7.99985Z' fill='%23797979'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.tpc-breadcrumb__item a {
  color: #797979;
  text-decoration: none;
}

.tpc-breadcrumb__item a:hover {
  color: #c00000;
}

.tpc-breadcrumb__item.is-current {
  color: #c00000;
  font-weight: 500;
}

/* ----- two column body ----- */
.tpc-listing__layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 70px;
}

/* ----- category panel ----- */
.tpc-category-panel {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 12px;
  box-shadow: 5px 5px 10px 0px #0000001a;
  padding: 22px 0;
}

.tpc-category-panel__heading {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: #050308;
  margin: 0 0 12px;
  padding: 0 0 20px 20px;
  border-bottom: 1px solid #dfdfdf;
}

.tpc-category-panel__list {
  margin: 0;
  padding: 0 20px;
  list-style: none;
}

.tpc-category-panel__item {
  margin: 0 0 2px;
  overflow: hidden;
  border-radius: 8px;
}

.tpc-category-panel__item a {
  display: block;
  position: relative;
  padding: 11px 16px;
  border-radius: 8px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  color: #797979;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

.tpc-category-panel__item a:hover {
  background: #fff4f4;
  color: #c00000;
}

.tpc-category-panel__item.is-active a {
  background: #fff4f4;
  color: #c00000;
  font-weight: 600;
}

.tpc-category-panel__item.is-active a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 8px;
  background: #c00000;
}

.tpc-category-panel__wrapper .tpc-rfq__card {
  margin-top: 20px;
  padding: 20px 26px;
}

.tpc-category-panel__wrapper .tpc-rfq__card-title {
  font-size: 16px;
}

.tpc-category-panel__wrapper .tpc-rfq__card-list {
  font-size: 16px;
  line-height: 24px;
  color: #050308;
  margin: 0;
}

/* ----- banner ----- */
.tpc-listing__banner {
  margin: 0 0 22px;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.tpc-listing__banner img {
  width: 100%;
  height: 244px;
  object-fit: cover;
  display: block;
}

/* ----- product grid ----- */
.tpc-listing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* The carousel gets its chrome from .tpc-swiper-slide; the grid card needs
   its own, but reuses every .tpc-card__* rule underneath. */
.tpc-product-card {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition:
    box-shadow 0.25s ease-in-out,
    border-color 0.25s ease-in-out;
}

.tpc-product-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

/* Hovering a card shows the same red border as selecting it. */
.tpc-product-card:hover,
.tpc-product-card.is-selected {
  border-color: #c00000;
  box-shadow:
    0 0 0 1px #c00000,
    0 4px 18px rgba(192, 0, 0, 0.14);
}

/* The caption is absolutely positioned against its wrapper. The carousel card
   gets a containing block for free from the Gutenberg wp-block-group classes it
   inherited; this plain markup doesn't, so state it explicitly. Applied to the
   shared class so both cards anchor the caption to the image, not the card. */
.tpc-card__image-wrap {
  position: relative;
}

/* Card typography, sized from the design. Scoped to .tpc-product-card so the
   homepage carousel, which shares the .tpc-card__* rules, is left alone. */
.tpc-product-card .tpc-card__image {
  height: 220px;
}

.tpc-product-card .tpc-card__image img {
  max-height: 220px;
}

.tpc-product-card .tpc-card__caption {
  /* Same fixed-height treatment as the base rule, at this card's own size:
     two 22px lines plus the same generous vertical breathing room the
     12px padding used to give it. */
  height: 68px;
  padding: 0 16px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
}

.tpc-product-card .tpc-card__body {
  padding: 16px 16px 0;
}

.tpc-product-card .tpc-card__title {
  font-size: 17px;
  line-height: 24px;
  margin: 0 0 14px;
}

.tpc-product-card .tpc-card__meta {
  font-size: 13px;
  line-height: 18px;
  margin: 0 0 10px;
}

.tpc-product-card__image-link {
  display: block;
  line-height: 0;
}

.tpc-product-card .tpc-card__title a {
  color: inherit;
  text-decoration: none;
}

.tpc-product-card .tpc-card__title a:hover {
  color: #c00000;
}

.tpc-product-card .tpc-card__link {
  padding: 0 18px 20px 15px;
}

.tpc-product-card .tpc-enquire-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  transition: color 0.25s ease-in-out;
}

.tpc-product-card .tpc-enquire-trigger:hover {
  color: #c00000;
}

.tpc-product-card .tpc-enquire-trigger svg {
  transition: transform 0.25s ease-in-out;
}

.tpc-product-card .tpc-enquire-trigger:hover svg {
  transform: translateX(4px);
}

/* ----- selection checkbox ----- */
.tpc-product-card__select {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  line-height: 0;
}

.tpc-select-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1px solid #dfdfdf;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.tpc-select-checkbox:hover {
  border-color: #c00000;
}

/* Astra injects an inline rule — input[type="checkbox"]:checked (and the
   :hover/:focus variants) set to its own blue — which out-specifies a plain
   class selector. Matched here at higher specificity so the tick is brand red. */
.tpc-product-card__select input[type='checkbox'].tpc-select-checkbox:checked,
.tpc-product-card__select input[type='checkbox'].tpc-select-checkbox:hover:checked,
.tpc-product-card__select input[type='checkbox'].tpc-select-checkbox:focus:checked {
  background-color: #c00000;
  border-color: #c00000;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5L4.5 8.5L11 1.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.tpc-select-checkbox:focus-visible {
  outline: 2px solid #c00000;
  outline-offset: 2px;
}

/* Locked off once five parts are selected. Same element+attribute specificity
   as the :checked rule above, for the same reason — Astra's own
   input[type="checkbox"] rules out-specify a plain class selector. */
.tpc-product-card__select input[type='checkbox'].tpc-select-checkbox:disabled,
.tpc-product-card__select input[type='checkbox'].tpc-select-checkbox:disabled:hover {
  border-color: #e4e4e4;
  background-color: rgba(255, 255, 255, 0.7);
  opacity: 0.5;
  cursor: not-allowed;
}

/* ----- empty state ----- */
.tpc-listing__empty {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 8px;
  padding: 60px 30px;
  text-align: center;
}

.tpc-listing__empty h2 {
  font-family: 'Oxanium', sans-serif;
  font-size: 24px;
  margin: 0 0 8px;
}

.tpc-listing__empty p {
  color: #797979;
  margin: 0 0 24px;
}

/* ----- pagination ----- */
.tpc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 40px 0 0;
}

.tpc-pagination__list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpc-pagination__item .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #797979;
  border-radius: 4px;
  background: #fff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: #797979;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

.tpc-pagination__item .page-numbers:hover {
  border-color: #c00000;
  color: #c00000;
}

/* The design marks the current page with a red outline, not a red fill. */
.tpc-pagination__item .page-numbers.current {
  background: #fff;
  border-color: #c00000;
  color: #c00000;
  font-weight: 600;
}

.tpc-pagination__item .page-numbers.dots {
  border-color: transparent;
}

.tpc-pagination__goto {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  color: #050308;
}

/* Astra styles inputs via input[type=...], which out-specifies a bare class,
   so the element selector is included to win the cascade. */
input[type='number'].tpc-pagination__goto-input {
  width: 30px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid #797979;
  border-radius: 4px;
  background: #797979;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type='number'].tpc-pagination__goto-input:focus {
  outline: none;
  border-color: #050308;
  background: #050308;
  color: #fff;
}

/* Hide the number spinners so the box stays a clean square. */
.tpc-pagination__goto-input::-webkit-outer-spin-button,
.tpc-pagination__goto-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ----- multi-select enquiry bar ----- */
.tpc-selection-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 90;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.tpc-selection-bar[hidden] {
  display: none;
}

.tpc-selection-bar__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 999px;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.16);
  padding: 10px 14px 10px 26px;
}

.tpc-selection-bar__count {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #c00000;
  white-space: nowrap;
}

.tpc-selection-bar__submit {
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  padding: 10px 26px;
  white-space: nowrap;
}

.tpc-selection-bar__submit:hover {
  background: #d50606;
  color: #fff;
}

/* Needs two or more parts before it does anything. */
.tpc-selection-bar__submit.is-disabled {
  background: #dfdfdf;
  color: #8a8a8a;
  cursor: not-allowed;
  pointer-events: none;
}

.tpc-selection-bar__clear {
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #fff;
  padding: 9px 22px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #797979;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.tpc-selection-bar__clear:hover {
  color: #050308;
}

/* ----- high-demand strip ----- */
.tpc-high-demand {
  /* Background comes from .priority-inventory, shared with the homepage
     section: the two diagonal corner graphics. */
  padding: 64px 0 60px;
}

/* Keep the content above those decorative corners. */
.tpc-high-demand .tpc-listing__inner,
.tpc-high-demand .tpc-swiper-container {
  position: relative;
  z-index: 1;
}

/* Gutenberg's .is-layout-constrained rule puts `margin: auto` on the card's
   inner blocks. .tpc-card is a column flex container, and on a flex item an
   auto inline margin makes the item shrink-wrap to its content and centre
   rather than fill — so the image and caption sit inset from the card edges,
   most visibly on products with no featured image.

   Applied to the card itself rather than one section, because the markup is
   shared by the homepage carousel and the Spare Parts strip and both are
   affected. It can only ever make the media fill its card, never shrink it. */
.tpc-card__media,
.tpc-card__image-wrap,
.tpc-card__image {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  align-self: stretch;
}

/* Cards sit on the same 1173px grid as the heading above them, as in the
   design — only the striped background runs full bleed. */
.tpc-high-demand .tpc-swiper-container {
  max-width: 100%;
}

.tpc-high-demand__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.tpc-high-demand__title {
  font-family: 'Oxanium', sans-serif;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0;
  color: #050308;
}

.tpc-high-demand__intro {
  max-width: 430px;
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  color: #797979;
}

/* Prev/next arrows, same as the homepage carousel: .tpc-swiper-shell's default
   45px | 1fr | 45px grid (style.css above) is left to apply here too, rather
   than being collapsed to a single arrow-less column as it was before. */

.tpc-high-demand .tpc-swiper {
  padding-bottom: 46px;
}

/* ------------------------------- Product Detail ------------------------------------ */

.tpc-single__inner {
  max-width: 1173px;
  margin-inline: auto;
  width: 100%;
  padding: 28px 0 80px;
}

.tpc-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.tpc-single__main {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M78.75 39.75C78.75 58.1346 78.75 67.3269 73.0365 73.0365C67.3308 78.75 58.1346 78.75 39.75 78.75C21.3654 78.75 12.1731 78.75 6.4596 73.0365C0.75 67.3308 0.75 58.1346 0.75 39.75C0.75 21.3654 0.75 12.1731 6.4596 6.4596C12.177 0.75 21.3654 0.75 39.75 0.75' stroke='%23797979' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M0.75 41.6996L7.5828 35.7209C9.29543 34.2236 11.513 33.4329 13.7866 33.5089C16.0602 33.585 18.22 34.522 19.8288 36.1304L36.5598 52.8614C37.8581 54.1595 39.5727 54.9579 41.4018 55.1163C43.2309 55.2747 45.0573 54.7828 46.5594 53.7272L47.7255 52.9082C49.8923 51.3863 52.5113 50.6445 55.1543 50.8039C57.7974 50.9633 60.3082 52.0145 62.2764 53.7857L74.85 65.0996' stroke='%23797979' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M44.6836 30.5858L43.7437 33.4016C43.6345 33.7295 43.6188 34.0814 43.6985 34.4177C43.7781 34.7541 43.9498 35.0616 44.1944 35.3058C44.439 35.55 44.7468 35.7212 45.0832 35.8002C45.4197 35.8793 45.7715 35.863 46.0993 35.7533L48.9151 34.8173L53.2675 33.3665C54.6247 32.9141 55.3033 32.6879 55.9429 32.3837C56.6964 32.0215 57.409 31.5796 58.0684 31.0655C58.6261 30.6365 59.1331 30.1295 60.1471 29.1155L75.1036 14.159L76.7299 12.5327C78.0004 11.2333 78.7073 9.48526 78.6971 7.66793C78.6869 5.8506 77.9604 4.11062 76.6754 2.82555C75.3903 1.54049 73.6503 0.81403 71.833 0.80382C70.0156 0.79361 68.2676 1.50047 66.9682 2.77102L65.3419 4.39732M65.3419 4.39732C65.3419 4.39732 65.5447 7.85662 68.5945 10.9064C71.6443 13.9562 75.1036 14.159 75.1036 14.159M65.3419 4.39732L50.3854 19.3538C49.3714 20.3678 48.8644 20.8748 48.4354 21.4325C47.9213 22.0919 47.4794 22.8045 47.1172 23.558C46.813 24.1976 46.5868 24.8762 46.1344 26.2334L44.6836 30.5858M44.6836 30.5858L48.9151 34.8173' stroke='%23797979' stroke-width='1.5'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  background-size: 80px 80px;
  line-height: 0;
}

.tpc-single__main:has(> img) {
  background-image: none;
}

.tpc-single__main img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.tpc-single__main--empty {
  height: 340px;
}

/* Per the design: arrows sit at the outer edges of the image width, with the
   thumbnail track inset between them. The padding reserves that space, so the
   arrows never overlap a thumbnail. */
.tpc-single__thumbs {
  position: relative;
  margin-top: 14px;
  padding: 0 30px;
}

/* Without an explicit width the Swiper box lays itself out at max-content and
   spills the thumbnails across the page instead of clipping them. */
.tpc-single__thumbs .swiper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tpc-single__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #9a9a9a;
  cursor: pointer;
  transition: color 0.25s ease-in-out;
}

.tpc-single__nav:hover {
  color: #c00000;
}

.tpc-single__nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

/* Four thumbnails span the full width of the image above, as in the design.
   Swiper divides the track, so no fixed px width here — at a 470px image that
   works out ~108px each instead of the 91px the arrow columns used to allow. */
.tpc-single__nav--prev {
  left: 0;
}

.tpc-single__nav--next {
  right: 0;
}

.tpc-single__thumb {
  display: block;
  width: 100%;
  /* Keep the 1px border inside the 100px slide instead of overflowing it. */
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #dfdfdf;
  border-radius: 6px;
  overflow: hidden;
  background: none;
  line-height: 0;
  cursor: pointer;
  transition: border-color 0.25s ease-in-out;
}

.tpc-single__thumb img {
  width: 100%;
  height: 62px;
  object-fit: cover;
  display: block;
}

.tpc-single__thumb:hover,
.tpc-single__thumb.is-active {
  border-color: #c00000;
}

.tpc-single__badge {
  display: inline-block;
  background: #fff4f4;
  color: #c00000;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  margin: 0 0 18px;
}

.tpc-single__title {
  font-family: 'Oxanium', sans-serif;
  font-size: 44px;
  line-height: 1.16;
  font-weight: 700;
  color: #050308;
  margin: 0 0 20px;
}

.tpc-single__description {
  color: #6b6b6b;
  font-size: 15px;
  line-height: 26px;
  margin-bottom: 26px;
}

.tpc-single__description p:last-child {
  margin-bottom: 0;
}

.tpc-single__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.tpc-single__actions .tpc-enquire-rfq {
  font-weight: 600;
  color: #ffffff;
}

.tpc-single__actions .tpc-enquire-rfq button:hover {
  background: #d50606;
  color: #ffffff;
  transition: all 0.3s ease-in-out;
}

/* ------------------------------- RFQ / Enquiry ------------------------------------- */

.rfq-hero {
  background-position: center;
  background-size: cover;
}

/* The form sits on a soft tinted field, not flat white. Applied to the block
   itself; the decorative machined-part graphic behind it still needs its asset
   (see notes) and can drop in as a background-image here. */
.rfq-selection-section {
  position: relative;
  max-width: 1173px;
  margin-inline: auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* The tinted field runs the full width; the form inside stays on the grid. */
body.tpc-rfq-page .ast-container:not(.ast-primary-header .ast-container) {
  max-width: 100% !important;
  width: 100% !important;
  padding-inline: 0 !important;
}

body.tpc-rfq-page .site-main {
  background-color: #ffffff;
  /* Two layers: the machined-part graphic sits along the bottom, the pink wash
     fills the rest behind it. First layer listed is the topmost. */
  background-image:
    url('./assets/images/rfq-bg.webp'),
    linear-gradient(303.16deg, #f3e5e5 25.14%, rgba(223, 223, 223, 0) 75.74%);
  background-position:
    bottom center,
    center;
  background-size:
    100% auto,
    cover;
  background-repeat: no-repeat, no-repeat;
}

/* ----- page layout: info sidebar + form card ----- */
.tpc-rfq {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.tpc-rfq__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tpc-rfq__card {
  background: #fff;
  border: 1px solid #dfdfdf;
  border-radius: 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  padding: 20px;
}

.tpc-rfq__card-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  line-height: 18px;
  font-weight: 500;
  color: #c00000;
  margin: 0 0 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

ul.tpc-rfq__card-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 20px;
  color: #050308;
}

.tpc-rfq__card-list li {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.tpc-rfq__card-list li a:not(.red-button):hover {
  color: #c00000;
  transition: all 0.3s ease-in-out;
}

.tpc-rfq__card-list li a address {
  font-style: normal;
  line-height: 24px;
  margin: 0;
}

.tpc-rfq__card li:last-of-type {
  margin-bottom: 0;
}

.tpc-rfq__card:last-of-type {
  background: linear-gradient(135deg,
      rgba(255, 251, 235, 0.9) 0%,
      rgba(254, 242, 242, 0.7) 100%);
  border: 2px dashed #c0000066;
}

.tpc-rfq__card:last-of-type li:last-of-type {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  text-transform: capitalize;
  justify-content: center;
  color: #414141;
}

.tpc-rfq__card:last-of-type li:first-of-type {
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: #050308;
}

.tpc-rfq__card:last-of-type .red-button {
  font-size: 12px;
  padding: 7px 20px;
  color: #ffffff;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-block: 5px;
}

/* Fixed gutter so lines without an icon still align with those that have one.
   Sized to the widest icon (the 17px envelope) and centred, so the four cards
   share one text edge despite their icons differing in size. */
.tpc-rfq__card-icon {
  flex: 0 0 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  color: #c00000;
}

.tpc-rfq__card-icon svg {
  display: block;
  flex: 0 0 auto;
}

.tpc-rfq__main {
  background: #f9f9f9 url('./assets/images/pattern-bg.png') left top no-repeat;
  border: 1px solid #f0eaea;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
  padding: 40px;
  position: relative;
}

.tpc-rfq__main .tpc-rfq-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.tpc-rfq__main .tpc-rfq-privacy {
  width: 100%;
}

.tpc-rfq__main .wpcf7-response-output {
  bottom: -55px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

/* ----- form sections ----- */
.tpc-rfq-section {
  margin-bottom: 26px;
}

.tpc-rfq-section__title {
  font-family: 'Oxanium', sans-serif;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  color: #c00000;
  margin: 0 0 14px;
  gap: 10px;
}

/* Six columns so rows can mix halves and thirds the way the design does. */
.tpc-rfq-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 14px;
}

.tpc-field {
  position: relative;
}

.tpc-field span span {
  position: absolute;
  right: 0;
  bottom: -18px;
}

.tpc-rfq-grid .tpc-field {
  margin: 0;
  min-width: 0;
  grid-column: span 2;
}

.tpc-rfq-grid .tpc-field--2 {
  grid-column: span 2;
}

.tpc-rfq-grid .tpc-field--3 {
  grid-column: span 3;
}

.tpc-rfq-grid .tpc-field--4 {
  grid-column: span 4;
}

.tpc-rfq-grid .tpc-field--full {
  grid-column: 1 / -1;
}

.tpc-rfq-form {}

.tpc-rfq-form label {
  display: block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  line-height: 16px;
  font-weight: 500;
  color: #050308;
  margin-bottom: 10px;
}

.tpc-req {
  color: #c00000;
}

.tpc-rfq-form input[type='text'],
.tpc-rfq-form input[type='email'],
.tpc-rfq-form input[type='tel'],
.tpc-rfq-form input[type='number'],
.tpc-rfq-form select,
.tpc-rfq-form textarea {
  width: 100%;
  border: 1px solid #dfdfdf;
  border-radius: 6px;
  background: #f9f9f9;
  padding: 9px 11px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  line-height: 18px;
  color: #797979;
}

.tpc-rfq-form ::placeholder {
  color: #b3b3b3;
}

.tpc-rfq-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23797979' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 28px;
  cursor: pointer;
}

/* Part Name / OEM Part Number: a text input with the part picker, dressed to
   sit in the row like the selects around it. */
.tpc-rfq-form .tpc-rfq-picker input[type='text'] {
  padding-right: 32px;
}

.tpc-rfq-picker__toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #797979;
  cursor: pointer;
}

.tpc-rfq-picker__toggle:hover {
  color: #c00000;
  background: transparent;
}

/* Astra's Contact Form 7 compatibility sheet has
   .wpcf7 input:not([type=submit]):focus { border-color: var(--ast-border-color) }
   which out-specifies a plain .tpc-rfq-form input:focus — the focused field lost
   its border entirely. Marked important rather than escalating the selector,
   because Astra's rule also wins on source order. */
.tpc-rfq-form input:focus,
.tpc-rfq-form select:focus,
.tpc-rfq-form textarea:focus {
  outline: none;
  border-color: rgb(223, 223, 223) !important;
}

/* An invalid field stays red while focused: this rule is later in the file and
   equally important, so it wins the tie against the focus rule above. */
.tpc-rfq-form input.tpc-invalid:focus,
.tpc-rfq-form select.tpc-invalid:focus,
.tpc-rfq-form textarea.tpc-invalid:focus,
.tpc-rfq-form input.wpcf7-not-valid:focus,
.tpc-rfq-form textarea.wpcf7-not-valid:focus {
  border-color: #ff0000 !important;
}

.tpc-rfq-form textarea {
  height: 100px;
  resize: none;
  border-radius: 10px;
}

/* ----- requirement items ----- */
.tpc-rfq-items__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.tpc-rfq-items__head .tpc-rfq-section__title {
  margin: 0;
}

.tpc-rfq-addmore {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* Figma, RFQ / Enquiry (second frame): the enabled button. */
  border: 1px solid #c00000;
  border-radius: 6px;
  background: #fff4f4;
  padding: 0 13px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #c00000;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  height: 40px;
  line-height: 40px;
}

/* A click leaves the button focused, and Astra's global button:focus rule
   blanks its background and border — it looked disabled until focus moved on.
   Focus keeps the normal look; hover (below) still wins while pointed at. */
.tpc-rfq-addmore:focus {
  border-color: #c00000;
  background: #fff4f4;
  color: #c00000;
}

.tpc-rfq-addmore:focus-visible {
  outline: 2px solid #c00000;
  outline-offset: 2px;
}

/* Border repeated: Astra's button:hover rule would otherwise clear it. */
.tpc-rfq-addmore:hover {
  border-color: #c00000;
  background: #c00000;
  color: #fff;
}

.tpc-rfq-items__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* No overflow clipping: the part picker's list has to drop out of the card. */
.tpc-rfq-item {
  border: 1px solid #dfdfdf;
  border-radius: 10px;
}

.tpc-rfq-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #dfdfdf;
  padding: 8px 12px;
}

.tpc-rfq-item__title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #c00000;
}

.tpc-rfq-item__tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tpc-rfq-item__delete,
.tpc-rfq-item__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #797979;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.tpc-rfq-item__delete:hover {
  color: #c00000;
}

.tpc-rfq-item__toggle svg {
  transition: transform 0.25s ease-in-out;
}

.tpc-rfq-item.is-open .tpc-rfq-item__toggle svg {
  transform: rotate(180deg);
}

.tpc-rfq-item__body {
  padding: 14px 15px 24px;
}

.tpc-rfq-items__error {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #c00000;
}

/* Why "Add More" has gone quiet at the item cap. Not a validation failure, so
   it is stated in the muted note colour rather than the error red. */
.tpc-rfq-items__note {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #797979;
}

/* ----- attachments ----- */
.tpc-rfq-label {
  display: block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #050308;
  margin-bottom: 7px;
}

.tpc-rfq-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Wraps so a chosen filename drops onto its own line instead of being
     squeezed in beside the prompt and pulling it off centre. */
  flex-wrap: wrap;
  gap: 4px 10px;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px dashed #797979;
  border-radius: 10px;
  background: transparent;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.tpc-rfq-drop__inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* Let the prompt shrink before it forces the dashed box to overflow. */
  min-width: 0;
  max-width: 100%;
}

.tpc-rfq-drop__icon {
  display: flex;
  flex: 0 0 auto;
  color: #9a9a9a;
}

.tpc-rfq-drop.is-dragover {
  border-color: #c00000;
  background: #fff4f4;
}

.tpc-rfq-drop__text {
  font-size: 14px;
  line-height: 1.45;
  color: #797979;
  /* One line where there is room, as in the design. Below that it wraps
     rather than overflowing the dashed box, which is what nowrap alone did. */
  white-space: nowrap;
  min-width: 0;
}

@media (max-width: 600px) {
  .tpc-rfq-drop__text {
    white-space: normal;
  }
}

.tpc-rfq-drop__browse {
  color: #c00000;
  font-weight: 600;
  text-decoration: underline;
}

/* At the five-file cap the picker is disabled, so the control must stop looking
   like something that can be clicked. The whole zone loses its pointer too —
   clicking it only restates the limit. */
.tpc-rfq-drop__browse.is-disabled {
  color: #a0a0a0;
  text-decoration: none;
  cursor: default;
}

.tpc-rfq-drop.is-full {
  cursor: default;
}

.tpc-rfq-drop.is-full .tpc-rfq-drop__text {
  color: #a0a0a0;
}

/* Sits on its own full-width line under the prompt once a file is picked;
   long filenames are ellipsised so they can never widen the box. */
.tpc-rfq-drop__name {
  flex: 0 0 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #050308;
  font-weight: 600;
}

/* Empty until a file is chosen — collapse it so it adds no gap. */
.tpc-rfq-drop__name:empty {
  display: none;
}

/* The five CF7 inputs are filled programmatically by rfq-form.js — the visitor
   never touches them, so they are taken out of the layout and the tab order
   entirely. Clicking anywhere on the zone opens the multi-file picker instead. */
.tpc-rfq-drop input[type='file'].tpc-rfq-drop__native,
.tpc-rfq-drop input[type='file'].tpc-rfq-drop__picker {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tpc-rfq-drop {
  cursor: pointer;
}

/* ----- chosen attachments ----- */
.tpc-rfq-drop__name {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
}

.tpc-rfq-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 6px 4px 10px;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #050308;
}

.tpc-rfq-file.is-invalid {
  border-color: #c00000;
  background: #fff4f4;
  color: #c00000;
}

.tpc-rfq-file__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpc-rfq-file__remove {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f0f0;
  color: #797979;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.tpc-rfq-file__remove:hover {
  background: #c00000;
  color: #fff;
}

/* ----- invalid fields -----
   Both our own marking and CF7's own wpcf7-not-valid class, so a server-side
   rejection paints the same red border as a client-side one. The element and
   attribute are named in the selector because Astra's form CSS out-specifies a
   plain class — the same trap that caught the listing checkbox twice. */
.tpc-rfq-form input.tpc-invalid,
.tpc-rfq-form select.tpc-invalid,
.tpc-rfq-form textarea.tpc-invalid,
.tpc-rfq-form input[type='text'].wpcf7-not-valid,
.tpc-rfq-form input[type='email'].wpcf7-not-valid,
.tpc-rfq-form input[type='tel'].wpcf7-not-valid,
.tpc-rfq-form input[type='number'].wpcf7-not-valid,
.tpc-rfq-form textarea.wpcf7-not-valid {
  border-color: #ff0000 !important;
  background-color: #fff8f8;
}

/* ----- actions ----- */
.tpc-rfq-actions {
  text-align: center;
  margin-top: 26px;
}

/* Same problem as the enquiry modal: the submit tag carries .red-button, but
   Astra's CF7 compat CSS zeroes out input[type="submit"] background and
   padding, so the button renders as bare text with the clip-path slicing the
   ends off. Restate it here. */
.tpc-rfq-form input[type='submit'].red-button {
  display: inline-block;
  width: auto;
  background: #c00000;
  color: #ffffff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  /* Wider than the usual 33px: the 10%/90% clip-path bites into the label. */
  padding: 14px 46px;
  border: none;
  border-radius: 0;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.tpc-rfq-form input[type='submit'].red-button:hover {
  background: #d50606;
  color: #ffffff;
}

.tpc-rfq-form .wpcf7-spinner {
  margin: 0 0 0 10px;
}

/* CF7 wraps every control in an inline span; make it block so the fields fill
   their grid cell and stack cleanly under their label. */
.tpc-rfq-form .wpcf7-form-control-wrap {
  display: block;
}

/* Per-field error message, pinned under its own field — the same treatment the
   Contact Us form gets from the global .wpcf7-not-valid-tip rule above, restated
   here because the RFQ grid's rows are tighter. rfq-form.js prints this exact
   markup for the fields CF7 cannot see (the repeater rows), so a client-side
   rejection and a server-side one look identical.
   .tpc-field is the positioning context; the 20px grid row gap is what the
   message sits in, so showing one shifts nothing. */
.tpc-rfq-form .wpcf7-not-valid-tip {
  display: block;
  position: absolute;
  right: 0;
  bottom: -18px;
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: #c00000;
}

/* The dropzone has no fixed-height field row to hang a message under, so its
   message flows beneath it instead of being pinned to a corner. */
.tpc-rfq-form .wpcf7-not-valid-tip.tpc-rfq-tip--block {
  position: static;
  margin-top: 6px;
  text-align: left;
}

/* One problem per line: run together, several complaints wrapped into a single
   block of red text with nothing to show where one ended and the next began. */
.tpc-rfq-form .tpc-rfq-tip--block .tpc-rfq-tip__line {
  display: block;
}

.tpc-rfq-form .tpc-rfq-tip--block .tpc-rfq-tip__line+.tpc-rfq-tip__line {
  margin-top: 4px;
}

.tpc-rfq-form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 10px 14px;
  border-width: 1px;
  border-radius: 4px;
  font-size: 13px;
}

.tpc-rfq-privacy {
  margin: 15px 0 0;
  font-size: 14px;
  color: #797979;
}

/* ------------------------------- 404 ----------------------------------------------- */

/* Full-bleed hero, the same way the homepage releases its container. */
body.error404 .ast-container:not(.ast-primary-header .ast-container) {
  max-width: 100% !important;
  width: 100% !important;
  padding-inline: 0 !important;
}

.tpc-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
  padding: 80px 24px;
  text-align: center;
  /* Light wash only — enough to keep white text legible over the photo.
     Note this stacks with the panel tint on .tpc-404__inner, so keep both low
     or the machinery disappears. */
  background-color: #0b0b0d;
  background-image:
    linear-gradient(rgba(5, 3, 8, 0.35), rgba(5, 3, 8, 0.35)),
    url('./assets/images/404-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 !important;
}

.tpc-404__inner {
  max-width: 820px;
  width: 100%;
  border: 2px solid #c00000;
  background: rgba(0, 0, 0, 0.6);
  padding: 60px 30px;
  border-radius: 15px;
}

/* "404" with the short red rules either side. */
.tpc-404__code {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Design sits the rules close to the digits, not floating away. */
  gap: 12px;
  font-family: 'Oxanium', sans-serif;
  font-size: 90px;
  line-height: 1;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 10px;
}

/* Same fading rule as .heading-line on the homepage banner, mirrored so each
   stripe is solid at the digits and fades away outward.

   Drawn as a background gradient, not border-image: `border: 2px solid` with no
   colour falls back to currentColor — white here — which outlined the bar. */
.tpc-404__code::before,
.tpc-404__code::after {
  content: '';
  display: block;
  width: 70px;
  height: 2px;
  border: 0;
}

/* border: 2px solid;

border-image-source: linear-gradient(
  90deg,
  #c00000 25%,
  rgba(255, 255, 255, 0) 100%
); */

.tpc-404__code::before {
  background: linear-gradient(90deg, #c00000 25%, rgba(255, 255, 255, 0) 100%);
}

.tpc-404__code::after {
  background: linear-gradient(90deg, #c00000 25%, rgba(255, 255, 255, 0) 100%);
}

.tpc-404__title {
  font-family: 'Oxanium', sans-serif;
  font-size: 60px;
  line-height: 80px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 20px;
}

.tpc-404__text {
  max-width: 660px;
  margin: 0 auto 34px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  line-height: 26px;
  color: #ffffff;
}

.tpc-404__button {
  display: inline-block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  padding: 15px 40px;
  text-decoration: none;
}

.tpc-404__button:hover {
  background: #d50606;
  color: #fff;
}

/* Read-only fields are filled from the product, not typed — the design greys
   them so it reads as information rather than an empty input. */
.tpc-enquire-form input[readonly] {
  background: #f1f1f1;
  color: #797979;
  cursor: default;
}

/* ----- Subject field character counter ----- */
.contact-form .form-field--subject {
  position: relative;
}

.contact-form .form-counter {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  line-height: 1;
  color: #c00000;
  pointer-events: none;
}

.contact-form .form-counter.is-full {
  font-weight: 600;
}

/* Room for the counter so long text never runs underneath it. */
.contact-form .form-field--subject textarea {
  padding-bottom: 30px;
}

.contact-form .wpcf7-response-output {
  width: 100%;
  margin-top: 10px !important;
  font-size: 15px;
}

.wpcf7-response-output {
  position: absolute;
}

.wpcf7 form.sent .wpcf7-response-output {
  color: #00ac47;
  font-weight: 500;
  background: #00ac481a;
  border: 1px solid #00ac47;
}

.tpc-selection-bar__help-text {
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  color: #797979;
  margin: 0;
}

/* .wpcf7 form.unaccepted .wpcf7-response-output {
  color: #c00000;
  font-weight: 500;
  background: #c000001a;
  border: 1px solid #c00000;
} */

/* ------ Thank you pages ------- */
.page-template-thankyou-contact .site-content .ast-container,
.page-template-thankyou-inquiry .site-content .ast-container {
  max-width: 1180px;
  width: 100%;
}

.thankyou-contact {
  box-shadow: 0px 0px 4px 0px #c0000066;
  width: 100%;
}

.thankyou-contact p {
  max-width: 620px;
}

.thankyou-list h3 {
  font-family: 'IBM Plex Sans', sans-serif;
}

.thankyou-contact .thankyou-marker {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Legal pages only — class added by tpc_legal_body_class() in functions.php */
.tpc-legal-page .entry-content p {
  margin-bottom: 18px;
}

.wp-block-list li a:hover {
  color: #e53935;
}

.disclaimer-text {
  font-size: 14px;
  line-height: 20px;
  color: #797979;
  background: url('./assets/images/info-icon.png') no-repeat left top;
  padding-left: 24px;
  background-position: 0 2px;
}

.ast-scroll-to-top-right {
  right: 40px;
  bottom: 100px;
}

/* =========================================================================
   MOTION
   Pure CSS. No JS, no animation libraries.

   Rules for anything added below:
   - Animate `transform` and `opacity` only. `box-shadow` is allowed on the
     card lift because it is already transitioned there and is composited
     cheaply at these blur radii; nothing here animates width/height/top/
     left/margin.
   - Durations stay in the 150-400ms band, no infinite loops.
   - Hover effects are wrapped in `@media (hover: hover) and (pointer: fine)`
     so touch devices don't get stuck in a hover state after a tap.
   - Every effect is switched off in the `prefers-reduced-motion` block at
     the bottom of this section. Add new effects ABOVE that block.
   - No `will-change`: the listing grid can hold 50+ cards and promoting all
     of them costs more memory than the transition saves. Transform/opacity
     get composited without the hint.
   ========================================================================= */

/* ----- buttons: lift + press ------------------------------------------- */

/* These four selectors already carried `transition: all 0.3s ease-in-out`.
   Narrowing that to the three properties actually being animated stops the
   browser watching every other property (including clip-path) for changes.
   Colours are unchanged - only the transition list and transform are new.

   .red-button-flip is deliberately NOT in this list. Its class name says
   "button", but every use of it on the site is a plain <p> — the red
   eyebrow label above a heading (e.g. "GLOBAL SUPPLIER OF" on the homepage,
   and the equivalent line on the Brands page), styled to look like a flipped
   ribbon. It shares the class purely for that look; it is never a clickable
   control. Included here, it picked up the lift-on-hover and press-on-click
   motion meant for real buttons, so the label visibly moved whenever a
   visitor's mouse passed over it. */
@media (hover: hover) and (pointer: fine) {

  .red-button,
  .white-button,
  .ast-primary-header .ast-custom-button {
    transition:
      background-color 0.2s ease-in-out,
      color 0.2s ease-in-out,
      transform 0.2s ease-in-out;
  }

  .red-button:hover,
  .white-button:hover,
  .ast-primary-header .ast-custom-button:hover {
    transform: translateY(-2px);
  }
}

/* Press feedback applies on touch too - it's a discrete state, not a hover. */
.red-button:active,
.white-button:active,
.ast-primary-header .ast-custom-button:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

/* Keyboard users get the same affordance as the mouse hover. */
.red-button:focus-visible,
.white-button:focus-visible,
.ast-primary-header .ast-custom-button:focus-visible {
  transform: translateY(-2px);
}

/* ----- product / priority cards: gentle lift --------------------------- */

/* .tpc-product-card already transitions box-shadow and border-color. This
   re-declares the full list so `transform` joins it; the shadow values on
   :hover and .is-selected further up the file are untouched. */
.tpc-product-card {
  transition:
    box-shadow 0.25s ease-in-out,
    border-color 0.25s ease-in-out,
    transform 0.25s ease-in-out;
}

@media (hover: hover) and (pointer: fine) {
  .tpc-product-card:hover {
    transform: translateY(-4px);
  }
}

/* Focus inside the card (title link, enquire button, checkbox) lifts it too,
   so tabbing through the grid tracks the same visual state as the mouse. */
.tpc-product-card:focus-within {
  transform: translateY(-4px);
}

/* ----- card imagery: slow zoom under the clip -------------------------- */

/* .tpc-product-card has overflow:hidden, so the scaled image is cropped by
   the card's rounded corners instead of spilling. .tpc-card__caption is
   absolutely positioned against .tpc-card__image-wrap, not the figure, so it
   stays put while the photo moves behind it. */
.tpc-card__image img {
  transition: transform 0.3s ease-out;
}

@media (hover: hover) and (pointer: fine) {

  .tpc-product-card:hover .tpc-card__image img,
  .tpc-product-card:focus-within .tpc-card__image img {
    transform: scale(1.04);
  }
}

/* ----- opt-in utilities ------------------------------------------------ */

/* Add to any element that should lift on hover but isn't a product card -
   the RFQ cards, category panel items, footer callouts. */
@media (hover: hover) and (pointer: fine) {
  .tpc-lift {
    transition: transform 0.2s ease-in-out;
  }

  .tpc-lift:hover {
    transform: translateY(-3px);
  }
}

.tpc-lift:focus-visible {
  transform: translateY(-3px);
}

/* Add to a wrapper with overflow:hidden around any image that should zoom. */
.tpc-zoom img {
  transition: transform 0.3s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .tpc-zoom:hover img {
    transform: scale(1.04);
  }
}

/* Add to icon-bearing links to nudge the icon forward on hover. Mirrors the
   existing .catagory-button svg behaviour so the two read the same. */
@media (hover: hover) and (pointer: fine) {
  .tpc-nudge svg {
    transition: transform 0.2s ease-in-out;
  }

  .tpc-nudge:hover svg {
    transform: translateX(4px);
  }
}

/* ----- scroll reveal (progressive enhancement) ------------------------- */

/* Scroll-driven animations, no JS and no IntersectionObserver.
   Supported: Chrome/Edge 115+, Safari 26+, Opera 101+.
   NOT supported: Firefox (still behind a flag), Safari 18 and earlier, any
   IE/legacy engine.

   OPT-IN ONLY. These selectors are never auto-applied to page elements: an
   earlier revision attached them to .tpc-listing__grid > .tpc-product-card
   and the grid rendered blank, because the hidden start state applied while
   the timeline never advanced. Anything added here must be a class the
   author attaches deliberately, so a stalled timeline can only ever affect
   an element that was opted in.

   .tpc-reveal on its own sets NO opacity and NO transform, so where the
   timeline isn't supported the element is simply visible in its normal
   position. The hidden start state exists only inside @supports. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tpc-reveal {
      animation: tpc-reveal-rise 0.4s ease-out both;
      animation-timeline: view();
      /* Runs across the element's entry into the viewport and finishes well
         before it is centred, so it never animates under the reader's eye. */
      animation-range: entry 10% cover 30%;
    }

    /* Opacity-only variant for large blocks and full-bleed bands, where a
       translate would read as the section jumping. */
    .tpc-reveal--fade {
      animation-name: tpc-reveal-fade;
    }
  }
}

@keyframes tpc-reveal-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tpc-reveal-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ----- staggered load-in (above-the-fold grids) ------------------------ */

/* Time-based in every browser, for a grid that is visible at load. Don't put
   it on the Spare Parts listing - that grid is handled above, and this would
   delay cards the reader has to scroll to reach. Children past the 8th share
   the 8th's delay rather than getting no animation. */
@media (prefers-reduced-motion: no-preference) {
  .tpc-stagger>* {
    animation: tpc-reveal-rise 0.4s cubic-bezier(0.16, 0.84, 0.44, 1) both;
    animation-delay: 0.24s;
  }

  .tpc-stagger>*:nth-child(1) {
    animation-delay: 0.03s;
  }

  .tpc-stagger>*:nth-child(2) {
    animation-delay: 0.06s;
  }

  .tpc-stagger>*:nth-child(3) {
    animation-delay: 0.09s;
  }

  .tpc-stagger>*:nth-child(4) {
    animation-delay: 0.12s;
  }

  .tpc-stagger>*:nth-child(5) {
    animation-delay: 0.15s;
  }

  .tpc-stagger>*:nth-child(6) {
    animation-delay: 0.18s;
  }

  .tpc-stagger>*:nth-child(7) {
    animation-delay: 0.21s;
  }
}

/* ----- reduced motion --------------------------------------------------
   Must stay LAST in this section. Everything above is either cancelled or
   reduced to an instant state change. Colour and shadow feedback survives,
   so hover and focus affordances remain visible - the movement is what goes.
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

  .red-button,
  .white-button,
  .ast-primary-header .ast-custom-button,
  .tpc-product-card,
  .tpc-card__image img,
  .tpc-lift,
  .tpc-zoom img,
  .tpc-nudge svg {
    transition-duration: 0.01ms;
  }

  .red-button:hover,
  .red-button:active,
  .red-button:focus-visible,
  .white-button:hover,
  .white-button:active,
  .white-button:focus-visible,
  .ast-primary-header .ast-custom-button:hover,
  .ast-primary-header .ast-custom-button:active,
  .ast-primary-header .ast-custom-button:focus-visible,
  .tpc-product-card:hover,
  .tpc-product-card:focus-within,
  .tpc-product-card:hover .tpc-card__image img,
  .tpc-product-card:focus-within .tpc-card__image img,
  .tpc-lift:hover,
  .tpc-lift:focus-visible,
  .tpc-zoom:hover img,
  .tpc-nudge:hover svg {
    transform: none;
  }

  /* Reveal and stagger are already gated behind
     `prefers-reduced-motion: no-preference`, so they never start. This is the
     belt-and-braces stop for anything that slips past that gate. */
  .tpc-reveal,
  .tpc-stagger>* {
    animation: none;
    opacity: 1;
    transform: none;
  }
}