/* Shared close controls for CHANSTAR overlays. */
body :is(dialog.consultation-modal.cs-unified-enquiry .cs-unified-toolbar > .contact-close, dialog.consultation-modal.cs-machine-consultation .cs-consultation-bar > .contact-close, .contact-close, .jy-success-close, .cs-image-close, .cs-real-close, .cp-close, .wm-lightbox-close, .cs-close-refined, [data-restored-zoom-close]) {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  inline-size: 44px !important;
  block-size: 44px !important;
  min-inline-size: 44px !important;
  padding: 0 !important;
  border: 1px solid #cdd2ce !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #202522 !important;
  font-size: 0 !important;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease !important;
}
body :is(dialog.consultation-modal.cs-unified-enquiry .cs-unified-toolbar > .contact-close, dialog.consultation-modal.cs-machine-consultation .cs-consultation-bar > .contact-close, .contact-close, .jy-success-close, .cs-image-close, .cs-real-close, .cp-close, .wm-lightbox-close, .cs-close-refined, [data-restored-zoom-close]) > * {
  display: none !important;
}
body :is(dialog.consultation-modal.cs-unified-enquiry .cs-unified-toolbar > .contact-close, dialog.consultation-modal.cs-machine-consultation .cs-consultation-bar > .contact-close, .contact-close, .jy-success-close, .cs-image-close, .cs-real-close, .cp-close, .wm-lightbox-close, .cs-close-refined, [data-restored-zoom-close])::before {
  content: "" !important;
  position: static !important;
  grid-area: 1 / 1;
  inline-size: 20px;
  block-size: 20px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4l16 16M20 4 4 20' fill='none' stroke='%23202522' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  transform: none !important;
  transition: none;
}
body :is(dialog.consultation-modal.cs-unified-enquiry .cs-unified-toolbar > .contact-close, dialog.consultation-modal.cs-machine-consultation .cs-consultation-bar > .contact-close, .contact-close, .jy-success-close, .cs-image-close, .cs-real-close, .cp-close, .wm-lightbox-close, .cs-close-refined, [data-restored-zoom-close])::after {
  content: none !important;
}
body :is(dialog.consultation-modal.cs-unified-enquiry .cs-unified-toolbar > .contact-close, dialog.consultation-modal.cs-machine-consultation .cs-consultation-bar > .contact-close, .contact-close, .jy-success-close, .cs-image-close, .cs-real-close, .cp-close, .wm-lightbox-close, .cs-close-refined, [data-restored-zoom-close]):is(:hover, :focus-visible) {
  background: #f8bb18 !important;
  border-color: #f8bb18 !important;
}
body :is(dialog.consultation-modal.cs-unified-enquiry .cs-unified-toolbar > .contact-close, dialog.consultation-modal.cs-machine-consultation .cs-consultation-bar > .contact-close, .contact-close, .jy-success-close, .cs-image-close, .cs-real-close, .cp-close, .wm-lightbox-close, .cs-close-refined, [data-restored-zoom-close]):focus-visible {
  outline: 2px solid #986600 !important;
  outline-offset: 3px;
}
#oem a.cs-custom-requirements {
  background: #f8bb18 !important;
  border: 1px solid #f8bb18 !important;
  border-radius: 9px !important;
  color: #1e281b !important;
  transition: background-color .25s, transform .25s;
}
#oem a.cs-custom-requirements:hover {
  background: #eeb00a !important;
  transform: translateY(-2px);
}
#oem a.cs-custom-requirements:focus-visible {
  outline: 2px solid #986600;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  #oem a.cs-custom-requirements:hover { transform: none; }
  body :is(dialog.consultation-modal.cs-unified-enquiry .cs-unified-toolbar > .contact-close, dialog.consultation-modal.cs-machine-consultation .cs-consultation-bar > .contact-close, .contact-close, .jy-success-close, .cs-image-close, .cs-real-close, .cp-close, .wm-lightbox-close, .cs-close-refined, [data-restored-zoom-close]), #oem a.cs-custom-requirements { transition: none !important; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body .jy-success-close::before { transition: transform .18s ease; }
  body .jy-success-close:hover::before { transform: rotate(90deg) !important; }
}

#about .about-copy .cs-about-button {
  border: 1px solid #cbd4ce;
  border-radius: 8px;
  color: #233b2d;
  background: transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
#about .about-copy .cs-about-button:is(:hover, :focus-visible) {
  background: #fff8e9;
  border-color: #b68117;
}

/* Center native media dialogs within the viewport at any scroll position. */
dialog:is(#cs-real-viewer, .cs-real-viewer, .cs-image-refined, .standard-image-dialog, .bucket-image-dialog, .cp-lightbox, .wm-lightbox, .cs-new-image-dialog, .cs-forestry-dialog, .restored-image-dialog, .unified-image-modal, .audit-product-dialog):modal {
  position: fixed;
  inset: 0;
  margin: auto;
}
/* 20261112: preserve the shared X when image refinement hides decorative pseudos. */
body button:is(.contact-close,.jy-success-close,.cs-image-close,.cs-real-close,.cp-close,.wm-lightbox-close,.cs-close-refined,[data-restored-zoom-close])::before {
 display:block !important; opacity:1 !important; visibility:visible !important;
}
/* Native dialog autofocus is not a pointer hover. Keep a visible keyboard outline. */

body dialog.cs-image-refined button.cs-close-refined::before{content:""!important;display:block!important;opacity:1!important;visibility:visible!important;}

/* Unified product-image close controls: no rotation or scale on hover. */
body dialog.cs-image-refined button.cs-close-refined {display:inline-grid!important;padding:0!important;transform:none!important;background:#fff!important;border:1px solid #cdd2ce!important;transition:background-color .18s ease,border-color .18s ease!important;}
body dialog.cs-image-refined button.cs-close-refined > * {display:none!important;}
body dialog.cs-image-refined button.cs-close-refined:hover {background:#f8bb18!important;border-color:#f8bb18!important;transform:none!important;}
body dialog.cs-image-refined button.cs-close-refined::before {transform:none!important;}
body dialog button:is(.cs-image-close,.cs-close-refined,.wm-lightbox-close,.cp-close,[data-restored-zoom-close]) > svg {display:none!important;}
body dialog button:is(.cs-image-close,.cs-close-refined,.wm-lightbox-close,.cp-close,[data-restored-zoom-close]):hover {background:#f8bb18!important;border-color:#f8bb18!important;transform:none!important;}
.cs-unified-toolbar[tabindex="-1"]:focus{outline:none;}
