/* Product recommendations stay inside the modal and follow the selected store palette. */
.c102-related-host,
.c102-related,
.c102-product-information {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.c102-related-host[hidden],
.c102-related [hidden],
.c102-related[hidden],
.c102-product-information [hidden] { display: none !important; }
.c102-related-host:empty { display: none; }
.c102-related {
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid #e6e9ed;
  color: #252d36;
  font-family: Inter, Arial, sans-serif;
}
.c102-related *,
.c102-product-information * { box-sizing: border-box; }
.c102-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 3px 12px;
  min-width: 0;
}
.c102-related .c102-related-heading {
  margin: 0;
  color: #252d36;
  font: 700 20px/1.3 Inter, Arial, sans-serif;
  letter-spacing: -.025em;
  text-transform: none;
}
.c102-related-controls { display: flex; flex: none; gap: 8px; }
.c102-related .c102-related-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0 3px;
  border: 1px solid #dce1e6;
  border-radius: 50%;
  background: #fff;
  color: var(--shop-ink, #a92b00);
  font: 400 30px/1 Arial, sans-serif;
  box-shadow: 0 2px 5px #25334608;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.c102-related .c102-related-arrow:hover:not(:disabled) {
  border-color: var(--shop-accent, #ff4000);
  background: color-mix(in srgb, var(--shop-accent, #ff4000) 6%, white);
}
.c102-related .c102-related-arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }
.c102-related-track {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 3px 10px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 3px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c7cdd4 #f2f4f6;
}
.c102-related-track::-webkit-scrollbar { height: 6px; }
.c102-related-track::-webkit-scrollbar-track { background: #f2f4f6; border-radius: 8px; }
.c102-related-track::-webkit-scrollbar-thumb { background: #c7cdd4; border-radius: 8px; }
.c102-related-list {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  min-width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.c102-related-item {
  flex: 0 0 196px;
  width: 196px;
  max-width: 196px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  scroll-snap-align: start;
}
.c102-related .c102-related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e6ea;
  border-radius: 11px;
  background: #fff;
  color: #26303c;
  text-decoration: none;
  box-shadow: 0 2px 5px #25334605;
  transition: border-color .15s, box-shadow .15s;
}
.c102-related .c102-related-card:hover {
  border-color: var(--shop-accent, #ff4000);
  box-shadow: 0 3px 8px #2533460d;
}
.c102-related-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}
.c102-related-media .c102-related-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  padding: 10px;
  object-fit: contain;
  object-position: center;
}
.c102-related-image-fallback { padding: 15px; color: #7d8792; text-align: center; font: 400 12px/1.5 Inter, Arial, sans-serif; }
.c102-related-copy { display: flex; flex: 1; flex-direction: column; gap: 9px; min-width: 0; padding: 12px; border-top: 1px solid #f2f3f5; }
.c102-related-title {
  display: -webkit-box;
  min-height: 36px;
  max-height: 36px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #303a47;
  font: 500 13px/18px Inter, Arial, sans-serif;
  overflow-wrap: anywhere;
}
.c102-related-price { display: block; margin: 0; color: #202b37; font: 700 17px/1.35 Inter, Arial, sans-serif; overflow-wrap: anywhere; }
.c102-related-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  color: var(--shop-ink, #a92b00);
  font: 600 12px/1.4 Inter, Arial, sans-serif;
}
.c102-related-link-arrow { font-size: 16px; font-weight: 400; }
.c102-related :is(a, button, .c102-related-track):focus-visible,
.c102-product-information summary:focus-visible { outline: 2px solid var(--shop-ink, #a92b00); outline-offset: 2px; }
.c102-related-track:focus-visible { outline-offset: -2px; border-radius: 8px; }

/* Long descriptions and specifications no longer stretch one side of the product grid. */
.c90-dialog[data-c102-product-detail] { overflow-x: hidden; }
.c90-dialog[data-c102-product-detail] .c90-detail,
.c90-dialog[data-c102-product-detail] .c90-detail > * { min-width: 0; }
.c90-dialog[data-c102-product-detail] [data-c90-detail-feedback]:empty { display: none; }
.c90-dialog[data-c102-product-detail] [data-c90-stock-observed] { margin-bottom: 0; }
.c102-product-information {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  margin: 20px 0 0;
  padding: 0;
  color: #303a47;
  font: 13px/1.6 Inter, Arial, sans-serif;
}
.c102-product-information:empty { display: none; }
.c102-product-information > details { min-width: 0; margin: 0; padding: 0; border: 1px solid #e3e7ec; border-radius: 10px; background: #fff; }
.c102-product-information > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 51px;
  margin: 0;
  padding: 14px 17px;
  border-radius: 10px;
  list-style: none;
  color: #303a47;
  font: 600 14px/1.5 Inter, Arial, sans-serif;
  cursor: pointer;
}
.c102-product-information > details > summary::-webkit-details-marker { display: none; }
.c102-product-information > details > summary::after { content: ''; flex: none; width: 8px; height: 8px; margin-right: 3px; border-right: 1.5px solid var(--shop-ink, #a92b00); border-bottom: 1.5px solid var(--shop-ink, #a92b00); transform: rotate(45deg); }
.c102-product-information > details[open] > summary::after { transform: rotate(225deg); }
.c102-product-information > details[open] > summary { border-bottom: 1px solid #eef0f3; border-radius: 10px 10px 0 0; }
.c102-product-information > details > :not(summary) { margin: 0; padding: 16px 17px; min-width: 0; overflow-wrap: anywhere; }
.c102-product-information .c90-description { margin: 0; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.c102-product-information .c90-guarantee-note { margin: 0 0 14px; }
.c102-product-information .c90-specs { margin: 0; }
.c102-product-information .c90-muted { margin: 12px 0 0; }

@media (max-width: 650px) {
  .c102-related { margin-top: 18px; padding-top: 16px; }
  .c102-related .c102-related-heading { font-size: 18px; }
  .c102-related-header { gap: 8px; margin-bottom: 9px; }
  .c102-related-controls { gap: 6px; }
  .c102-related-list { gap: 10px; }
  .c102-related-item { flex-basis: 156px; width: 156px; max-width: 156px; }
  .c102-related-copy { gap: 8px; padding: 10px; }
  .c102-related-title { font-size: 12px; }
  .c102-related-price { font-size: 16px; }
  .c102-related-media .c102-related-image { padding: 8px; }
  .c102-product-information { margin-top: 16px; gap: 8px; }
  .c102-product-information > details > summary { padding: 13px 14px; }
  .c102-product-information > details > :not(summary) { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .c102-related *, .c102-product-information * { transition: none !important; scroll-behavior: auto !important; }
}
[data-v239-motion="off"] .c102-related * { transition: none !important; scroll-behavior: auto !important; }

/* Product browsing stays below the site navigation; payment dialogs keep their own layout. */
body .c90-dialog.c90-detail-dialog[open] {
  position: fixed;
  inset: calc(var(--c90-header-offset, 78px) + 10px) 0 auto;
  z-index: 2147482000;
  box-sizing: border-box;
  width: min(1180px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  height: auto;
  min-height: 0;
  max-height: calc(100dvh - var(--c90-header-offset, 78px) - 20px) !important;
  margin: 0 auto !important;
  padding: 0 20px 20px !important;
  border: 1px solid #dce2e9;
  border-radius: 14px !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b4c0cf #f5f7fa;
  scroll-padding-top: 64px;
  background: #fff;
  color: #243041;
  box-shadow: 0 14px 40px #1a2b4430, 0 2px 8px #1a2b4412 !important;
}
body .c90-detail-dialog .c90-dialog-heading {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin: 0 -20px 16px;
  padding: 10px 16px 10px 20px;
  border-bottom: 1px solid #e7ebf0;
  background: #fff;
}
body .c90-detail-dialog .c90-dialog-heading > strong {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #526175;
}
body .c90-detail-dialog .c90-dialog-heading [data-c90-view-cart] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #c9dcf7;
  border-radius: 8px;
  background: #f0f6ff;
  color: #1c5faa;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
body .c90-detail-dialog .c90-dialog-heading .c90-close {
  position: static;
  inset: auto;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid #e1e7ee;
  border-radius: 9px;
  background: #f6f8fb;
  color: #334155;
  line-height: 1;
}
body .c90-dialog.c90-detail-dialog .c90-detail {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: start;
}
body .c90-detail-dialog .c90-detail > div:first-child {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
}
body .c90-detail-dialog .c90-main-photo {
  display: block;
  width: 100%;
  height: clamp(170px, 34dvh, 320px);
  max-height: min(320px, 38dvh);
  min-height: 0;
  aspect-ratio: auto;
  padding: 10px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
body .c90-detail-dialog .c90-thumbs {
  gap: 6px;
  flex-wrap: nowrap;
  max-height: min(320px, 38dvh);
  padding: 0 2px 2px 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
body .c90-detail-dialog .c90-thumbs button {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  min-height: 50px;
  padding: 3px;
}
body .c90-detail-dialog .c90-thumbs img { width: 42px; height: 42px; }
body .c90-detail-dialog .c90-detail > section { padding: 16px; box-shadow: none; }
body .c90-detail-dialog .c90-detail h2 {
  margin: 7px 0 10px;
  font-size: clamp(18px, 1.6vw, 22px) !important;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
body .c90-detail-dialog .c90-detail section > .c100-share-button { margin-bottom: 8px; }
body .c90-detail-dialog .c90-detail-price { margin: 10px 0 4px; font-size: 30px !important; }
body .c90-detail-dialog .c90-detail-price .c100-price-login { font-size: 14px; line-height: 1.5; text-align: left; }
body .c90-detail-dialog .c90-stock { margin: 4px 0 10px; font-size: 12px; }
body .c90-detail-dialog .c90-detail form { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: end; gap: 10px; margin: 12px 0 8px; }
body .c90-detail-dialog .c90-detail form > label { margin-bottom: 0; }
body .c90-detail-dialog .c90-detail form input { width: 86px; min-height: 42px; }
body .c90-detail-dialog .c90-purchase-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
body .c90-dialog.c90-detail-dialog .c90-detail .c90-purchase-actions .c90-btn {
  min-width: 0;
  min-height: 44px !important;
  padding: 10px 12px;
  border: 1px solid #bad3f6 !important;
  border-radius: 8px !important;
  background: #edf5ff !important;
  color: #155aa8 !important;
  font-size: 13px !important;
  line-height: 1.35;
  box-shadow: none !important;
}
body .c90-dialog.c90-detail-dialog .c90-detail .c90-purchase-actions [data-c90-buy-detail] {
  border-color: #2378df !important;
  background: #2378df !important;
  color: #fff !important;
}
body .c90-dialog.c90-detail-dialog .c90-detail .c90-purchase-actions [data-c90-buy-detail]:hover:not(:disabled) { background: #175fb6 !important; border-color: #175fb6 !important; }
body .c90-dialog.c90-detail-dialog .c90-detail .c90-purchase-actions .c90-btn:disabled { opacity: .5; }
body .c90-detail-dialog [data-c90-in-cart] {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  margin: 8px 0 0;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #f5f7fa;
  color: #526175;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}
body .c90-detail-dialog [data-c90-in-cart].has-items { border-color: #bcdcc9; background: #eff9f2; color: #22613c; }
body .c90-detail-dialog [data-c90-cart-status] { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: #526175; }
body .c90-detail-dialog [data-c90-cart-status]:empty { display: none; }
body .c90-detail-dialog [data-c90-detail-feedback] { margin: 6px 0; font-size: 12px; line-height: 1.5; }
body .c90-detail-dialog .c90-product-description {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #e3e7ec;
  border-radius: 10px;
  background: #fff;
}
body .c90-detail-dialog .c90-product-description h3 { margin: 0 0 12px; font-size: 16px; line-height: 1.4; color: #263448; }
body .c90-detail-dialog .c90-product-description .c90-description { line-height: 1.7; overflow-wrap: anywhere; }
body .c90-detail-dialog .c102-related { margin-top: 18px; padding-top: 16px; }
body .c90-detail-dialog .c102-related-item { flex-basis: 164px; width: 164px; max-width: 164px; }
body .c90-detail-dialog .c102-related-copy { gap: 7px; padding: 10px; }
body .c90-detail-dialog .c102-related .c102-related-heading { font-size: 18px; }

@media (max-width: 850px) {
  body .c90-dialog.c90-detail-dialog .c90-detail { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body .c90-detail-dialog .c90-main-photo { height: min(30dvh, 280px); max-height: 280px; }
  body .c90-detail-dialog .c90-thumbs { max-height: min(30dvh, 280px); }
}
@media (max-width: 650px) {
  body .c90-dialog.c90-detail-dialog[open] {
    inset: calc(var(--c90-header-offset, 64px) + 6px) 0 auto;
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    max-height: calc(100dvh - var(--c90-header-offset, 64px) - 12px) !important;
    padding: 0 12px 16px !important;
    border-radius: 12px !important;
  }
  body .c90-detail-dialog .c90-dialog-heading { min-height: 52px; margin: 0 -12px 12px; padding: 8px 10px 8px 12px; gap: 7px; }
  body .c90-detail-dialog .c90-dialog-heading > strong { font-size: 12px; }
  body .c90-detail-dialog .c90-dialog-heading [data-c90-view-cart] { font-size: 11px; padding-inline: 9px; }
  body .c90-detail-dialog .c90-detail > div:first-child { grid-template-columns: minmax(0, 1fr); }
  body .c90-detail-dialog .c90-main-photo { grid-column: 1; grid-row: 1; height: min(29dvh, 240px); max-height: 240px; }
  body .c90-detail-dialog .c90-thumbs { grid-column: 1; grid-row: 2; flex-direction: row; max-height: 58px; overflow-x: auto; overflow-y: hidden; padding: 0 0 4px; }
  body .c90-detail-dialog .c90-detail > section { padding: 13px; }
  body .c90-detail-dialog .c90-detail form { grid-template-columns: minmax(0, 1fr); }
  body .c90-detail-dialog .c90-detail h2 { font-size: 19px !important; }
  body .c90-detail-dialog .c90-product-description { padding: 14px; }
  body .c90-detail-dialog .c102-related-item { flex-basis: 145px; width: 145px; max-width: 145px; }
  body .c90-detail-dialog .c102-related-header { align-items: flex-start; }
}
@media (max-height: 500px) and (min-width: 851px) {
  body .c90-detail-dialog .c90-main-photo { height: 190px; max-height: 190px; }
  body .c90-detail-dialog .c90-thumbs { max-height: 190px; }
  body .c90-detail-dialog .c90-detail > section { padding: 12px; }
}

/* The imported catalogue uses the same nonmodal window without changing quote checkout. */
body .c67-dialog.c67-detail-dialog[open] {
  position: fixed;
  inset: calc(var(--c67-header-offset, 78px) + 10px) 0 auto;
  z-index: 2147482000;
  box-sizing: border-box;
  width: min(1100px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  height: auto;
  min-height: 0;
  max-height: calc(100dvh - var(--c67-header-offset, 78px) - 20px);
  margin: 0 auto;
  padding: 0;
  border: 1px solid #dce2e9;
  border-radius: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b4c0cf #f5f7fa;
  scroll-padding-top: 64px;
  background: #fff;
  color: #243041;
  box-shadow: 0 14px 40px #1a2b4430, 0 2px 8px #1a2b4412;
}
body .c67-dialog.c67-detail-dialog > .c67-dialog-head {
  position: sticky !important;
  inset: 0 auto auto !important;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: auto !important;
  min-height: 56px !important;
  max-height: none !important;
  margin: 0;
  padding: 10px 16px 10px 20px;
  border: 0 !important;
  border-bottom: 1px solid #e7ebf0 !important;
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body .c67-detail-dialog > .c67-dialog-head > span { flex: 1; min-width: 0; color: #526175; }
body .c67-detail-dialog > .c67-dialog-head > button { flex: none; }
body .c67-detail-dialog .c67-dialog-body { min-width: 0; padding: 16px 20px 20px; overflow: visible; }
body .c67-detail-dialog .c67-detail-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
body .c67-detail-dialog .c67-detail-grid > * { min-width: 0; }
body .c67-detail-dialog .c67-detail-image { height: clamp(170px, 34dvh, 320px); max-height: min(320px, 38dvh); min-height: 0; aspect-ratio: auto; padding: 10px; background: #fff; }
body .c67-detail-dialog .c67-gallery-controls { margin: 7px 0; }
body .c67-detail-dialog .c67-gallery-thumbs { flex-wrap: nowrap; gap: 7px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 5px; scrollbar-width: thin; overscroll-behavior: contain; }
body .c67-detail-dialog .c67-gallery-thumbs button { flex: 0 0 50px; width: 50px; height: 50px; }
body .c67-detail-dialog .c67-detail-copy h2 { margin: 7px 0 10px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; overflow-wrap: anywhere; }
body .c67-detail-dialog .c67-detail-price strong { font-size: 30px; }
body .c67-detail-dialog .c67-description { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e7ebf0; }
body .c67-detail-dialog .c67-description h3 { margin: 0; font-size: 15px; line-height: 1.4; color: #263448; }
body .c67-detail-dialog .c67-description p { margin-top: 9px; max-height: none; overflow: visible; overflow-wrap: anywhere; line-height: 1.7; }
body .c67-detail-dialog .c67-quote-form { margin-top: 18px; padding-top: 16px; }
body .c67-detail-dialog .c67-quote-form h3 { font-size: 18px; }
body .c67-detail-dialog .c67-form-fields { margin: 14px 0; gap: 14px; }
body .c67-detail-dialog .c67-quote-form > .c67-primary { min-height: 44px; }
body .c67-detail-dialog .c102-related { margin-top: 18px; padding-top: 16px; }
body .c67-detail-dialog .c102-related-item { flex-basis: 164px; width: 164px; max-width: 164px; }
body .c67-detail-dialog .c102-related-copy { gap: 7px; padding: 10px; }
body .c67-detail-dialog .c102-related .c102-related-heading { font-size: 18px; }

@media (max-width: 850px) {
  body .c67-detail-dialog .c67-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body .c67-detail-dialog .c67-detail-image { height: min(30dvh, 280px); max-height: 280px; }
}
@media (max-width: 650px) {
  body .c67-dialog.c67-detail-dialog[open] {
    inset: calc(var(--c67-header-offset, 64px) + 6px) 0 auto;
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    max-height: calc(100dvh - var(--c67-header-offset, 64px) - 12px);
    border-radius: 12px;
  }
  body .c67-dialog.c67-detail-dialog > .c67-dialog-head { min-height: 52px !important; padding: 8px 10px 8px 12px; gap: 7px; }
  body .c67-detail-dialog .c67-dialog-body { padding: 12px 12px 16px; }
  body .c67-detail-dialog .c67-detail-image { height: min(29dvh, 240px); max-height: 240px; }
  body .c67-detail-dialog .c67-detail-copy h2 { font-size: 19px; }
  body .c67-detail-dialog .c67-form-fields { grid-template-columns: minmax(0, 1fr); }
  body .c67-detail-dialog .c67-quote-form > .c67-primary { width: 100%; margin-right: 0; }
  body .c67-detail-dialog .c102-related-item { flex-basis: 145px; width: 145px; max-width: 145px; }
  body .c67-detail-dialog .c102-related-header { align-items: flex-start; }
}
@media (max-height: 500px) and (min-width: 851px) {
  body .c67-detail-dialog .c67-detail-image { height: 170px; max-height: 170px; }
}

