/* Unavailable purchase buttons stay muted and still on hover and press. */
.btn[data-atc]:disabled {
  background: #d0d0d0;
  color: #fff;
  border-color: transparent;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  transition: none;
}

/* Six complete thumbnails plus a glimpse of the next media item. */
.gallery {
  align-items: start;
}
.gallery__rail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gallery__rail--scroll .gallery__thumbs {
  height: calc(6 * 76px + 6 * 10px + 22px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.gallery__thumbs::-webkit-scrollbar {
  display: none;
}
.gallery__thumbs button:focus-visible {
  outline-offset: -4px;
}
.gallery__scroll {
  display: grid;
  place-items: center;
  width: 76px;
  height: 28px;
  color: var(--ink);
  border-radius: var(--radius-btn);
  background: var(--grey);
}
.gallery__scroll:hover:not(:disabled) {
  background: var(--line);
}
.gallery__scroll:disabled {
  opacity: .3;
  cursor: default;
}
@media (max-width: 640px) {
  .gallery__rail {
    order: 2;
    overflow: hidden;
  }
  .gallery__rail--scroll .gallery__thumbs {
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .gallery__scroll {
    display: none;
  }
}

/* The selected 360 item loads directly inside the main product gallery. */
.gallery__slide {
  position: absolute;
  inset: 0;
}
.gallery__slide[hidden],
.gallery__zoom[hidden],
.gallery__3d-preview[hidden],
.modal__nav[hidden] {
  display: none;
}
.gallery__slide > img {
  opacity: 1;
  position: absolute;
}
.gallery__partner-badge {
  position: absolute;
  top: 0;
  left: 12px;
  width: clamp(61.2px, 11.9%, 85px);
  z-index: 2;
  pointer-events: none;
}
.gallery__partner-badge > svg {
  clip-path: polygon(0 0, 100% 0, 100% 77.6%, 50% 100%, 0 77.6%);
  display: block;
  width: 100%;
  height: auto;
  position: static;
  inset: auto;
  opacity: 1;
  transition: none;
}
.gallery__thumbs .gallery__3d-thumb,
.gallery__3d-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
}
.gallery__3d-thumb .gallery__3d-poster,
.gallery__3d-preview .gallery__3d-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: blur(1px);
}
.gallery__3d-thumb .gallery__3d-poster {
  filter: blur(.4px);
}
.gallery__3d-thumb::after,
.gallery__3d-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--grey) 55%, transparent);
  z-index: 1;
  pointer-events: none;
}
.gallery__360-icon {
  display: block;
  width: 60px;
  height: auto;
  position: relative;
  z-index: 2;
  flex: none;
}
.gallery__3d-preview {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.gallery__3d-prompt {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}
.gallery__3d-prompt .gallery__360-icon {
  width: 136px;
}
.gallery__3d-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.gallery__3d-frame.is-loaded {
  opacity: 1;
  pointer-events: auto;
}
.gallery__main:has([data-gallery-media='3d']:not([hidden])) .gallery__cap {
  bottom: 80px;
}
.has-gallery-lightbox {
  overflow: hidden;
}
.modal--media {
  width: min(1100px, 92vw);
  height: min(880px, 86dvh);
  max-height: 86dvh;
  overflow: hidden;
}
/* Fit the white photo frame to the original image without cropping. */
.modal--media.modal--image {
  width: min(1100px, 92vw, calc(min(880px, 86dvh) * var(--lightbox-ratio)));
  height: auto;
  aspect-ratio: var(--lightbox-ratio);
}
.modal__media {
  position: relative;
  width: 100%;
  height: 100%;
}
.modal--media .gallery__slide > img {
  height: 100%;
  max-height: none;
}
.modal--media .modal__close {
  background: rgba(255,255,255,.92);
}
.modal--media .modal__count {
  font-size: 16px;
}
@media (prefers-reduced-motion: reduce) {
  .modal--media[open] {
    animation: none;
  }
}
.draft-product-image { min-height: 360px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); background: var(--white); }
.draft-product-image .ic { width: 56px; height: 56px; }

[data-cart-calculating] {
  white-space: nowrap;
}
[data-cart-calculating]::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  vertical-align: -1px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: cart-calculating .7s linear infinite;
}
.cart-update-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@keyframes cart-calculating {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  [data-cart-calculating]::after { animation: none; }
}

/* A standalone Shopify collection uses the full approved product grid. */
.pdp-highlight-image { object-fit: contain; }

/* Completed dimensions artwork is displayed without an SVG overlay. */
.equipment-image img { display: block; width: 100%; height: auto; object-fit: contain; }

.specs-layout--equipment-only { grid-template-columns: minmax(0, 480px); }
.page-manuals .manual-group {
  scroll-margin-top: 24px;
}

/* Keep the approved XF Connect composition and its interface fully visible. */
.page-app .page-head__media { height: auto; min-height: 0; align-self: center; aspect-ratio: auto; }
.page-app .page-head__media > img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }

/* Buying Guides heading uses the same 20px space above, below, and before its lead. */
.page-buying-guides .page-head--tight { padding-block: 20px; }
.page-buying-guides .page-head__row .lead { margin-top: 20px; }
/* Start the first content block directly after its heading or breadcrumb. */
:is(.page-buying-guides, .page-compare, .page-search) .page-head + .section.section--tight,
:is(.page-cart, .page-quiz, .page-register) main > .container + .section.section--tight { padding-top: 0; }
/* Align the quiz heading and questions with the shared content edge. */
.page-quiz .quiz { padding-inline: 0; }

/* Find Your Machine: shared product attributes and preference ranking. */
#quiz [hidden] { display: none !important; }
/* A shorter question must not make the browser shift the reading position. */
html:has(#quiz) { overflow-anchor: none; }
.quiz__q, .quiz__results > h1 { scroll-margin-top: 24px; }
#regForm, #regSuccess { scroll-margin-top: 24px; }
.quiz__head .lead { margin-top: 16px; }
.quiz__hint { margin-bottom: 20px; }
.quiz-weight { display: flex; align-items: flex-end; gap: 12px; max-width: 400px; }
.quiz-weight label { display: grid; gap: 8px; min-width: 0; }
.quiz-weight label:first-child { flex: 1; }
.quiz-weight .input { width: 100%; }
.quiz-weight select { min-width: 85px; }
.quiz-skip { margin-top: 18px; }
.quiz-error { color: #b42318; }
.quiz-layout--results { grid-template-columns: minmax(0, 1fr); }
.quiz-layout--results .quiz-side { display: none; }
.quiz-layout--results .quiz { padding-inline: 0; }
.quiz-layout--results .result-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.quiz-layout--results .result { max-width: 520px; min-width: 0; }
/* Keep fewer matches balanced without leaving oversized grid-track gaps. */
.quiz-layout--results .result:only-child { justify-self: center; width: 100%; }
.quiz__results:has(.result-grid > .result:nth-child(2):last-child) { width: 100%; max-width: 1080px; margin-inline: auto; }
.quiz__results:has(.result-grid > .result:nth-child(2):last-child) .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz__results:has(.result-grid > .result:nth-child(2):last-child) .result { max-width: none; }
@media (max-width: 760px) {
  .quiz__results:has(.result-grid > .result:nth-child(2):last-child) .result-grid { grid-template-columns: minmax(0, 1fr); }
}

.quiz__results > .lead { font-size: 22px; }
.quiz__results .prod-card__cat { font-size: 16px; }
.quiz__results .h3 { font-size: 24px; line-height: 1.3; }
.quiz__results .prod-card__price b { font-size: 28px; }
.quiz__results .why { font-size: 18px; line-height: 1.6; gap: 8px; }
.quiz__results .why .ic { width: 18px; height: 18px; flex-shrink: 0; margin-top: 5px; }
.quiz__results .btn { font-size: 18px; min-height: 48px; height: auto; padding: 12px 20px; white-space: normal; text-align: center; line-height: 1.3; }
.quiz__results .input, .quiz__results .link-btn { font-size: 18px; }
.quiz__results .disclaimer, .quiz__results .newsletter__msg { font-size: 16px; line-height: 1.6; }
.quiz-answers { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.quiz-answer { border: 1px solid var(--line); border-radius: 6px; background: var(--grey-1, #f7f8fa); padding: 10px 14px; font: inherit; font-size: 16px; cursor: pointer; text-align: left; }
.quiz-answer span { margin-left: 8px; color: var(--blue); text-decoration: underline; }
.quiz-fit-note { color: var(--muted); font-size: 18px; line-height: 1.6; }
.result__facts { display: grid; gap: 8px; font-size: 18px; line-height: 1.6; color: var(--muted); margin-bottom: 16px; }
.quiz-gap { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.quiz-gap p { margin: 14px 0 20px; }
#quiz .result-foot { align-items: flex-start; }
@media (max-width: 600px) {
  .quiz-layout--results .result-grid { grid-template-columns: 1fr; }
  .quiz-layout--results .result { max-width: none; }
  .quiz-gap { padding: 18px; }
}

/* Shopify campaign prices share the site's product typography. */
.product-offer { display: grid; gap: 6px; margin-top: 10px; font-size: 16px; line-height: 1.4; }
.product-offer__code-price { color: var(--navy); }
.product-offer__code-price strong { font-size: 22px; font-weight: 700; font-synthesis: weight; }
.product-offer__code-price b { white-space: nowrap; }
.product-offer__condition { color: #454a52; }
[data-product-offer] { margin-bottom: 14px; }
[data-product-offer]:empty { display: none; }

.cart-offer { display: block; color: #286343; font-size: 16px; font-weight: 600; line-height: 1.4; }
.cart-gift-quantity { font-size: 16px; color: var(--muted); }
.cart-gift-notice { font-size: 16px; line-height: 1.5; color: var(--muted); margin: 12px 0; }
.cart-drawer__lines + .cart-gift-notice { margin: 12px 24px; }
.cart-gift-notice[hidden] { display: none; }

/* Conditional benefits in the engineering discount preview. */
.demo-benefit-badge { display: inline-flex; align-items: center; padding: 4px 7px; background: var(--red); color: #fff; font-family: var(--font-tech); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .03em; white-space: nowrap; vertical-align: middle; }
.price-discount { color: var(--price-sale); font-family: var(--font-tech); font-size: 16px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.prod-card__price, .buy__price { flex-wrap: wrap; }
.buy h1 + .buy__price { margin-top: 12px; }
/* Rich links remain legible on dark editorial backgrounds. */
.promo-bar .cms-inline-link,
.hero__sub .cms-inline-link,
.intl-cta .cms-inline-link,
.newsletter .cms-inline-link { color: inherit; }
.cms-card-destination:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Shared acknowledgement for personal-data submission forms. */
.privacy-consent {
  font-size: 16px;
  line-height: 1.5;
  margin: 20px 0;
}
.privacy-consent input[type='checkbox'] {
  width: 18px;
  height: 18px;
  padding: 0;
  margin-top: 3px;
  flex: 0 0 18px;
}
.privacy-consent a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.newsletter form {
  flex-wrap: wrap;
}
.newsletter .privacy-consent,
.result-email .privacy-consent {
  order: 1;
  flex-basis: 100%;
  margin: 4px 0 0;
}
.newsletter .privacy-consent a {
  color: inherit;
}
@media (max-width: 640px) {
  .newsletter form > input[type='email'] {
    flex: none;
    width: 100%;
  }
  .newsletter .privacy-consent,
  .result-email .privacy-consent {
    order: 0;
    flex-basis: auto;
    width: 100%;
  }
}

/* Product MP4 files use the same frame as YouTube introductions. */
#about .video-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-media audio{max-width:100%;margin-block:12px}#searchSuggestList .price-was{font-size:14px}#searchSuggestList strong{display:flex;flex-wrap:wrap;gap:6px}

.cd-line__price,.cart-line__price{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px}
.video-media{min-width:0}.video-media [data-description-toggle]{white-space:normal;max-width:100%;text-align:center}

/* Automatic product statuses occupy their own row above the photo. */
.product-badges { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 6px; min-height: 41px; max-width: 100%; margin: 0; padding: 12px 12px 0; list-style: none; }
.product-badges__item { padding: 4px 8px; background: var(--muted); color: var(--white); font-family: var(--font-tech); font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: .025em; max-width: 100%; overflow-wrap: anywhere; }
.product-badges__item--new { background: var(--blue); }
.result > .product-badges { padding: 0; min-height: 29px; }

/* Keep capped quantity buttons focusable so their limit can be explained. */
.qty button[aria-disabled="true"], [data-atc][aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
