/* Responsive catalog controls and preorder header */
@media (max-width: 760px) {
  #xrr-catalog .xrr-filter,
  #xrr-preorder .xrr-filter {
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  #xrr-catalog .xrr-filter button,
  #xrr-preorder .xrr-filter button {
    flex: 1 1 auto;
    padding: 10px 11px !important;
  }

  #xrr-preorder .xrr-header__top span {
    display: none !important;
  }

  #xrr-preorder .xrr-header__top-inner {
    min-height: 30px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  #xrr-preorder .xrr-header__main {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 10px !important;
  }

  #xrr-preorder .xrr-selected-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px !important;
    font-size: 0 !important;
  }

  #xrr-preorder .xrr-selected-link b {
    margin-left: 0 !important;
    font-size: 11px !important;
  }

  #xrr-preorder .xrr-floating {
    display: none !important;
  }
}

@media (min-width: 761px) {
  #xrr-preorder .xrr-floating {
    display: none !important;
  }
}

/* Shared headers and long mobile copy */
@media (max-width: 1450px) and (min-width: 921px) {
  .xrr-corporate .xrr-header__main {
    grid-template-columns: 280px minmax(0, 1fr) auto !important;
    gap: 14px !important;
  }

  .xrr-corporate .xrr-logo {
    width: 270px !important;
  }

  .xrr-corporate .xrr-nav {
    gap: 14px !important;
    font-size: 13px !important;
  }

  .xrr-corporate .xrr-tool--search {
    display: none !important;
  }
}

@media (max-width: 680px) {
  .xrr-corporate .xrr-hero__grid > *,
  .xrr-corporate .xrr-copy-grid > *,
  .xrr-corporate .xrr-contact-grid > * {
    min-width: 0;
  }

  .xrr-corporate h1,
  .xrr-corporate h2,
  .xrr-corporate h3,
  .xrr-corporate p,
  .xrr-corporate a,
  .xrr-corporate strong {
    overflow-wrap: anywhere;
  }

  #xrr-selected-page .xrr-tool--selected {
    min-width: 40px !important;
    padding: 8px !important;
    font-size: 0 !important;
  }

  #xrr-selected-page .xrr-tool--selected .xrr-count {
    font-size: 11px !important;
  }
}


@media (max-width: 680px) {
  #xrr-representation h1 {
    font-size: 31px !important;
  }

  #xrr-selected-page .xrr-header__actions > a[aria-current="page"] {
    min-width: 40px !important;
    padding: 8px !important;
    font-size: 0 !important;
  }

  #xrr-selected-page .xrr-header__actions > a[aria-current="page"] span:first-child {
    display: none !important;
  }

  #xrr-selected-page .xrr-header__actions > a[aria-current="page"] .xrr-count {
    margin-left: 0 !important;
    font-size: 11px !important;
  }
}


@media (max-width: 680px) {
  #xrr-contacts h1 {
    font-size: 34px !important;
  }
}

@media (max-width: 680px) { #xrr-contacts h1 { font-size: 32px !important; } }
@media (max-width: 680px) { #xrr-contacts h1 { font-size: 31px !important; } }

@media (max-width: 1450px) and (min-width: 921px) {
  #xrr-selected-page .xrr-header__main {
    grid-template-columns: 280px minmax(0, 1fr) auto !important;
    gap: 14px !important;
  }

  #xrr-selected-page .xrr-logo {
    width: 270px !important;
  }

  #xrr-selected-page .xrr-nav {
    gap: 14px !important;
    font-size: 13px !important;
  }

  #xrr-selected-page .xrr-tool--search {
    display: none !important;
  }
}


/* Product carousel: keep text, image, and controls in separate zones */
@media (min-width: 621px) {
  #xrr-home .xrr-hero-carousel {
    min-height: 480px;
  }

  #xrr-home .xrr-slide {
    grid-template-columns: minmax(0, 1.15fr) minmax(175px, .85fr);
    gap: 16px;
    padding: 28px 28px 90px;
  }

  #xrr-home .xrr-slide__copy {
    align-self: start;
    padding: 17px 16px 19px;
  }

  #xrr-home .xrr-slide__eyebrow {
    max-width: 100%;
    margin-bottom: 12px;
    line-height: 1.3;
  }

  #xrr-home .xrr-slide h2 {
    font-size: 22px;
    line-height: 1.18;
  }

  #xrr-home .xrr-slide p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-height: 1.45;
  }

  #xrr-home .xrr-slide__visual {
    min-height: 270px;
  }

  #xrr-home .xrr-slide__visual::before {
    inset: 36px 0 34px;
    opacity: .55;
  }

  #xrr-home .xrr-slide__visual img {
    width: min(132%, 300px);
    max-width: none;
    max-height: 275px;
  }

  #xrr-home .xrr-slide__mark {
    display: none;
  }

  #xrr-home .xrr-carousel__controls {
    right: 28px;
    bottom: 20px;
    left: 28px;
    padding-top: 14px;
    border-top: 1px solid rgba(157, 178, 197, .55);
  }
}

#xrr-home .xrr-carousel__arrows button {
  width: 42px;
  height: 42px;
}

#xrr-home .xrr-carousel__dots button:focus-visible,
#xrr-home .xrr-carousel__arrows button:focus-visible {
  outline: 3px solid #8dc5fb;
  outline-offset: 3px;
}

@media (max-width: 620px) {
  #xrr-home .xrr-hero-carousel {
    min-height: 560px;
  }

  #xrr-home .xrr-slide {
    gap: 12px;
    padding: 24px 20px 86px;
  }

  #xrr-home .xrr-slide__copy {
    align-self: start;
    padding: 15px 14px 16px;
  }

  #xrr-home .xrr-slide__eyebrow {
    margin-bottom: 10px;
    line-height: 1.3;
  }

  #xrr-home .xrr-slide h2 {
    font-size: 24px;
    line-height: 1.16;
  }

  #xrr-home .xrr-slide p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.42;
  }

  #xrr-home .xrr-slide__visual {
    min-height: 190px;
  }

  #xrr-home .xrr-slide__visual::before {
    inset: 28px 2px 22px;
    opacity: .5;
  }

  #xrr-home .xrr-slide__visual img {
    width: min(112%, 290px);
    max-width: none;
    max-height: 220px;
  }

  #xrr-home .xrr-slide__mark {
    display: none;
  }

  #xrr-home .xrr-carousel__controls {
    right: 20px;
    bottom: 18px;
    left: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(157, 178, 197, .55);
  }

  #xrr-home .xrr-carousel__dots button {
    width: 24px;
  }
}


/* Product carousel overrides for the page-level stylesheet */
@media (min-width: 621px) {
  #xrr-home .xrr-hero-carousel { min-height: 480px !important; }
  #xrr-home .xrr-slide {
    grid-template-columns: minmax(0, 1.15fr) minmax(175px, .85fr) !important;
    gap: 16px !important;
    padding: 28px 28px 90px !important;
  }
  #xrr-home .xrr-slide__copy {
    align-self: start !important;
    padding: 17px 16px 19px !important;
  }
  #xrr-home .xrr-slide__eyebrow {
    max-width: 100% !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
  }
  #xrr-home .xrr-slide h2 { font-size: 22px !important; line-height: 1.18 !important; }
  #xrr-home .xrr-slide p {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    line-height: 1.45 !important;
  }
  #xrr-home .xrr-slide__visual { min-height: 270px !important; }
  #xrr-home .xrr-slide__visual::before { inset: 36px 0 34px !important; opacity: .55 !important; }
  #xrr-home .xrr-slide__visual img {
    width: min(132%, 300px) !important;
    max-width: none !important;
    max-height: 275px !important;
  }
  #xrr-home .xrr-slide__mark { display: none !important; }
  #xrr-home .xrr-carousel__controls {
    right: 28px !important;
    bottom: 20px !important;
    left: 28px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(157, 178, 197, .55) !important;
  }
}

#xrr-home .xrr-carousel__arrows button { width: 42px !important; height: 42px !important; }

@media (max-width: 620px) {
  #xrr-home .xrr-hero-carousel { min-height: 560px !important; }
  #xrr-home .xrr-slide { gap: 12px !important; padding: 24px 20px 86px !important; }
  #xrr-home .xrr-slide__copy { align-self: start !important; padding: 15px 14px 16px !important; }
  #xrr-home .xrr-slide__eyebrow { margin-bottom: 10px !important; line-height: 1.3 !important; }
  #xrr-home .xrr-slide h2 { font-size: 24px !important; line-height: 1.16 !important; }
  #xrr-home .xrr-slide p {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    line-height: 1.42 !important;
  }
  #xrr-home .xrr-slide__visual { min-height: 190px !important; }
  #xrr-home .xrr-slide__visual::before { inset: 28px 2px 22px !important; opacity: .5 !important; }
  #xrr-home .xrr-slide__visual img {
    width: min(112%, 290px) !important;
    max-width: none !important;
    max-height: 220px !important;
  }
  #xrr-home .xrr-slide__mark { display: none !important; }
  #xrr-home .xrr-carousel__controls {
    right: 20px !important;
    bottom: 18px !important;
    left: 20px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(157, 178, 197, .55) !important;
  }
  #xrr-home .xrr-carousel__dots button { width: 24px !important; }
}

@media (min-width: 621px) { #xrr-home .xrr-slide h2 { font-size: 21px !important; } }

/* Factory sliders: keep navigation outside infographic images */
.xrr-factory {
  padding-bottom: 64px !important;
  background: #f3f6f9 !important;
}
.xrr-factory__stage { overflow: visible !important; }
.xrr-factory__controls {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f3f6f9 !important;
  pointer-events: none !important;
}
.xrr-factory__dots {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  pointer-events: auto !important;
}
.xrr-factory__dots button {
  width: 28px !important;
  height: 6px !important;
  border-radius: 4px !important;
  background: #aab9c7 !important;
}
.xrr-factory__dots button[aria-current="true"] { background: #0065b3 !important; }
.xrr-factory__arrows {
  position: absolute !important;
  top: 10px !important;
  right: 20px !important;
  bottom: auto !important;
  left: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  pointer-events: none !important;
}
.xrr-factory__arrows button {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid #c7d6e3 !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #005da8 !important;
  box-shadow: 0 4px 12px rgba(24, 52, 77, .10) !important;
  pointer-events: auto !important;
}
.xrr-factory__arrows button:focus-visible,
.xrr-factory__dots button:focus-visible {
  outline: 3px solid #8dc5fb !important;
  outline-offset: 3px !important;
}
@media (max-width: 620px) {
  .xrr-factory { padding-bottom: 58px !important; }
  .xrr-factory__controls { height: 58px !important; }
  .xrr-factory__arrows { top: 7px !important; right: 16px !important; left: 16px !important; }
  .xrr-factory__arrows button { width: 42px !important; height: 42px !important; }
  .xrr-factory__dots { gap: 6px !important; }
  .xrr-factory__dots button { width: 24px !important; height: 6px !important; }
}

/* Prevent the control row itself from touching the image edge */
.xrr-factory { padding-bottom: 68px !important; }
.xrr-factory__controls { top: calc(100% + 4px) !important; }
.xrr-factory__arrows { bottom: auto !important; height: 44px !important; }
@media (max-width: 620px) {
  .xrr-factory { padding-bottom: 62px !important; }
  .xrr-factory__arrows { height: 42px !important; }
}

/* Catalog factory slider inherited a centering transform from its original layout */
.xrr-factory__controls { transform: none !important; }

/* Product cards: show the complete device, never crop it */
#xrr-home .xrr-slide__visual {
  display: grid !important;
  place-items: center !important;
}
#xrr-home .xrr-slide__visual img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 250px !important;
  object-fit: contain !important;
}
@media (max-width: 620px) {
  #xrr-home .xrr-slide__visual img { max-height: 220px !important; }
}

/* The visual area is shorter on phones, so keep every device inside it */
#xrr-home .xrr-slide__visual img { max-height: calc(100% - 12px) !important; }

@media (max-width: 620px) {
  #xrr-home .xrr-slide__visual img { max-height: 178px !important; }
}

/* Product carousel: vertical product-card layout */
@media (min-width: 621px) {
  #xrr-home .xrr-hero-carousel { min-height: 590px !important; }
  #xrr-home .xrr-slide {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(245px, 1fr) auto auto !important;
    align-content: start !important;
    gap: 14px !important;
    padding: 28px 28px 96px !important;
  }
  #xrr-home .xrr-slide__copy { display: contents !important; }
  #xrr-home .xrr-slide__eyebrow {
    grid-row: 1 !important;
    justify-self: start !important;
    margin: 0 !important;
    padding: 9px 12px !important;
  }
  #xrr-home .xrr-slide__visual {
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 245px !important;
    height: 245px !important;
    border-top: 1px solid #dce7f0 !important;
  }
  #xrr-home .xrr-slide__visual img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 228px !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  #xrr-home .xrr-slide h2 {
    grid-row: 3 !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
  }
  #xrr-home .xrr-slide p {
    grid-row: 4 !important;
    width: 100% !important;
    margin: 0 !important;
    -webkit-line-clamp: 3 !important;
  }
}
@media (max-width: 620px) {
  #xrr-home .xrr-hero-carousel { min-height: 650px !important; }
  #xrr-home .xrr-slide {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto 230px auto auto !important;
    align-content: start !important;
    gap: 12px !important;
    padding: 24px 20px 88px !important;
  }
  #xrr-home .xrr-slide__copy { display: contents !important; }
  #xrr-home .xrr-slide__eyebrow {
    grid-row: 1 !important;
    justify-self: start !important;
    margin: 0 !important;
    padding: 8px 11px !important;
  }
  #xrr-home .xrr-slide__visual {
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 230px !important;
    height: 230px !important;
    border-top: 1px solid #dce7f0 !important;
  }
  #xrr-home .xrr-slide__visual img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 214px !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  #xrr-home .xrr-slide h2 {
    grid-row: 3 !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 23px !important;
    line-height: 1.18 !important;
  }
  #xrr-home .xrr-slide p {
    grid-row: 4 !important;
    width: 100% !important;
    margin: 0 !important;
    -webkit-line-clamp: 3 !important;
  }
}

/* Refine vertical product cards: clean image stage and a larger desktop product */
#xrr-home .xrr-slide__visual::before { display: none !important; }
@media (min-width: 621px) {
  #xrr-home .xrr-hero-carousel { min-height: 620px !important; }
  #xrr-home .xrr-slide {
    grid-template-rows: auto minmax(270px, 1fr) auto auto !important;
  }
  #xrr-home .xrr-slide__visual {
    min-height: 270px !important;
    height: 270px !important;
  }
  #xrr-home .xrr-slide__visual img { max-height: 258px !important; }
}
