/* Hallmark | pre-emit critique: P5 H5 E5 S5 R5 V4 */
/* Hallmark | component: product gallery lightbox + responsive specification tables | genre: modern-minimal | tone: restrained industrial | anchor: MOSINTER green | macrostructure: component-only */
/* Shared presentation for every product detail page. */
.mos-product-detail-page .mos-product-gallery {
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
}

.mos-product-detail-page .mos-product-gallery .item img {
  width: 100%;
  height: 470px;
  padding: 28px;
  object-fit: contain;
  background: #fff;
}

.mos-product-detail-page .mos-product-detail {
  height: 100%;
}

.mos-product-detail-page .mos-product-detail .post-title {
  font-size: 38px;
  line-height: 1.18;
}

.mos-product-detail-page .mos-product-detail .mos-cas-large {
  display: inline-block;
  margin: 8px 0 18px;
  padding: 8px 13px;
  background: #171b22;
  color: #fff;
  font-family: monospace;
}

.mos-product-detail-page .mos-product-detail .mos-aliases {
  margin-bottom: 12px;
  color: #666;
}

.mos-product-detail-page .mos-product-detail .product_meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #ddd;
}

.mos-product-detail-page .mos-product-detail .product_meta span {
  display: block;
  margin-bottom: 6px;
}

.mos-product-detail-page .mos-source-content {
  font-size: 15px;
  line-height: 1.85;
}

.mos-product-detail-page .mos-source-content img {
  max-width: 100%;
  height: auto;
}

.mos-product-detail-page .mos-source-content h2,
.mos-product-detail-page .mos-source-content h3 {
  margin-top: 30px;
}

.mos-product-detail-page .mos-source-content table,
.mos-product-detail-page .mos-spec-table table {
  width: 100%;
  border-collapse: collapse;
}

.mos-product-detail-page .mos-source-content th,
.mos-product-detail-page .mos-source-content td,
.mos-product-detail-page .mos-spec-table th,
.mos-product-detail-page .mos-spec-table td {
  padding: 13px 14px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.mos-product-detail-page .mos-source-content th,
.mos-product-detail-page .mos-spec-table th {
  background: #f5f5f5;
  color: #222;
}

.mos-product-detail-page .mos-inquiry-panel {
  padding: 36px;
  background: #171b22;
  color: #fff;
}

.mos-product-detail-page .mos-inquiry-panel h2,
.mos-product-detail-page .mos-inquiry-panel p,
.mos-product-detail-page .mos-inquiry-panel label {
  color: #fff;
}

.mos-product-detail-page .mos-inquiry-panel .form-control {
  min-height: 48px;
  border: 1px solid #454a50;
  border-radius: 0;
  background: #232830;
  color: #fff;
}

.mos-product-detail-page .mos-inquiry-panel textarea.form-control {
  min-height: 140px;
}

.mos-product-detail-page .mos-form-status {
  margin: 12px 0 0;
  font-size: 13px;
}

.mos-product-detail-page .mos-inquiry-panel .mos-field-help,
.mos-product-detail-page .mos-inquiry-panel .mos-form-privacy {
  color: var(--mos-header-muted);
}

.mos-product-detail-page .mos-inquiry-panel .mos-field-help[data-tone="error"],
.mos-product-detail-page .mos-inquiry-panel .mos-form-status[data-tone="error"] {
  color: var(--mos-header-error);
}

.mos-product-detail-page .mos-inquiry-panel .mos-form-status[data-tone="success"] {
  color: var(--mos-header-accent);
}

.mos-product-detail-page .mos-inquiry-panel .mos-form-privacy a {
  color: var(--mos-header-accent);
}

.mos-product-detail-page .mos-inquiry-panel .form-control:focus {
  border-color: var(--mos-header-accent);
  outline-color: var(--mos-header-focus);
}

.mos-product-detail-page .mos-inquiry-panel .form-control[aria-invalid="true"] {
  border-color: var(--mos-header-error);
  outline-color: var(--mos-header-error);
}

.mos-product-detail-page .mos-inquiry-panel .mos-inquiry-details {
  border-color: var(--mos-header-rule);
  background: var(--mos-header-surface-raised);
}

.mos-product-detail-page .mos-inquiry-panel .mos-inquiry-details summary {
  color: var(--mos-header-ink);
}

.mos-product-detail-page .mos-inquiry-panel .mos-inquiry-details[open] summary {
  border-bottom-color: var(--mos-header-rule);
}

.mos-product-detail-page .mos-related .owl-stage {
  display: flex;
}

.mos-product-detail-page .mos-related .owl-item > .item {
  height: 100%;
}

.mos-product-detail-page .mos-product-gallery img.is-image-missing {
  opacity: 0.2;
}

/* Hallmark | component: product image dialog | genre: modern-minimal | theme: MOSINTER industrial green
 * states: default | hover | focus | active | disabled | loading | error | success
 * contrast: pass | pre-emit critique: P5 H5 E5 S5 R5 V4
 */
body.mos-lightbox-open {
  overflow: hidden;
}

.mos-product-lightbox {
  position: fixed;
  inset: 0;
  width: min(94%, 78rem);
  max-width: none;
  height: min(92dvh, 58rem);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--mos-header-ink);
}

.mos-product-lightbox::backdrop {
  background: var(--mos-mobile-backdrop);
}

.mos-product-lightbox__surface {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--mos-header-rule);
  border-radius: var(--mos-header-control-radius);
  background: var(--mos-header-surface);
  color: var(--mos-header-ink);
  box-shadow: 0 1.5rem 4rem var(--mos-header-shadow);
}

.mos-product-lightbox__figure {
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(3.75rem, 7vw, 5rem) clamp(1rem, 6vw, 5rem) 3.25rem;
  place-items: center;
}

.mos-product-lightbox__image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: contain;
  background: var(--mos-inquiry-surface);
  transition: opacity var(--mos-header-dur-short) var(--mos-header-ease-out);
}

.mos-product-lightbox__caption,
.mos-product-lightbox__status {
  position: absolute;
  inset-inline: 1rem;
  bottom: .875rem;
  margin: 0;
  overflow: hidden;
  color: var(--mos-header-muted);
  font-size: .75rem;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mos-product-lightbox__status {
  bottom: auto;
  top: 1rem;
  inset-inline: 4rem;
}

.mos-product-lightbox[data-state="loading"] .mos-product-lightbox__image {
  opacity: .45;
}

.mos-product-lightbox[data-state="error"] .mos-product-lightbox__status {
  color: var(--mos-header-error);
}

.mos-product-lightbox__close,
.mos-product-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--mos-header-rule);
  border-radius: var(--mos-header-control-radius);
  background: var(--mos-header-surface-raised);
  color: var(--mos-header-ink);
  line-height: 1;
  transition: background-color var(--mos-header-dur-short) var(--mos-header-ease-out), transform var(--mos-header-dur-micro) var(--mos-header-ease-out);
}

.mos-product-lightbox__close {
  top: .75rem;
  right: .75rem;
  font-size: 2rem;
}

.mos-product-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}

.mos-product-lightbox__nav--previous { left: .75rem; }
.mos-product-lightbox__nav--next { right: .75rem; }

.mos-product-lightbox__close:focus-visible,
.mos-product-lightbox__nav:focus-visible {
  outline: 3px solid var(--mos-header-focus);
  outline-offset: 2px;
}

.mos-product-lightbox__close:active { transform: translateY(1px); }
.mos-product-lightbox__nav:active { transform: translateY(calc(-50% + 1px)); }
.mos-product-lightbox__close:disabled,
.mos-product-lightbox__nav:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
  .mos-product-lightbox__close:hover,
  .mos-product-lightbox__nav:hover {
    background: var(--mos-header-accent-deep);
    color: var(--mos-header-accent-ink);
  }
}

@media (min-width: 100rem) {
  .mos-product-detail-page .mos-source-content {
    font-size: 16px;
  }

  .mos-product-detail-page .mos-product-gallery .item img {
    height: 540px;
  }
}

@media (min-width: 140rem) {
  .mos-product-detail-page .mos-product-gallery .item img {
    height: 620px;
  }

  .mos-product-detail-page .mos-inquiry-panel {
    padding: 44px;
  }
}

@media (max-width: 61.9375rem) {
  .mos-product-detail-page .mos-product-gallery .item img {
    height: 380px;
  }
}

@media (max-width: 47.9375rem) {
  .mos-product-detail-page .mos-product-detail .post-title {
    font-size: 31px;
  }

  .mos-product-detail-page .mos-product-gallery .item img {
    height: 320px;
  }

  .mos-product-detail-page .mos-inquiry-panel {
    padding: 24px 18px;
  }

  .mos-product-detail-page .wt-tabs,
  .mos-product-detail-page .tab-content,
  .mos-product-detail-page .tab-pane,
  .mos-product-detail-page .mos-source-content,
  .mos-product-detail-page .mos-spec-table,
  .mos-product-detail-page .spec-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .mos-product-detail-page .tab-pane > .p-a25 {
    padding: 1rem !important;
  }

  .mos-product-detail-page .spec-table-wrap {
    overflow: visible;
  }

  .mos-product-detail-page .spec-table,
  .mos-product-detail-page .spec-table tbody {
    display: block;
    width: 100%;
  }

  .mos-product-detail-page .spec-table tr {
    display: grid;
    grid-template-columns: minmax(6.75rem, .44fr) minmax(0, 1fr);
    width: 100%;
    margin-block-end: .75rem;
    border: 1px solid var(--mos-inquiry-rule);
    background: var(--mos-inquiry-surface);
    color: var(--mos-inquiry-ink);
  }

  .mos-product-detail-page .spec-table th,
  .mos-product-detail-page .spec-table td {
    display: block;
    min-width: 0;
    padding: .75rem;
    border: 0;
    border-block-end: 1px solid var(--mos-inquiry-rule);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .mos-product-detail-page .spec-table tr > :nth-child(odd) {
    background: var(--mos-inquiry-field);
    color: var(--mos-inquiry-ink);
    font-weight: 700;
  }

  .mos-product-lightbox {
    width: calc(100% - 1rem);
    height: calc(100dvh - 1rem);
  }

  .mos-product-lightbox__figure {
    padding-inline: .75rem;
  }

  .mos-product-lightbox__nav--previous { left: .5rem; }
  .mos-product-lightbox__nav--next { right: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mos-product-lightbox__image,
  .mos-product-lightbox__close,
  .mos-product-lightbox__nav {
    transition-duration: 1ms;
  }
}

/* Compact previous / next navigation for product detail pages. */
.mos-product-detail-page .mos-detail-navigation { padding: 0 0 54px; background: #fff; }
.mos-product-detail-page .mos-detail-navigation__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mos-product-detail-page .mos-detail-navigation__grid.is-single { grid-template-columns: minmax(0, 1fr); }
.mos-product-detail-page .mos-detail-navigation__link {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 126px;
  align-content: center;
  padding: 24px 62px;
  border: 1px solid #e2e7e1;
  background: #f8faf8;
  color: #1f2b26;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.mos-product-detail-page .mos-detail-navigation__link:hover,
.mos-product-detail-page .mos-detail-navigation__link:focus-visible { border-color: var(--mos-green-action); background: #fff; color: #1f2b26; transform: translateY(-2px); }
.mos-product-detail-page .mos-detail-navigation__link--next { text-align: right; }
.mos-product-detail-page .mos-detail-navigation__eyebrow { margin-bottom: 5px; color: #68736d; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mos-product-detail-page .mos-detail-navigation__link strong { overflow: hidden; font-size: 18px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.mos-product-detail-page .mos-detail-navigation__link small { margin-top: 5px; color: #7b8580; font-size: 12px; }
.mos-product-detail-page .mos-detail-navigation__link > i { position: absolute; top: 50%; color: var(--mos-green-action); font-size: 21px; transform: translateY(-50%); }
.mos-product-detail-page .mos-detail-navigation__link--previous > i { left: 26px; }
.mos-product-detail-page .mos-detail-navigation__link--next > i { right: 26px; }

@media (max-width: 47.9375rem) {
  .mos-product-detail-page .mos-detail-navigation { padding-bottom: 38px; }
  .mos-product-detail-page .mos-detail-navigation__grid { grid-template-columns: 1fr; gap: 12px; }
  .mos-product-detail-page .mos-detail-navigation__link { min-height: 108px; padding: 20px 52px; }
  .mos-product-detail-page .mos-detail-navigation__link strong { font-size: 16px; }
}
