/* ============================================================
   Envista Supply Chain Widget — v2.0.0
   Source-of-truth: envista-wp-section_10.html
   ============================================================ */

.envista-isc {
  --ink: #143450;
  --accent: #f26f3d;
  --accent-strong: #d94c1f;
  --panel: #ffffff;
  --line: rgba(20, 52, 80, 0.22);
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f6;
  box-shadow: 0 20px 55px rgba(20, 52, 80, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  isolation: isolate;
}

.envista-isc__art {
  position: relative;
  width: 100%;
  aspect-ratio: 3800 / 2400;
  background: #eef3f6;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.envista-isc__art svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateZ(0);
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
}

.envista-isc__art.is-loading::before,
.envista-isc__art.is-error::before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 14px;
}
.envista-isc__art.is-loading::before {
  content: "Loading illustration…";
  color: #4e5d69;
}
.envista-isc__art.is-error::before {
  content: "Could not load illustration. Serve over HTTP (file:// blocks fetch).";
  color: #d94c1f;
}

/* ---------- hotspot ---------- */
.envista-isc__hotspot {
  --x: 50%;
  --y: 50%;
  --w: 8%;
  --h: 8%;
  --delay: 0s;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  transform: translate(-50%, -50%);
  text-decoration: none;
  color: var(--panel);
  cursor: pointer;
  z-index: 3;
}

.envista-isc__hotspot:hover,
.envista-isc__hotspot:focus-visible {
  z-index: 50;
}

.envista-isc:has(.envista-isc__hotspot:hover)
  .envista-isc__hotspot:not(:hover),
.envista-isc:has(.envista-isc__hotspot:focus-visible)
  .envista-isc__hotspot:not(:focus-visible) {
  z-index: 1;
}

/* ---------- pin ---------- */
.envista-isc__pin,
.envista-isc__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.envista-isc__pin {
  width: clamp(15px, 1.35vw, 23px);
  aspect-ratio: 1;
  background: var(--accent);
  border: 3px solid var(--panel);
  box-shadow: 0 8px 22px rgba(20, 52, 80, 0.26);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.envista-isc__ring {
  width: 16px;
  height: 16px;
  background: rgba(242, 111, 61, 0.2);
  border: 2px solid rgba(242, 111, 61, 0.76);
  animation: envistaIscPulse 2.8s ease-out infinite;
  animation-delay: var(--delay);
}

.envista-isc__hotspot:hover .envista-isc__pin,
.envista-isc__hotspot:focus-visible .envista-isc__pin {
  background: var(--accent-strong);
  transform: translate(-50%, -50%) scale(1.18);
}

@keyframes envistaIscPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0.9;
  }
  80%,
  100% {
    transform: translate(-50%, -50%) scale(1.75);
    opacity: 0;
  }
}

/* ---------- label (desktop hover hint) ---------- */
.envista-isc__label {
  position: absolute;
  top: 50%;
  left: calc(50% + 16px);
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-strong, #c0451f);
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
  pointer-events: none;
  opacity: 1;
  z-index: 4;
}
.envista-isc__hotspot--label-left .envista-isc__label {
  left: auto;
  right: calc(50% + 16px);
}
/* Hide label on active/open hotspot — card already shows title */
.envista-isc__hotspot:hover .envista-isc__label,
.envista-isc__hotspot:focus-visible .envista-isc__label,
.envista-isc__hotspot.is-open .envista-isc__label {
  opacity: 0;
}
@media (max-width: 767px) {
  .envista-isc__label {
    font-size: 10px;
    padding: 1px 4px;
    line-height: 1.15;
    white-space: normal;
    max-width: 80px;
    left: calc(50% + 12px);
  }
  .envista-isc__hotspot--label-left .envista-isc__label {
    left: auto;
    right: calc(50% + 12px);
  }
}
@media (max-width: 400px) {
  .envista-isc__label {
    font-size: 9px;
    max-width: 64px;
    padding: 1px 3px;
    left: calc(50% + 10px);
  }
  .envista-isc__hotspot--label-left .envista-isc__label {
    left: auto;
    right: calc(50% + 10px);
  }
}

/* ---------- card ---------- */
.envista-isc__card {
  --card-x: -50%;
  --card-y: 10px;
  --card-y-open: 0px;
  position: absolute;
  left: 50%;
  bottom: calc(50% + 28px);
  width: clamp(210px, 17vw, 280px);
  padding: 14px;
  border: 1px solid rgba(20, 52, 80, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(20, 52, 80, 0.15);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.38;
  opacity: 0;
  transform: translate(var(--card-x), var(--card-y));
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
  z-index: 99;
}

.envista-isc__card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 12px;
  height: 12px;
  background: inherit;
  border-right: 1px solid rgba(20, 52, 80, 0.14);
  border-bottom: 1px solid rgba(20, 52, 80, 0.14);
  transform: translate(-50%, -6px) rotate(45deg);
}

.envista-isc__hotspot:hover .envista-isc__card,
.envista-isc__hotspot:focus-visible .envista-isc__card,
.envista-isc__hotspot.is-open .envista-isc__card {
  opacity: 1;
  transform: translate(var(--card-x), var(--card-y-open));
  pointer-events: auto;
}
.envista-isc__hotspot.is-open .envista-isc__pin {
  background: var(--accent-strong);
  transform: translate(-50%, -50%) scale(1.18);
}

.envista-isc__card-title {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}
.envista-isc__card-desc {
  display: block;
  color: #4e5d69;
}
.envista-isc__card-cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.envista-isc__card-cta:hover {
  background: var(--accent-strong);
}

/* card position variants */
.envista-isc__hotspot--below .envista-isc__card {
  top: calc(50% + 28px);
  bottom: auto;
  --card-y: -10px;
}
.envista-isc__hotspot--below .envista-isc__card::after {
  top: auto;
  bottom: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(20, 52, 80, 0.14);
  border-top: 1px solid rgba(20, 52, 80, 0.14);
  transform: translate(-50%, 6px) rotate(45deg);
}
.envista-isc__hotspot--left .envista-isc__card {
  left: 0;
  --card-x: 0;
}
.envista-isc__hotspot--right .envista-isc__card {
  left: auto;
  right: 0;
  --card-x: 0;
}
.envista-isc__hotspot--left .envista-isc__card::after  { left: 14%; }
.envista-isc__hotspot--right .envista-isc__card::after { left: auto; right: 14%; }

/* Side placement */
.envista-isc__hotspot--side-right .envista-isc__card,
.envista-isc__hotspot--side-left  .envista-isc__card {
  bottom: auto;
  top: 50%;
  --card-x: 0;
  --card-y: calc(-50% + 10px);
  --card-y-open: -50%;
}
.envista-isc__hotspot--side-right .envista-isc__card {
  left: calc(50% + 28px);
  right: auto;
}
.envista-isc__hotspot--side-left .envista-isc__card {
  left: auto;
  right: calc(50% + 28px);
}
/* Transportation pin: card always opens to the right */
.envista-isc__hotspot[data-anim="transportation"] .envista-isc__card {
  right: calc(100% + 20px);
}
.envista-isc__hotspot--side-right .envista-isc__card::after,
.envista-isc__hotspot--side-left  .envista-isc__card::after {
  top: 50%;
  bottom: auto;
  border: 0;
}
.envista-isc__hotspot--side-right .envista-isc__card::after {
  left: 0;
  right: auto;
  border-left: 1px solid rgba(20, 52, 80, 0.14);
  border-bottom: 1px solid rgba(20, 52, 80, 0.14);
  transform: translate(-6px, -50%) rotate(45deg);
}
.envista-isc__hotspot--side-left .envista-isc__card::after {
  left: auto;
  right: 0;
  border-right: 1px solid rgba(20, 52, 80, 0.14);
  border-top: 1px solid rgba(20, 52, 80, 0.14);
  transform: translate(6px, -50%) rotate(45deg);
}

/* ============================================================
   SVG INNER-PART ANIMATIONS
   ============================================================ */

.envista-isc__art svg [id^="Train"],
.envista-isc__art svg .envista-isc__ship,
.envista-isc__art svg .envista-isc__arm-box,
.envista-isc__art svg [id^="Robot"],
.envista-isc__art svg [id^="arm_robot"],
.envista-isc__art svg [id^="belt_conveyor"],
.envista-isc__art svg [id^="box"],
.envista-isc__art svg [id^="forklift"],
.envista-isc__art svg [id^="man"],
.envista-isc__art svg [id^="woman"],
.envista-isc__art svg [id^="Tablet"],
.envista-isc__art svg [id^="keyboard"],
.envista-isc__art svg #Crain {
  transform-box: fill-box;
  transform-origin: center;
}

/* arm-top uses bottom-center pivot */
.envista-isc__art svg .envista-isc__arm-top {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

/* ----- TRANSPORTATION ----- */
.envista-isc:has(.envista-isc__hotspot[data-anim="transportation"]:hover) #Train,
.envista-isc:has(.envista-isc__hotspot[data-anim="transportation"]:focus-visible) #Train,
.envista-isc:has(.envista-isc__hotspot[data-anim="transportation"]:hover) #Train1,
.envista-isc:has(.envista-isc__hotspot[data-anim="transportation"]:focus-visible) #Train1,
.envista-isc:has(.envista-isc__hotspot[data-anim="transportation"]:hover) #Train2,
.envista-isc:has(.envista-isc__hotspot[data-anim="transportation"]:focus-visible) #Train2 {
  animation: envistaIscTrainLoop 5s ease-in-out infinite;
}


/* ----- RETAIL STRATEGY ----- */
.envista-isc:has(.envista-isc__hotspot[data-anim="retail"]:hover) .envista-isc__robot-light,
.envista-isc:has(.envista-isc__hotspot[data-anim="retail"]:focus-visible) .envista-isc__robot-light {
  animation: envistaIscBlink 0.9s steps(2, end) infinite;
}
.envista-isc:has(.envista-isc__hotspot[data-anim="retail"]:hover) #Robot6,
.envista-isc:has(.envista-isc__hotspot[data-anim="retail"]:focus-visible) #Robot6 {
  animation: envistaIscRobotRoll 3.6s ease-in-out infinite alternate;
}

/* ----- AUTOMATION & ROBOTICS ----- */
.envista-isc:has(.envista-isc__hotspot[data-anim="robotics"]:hover) .envista-isc__arm-top,
.envista-isc:has(.envista-isc__hotspot[data-anim="robotics"]:focus-visible) .envista-isc__arm-top {
  animation: envistaIscArmSwing 2.4s ease-in-out infinite alternate;
}
.envista-isc:has(.envista-isc__hotspot[data-anim="robotics"]:hover) .envista-isc__arm-box,
.envista-isc:has(.envista-isc__hotspot[data-anim="robotics"]:focus-visible) .envista-isc__arm-box {
  animation: envistaIscArmBoxShift 2.4s ease-in-out infinite alternate;
}
.envista-isc:has(.envista-isc__hotspot[data-anim="robotics"]:hover) #box,
.envista-isc:has(.envista-isc__hotspot[data-anim="robotics"]:focus-visible) #box {
  animation: envistaIscBoxSlide 2.4s linear infinite;
}
.envista-isc:has(.envista-isc__hotspot[data-anim="robotics"]:hover) #box1,
.envista-isc:has(.envista-isc__hotspot[data-anim="robotics"]:focus-visible) #box1 {
  animation: envistaIscBoxSlide 2.4s linear infinite;
  animation-delay: -1.2s;
}

/* ----- FACILITY DESIGN ----- */
.envista-isc:has(.envista-isc__hotspot[data-anim="facility"]:hover) .envista-isc__beacon,
.envista-isc:has(.envista-isc__hotspot[data-anim="facility"]:focus-visible) .envista-isc__beacon {
  animation: envistaIscBlink 0.9s steps(2, end) infinite;
  transform-box: fill-box;
  transform-origin: center;
}
/* Shelf box darken pulse — brightness filter, not opacity */
.envista-isc:has(.envista-isc__hotspot[data-anim="facility"]:hover) .shelf55,
.envista-isc:has(.envista-isc__hotspot[data-anim="facility"]:focus-visible) .shelf55 {
  animation-delay: 0s;
}
.envista-isc:has(.envista-isc__hotspot[data-anim="facility"]:hover) .inside-shelf55-box-1,
.envista-isc:has(.envista-isc__hotspot[data-anim="facility"]:focus-visible) .inside-shelf55-box-1 {
  animation: envistaIscBoxDarken 2.4s ease-in-out infinite;
  animation-delay: -0.8s;
}
.envista-isc:has(.envista-isc__hotspot[data-anim="facility"]:hover) .inside-shelf55-box-2,
.envista-isc:has(.envista-isc__hotspot[data-anim="facility"]:focus-visible) .inside-shelf55-box-2 {
  animation: envistaIscBoxDarken 2.4s ease-in-out infinite;
  animation-delay: -1.6s;
}

/* ----- LABOR MANAGEMENT ----- */
.envista-isc:has(.envista-isc__hotspot[data-anim="worker"]:hover) #forklift,
.envista-isc:has(.envista-isc__hotspot[data-anim="worker"]:focus-visible) #forklift {
  animation: envistaIscCartRoll 3.2s ease-in-out infinite alternate;
}
.envista-isc:has(.envista-isc__hotspot[data-anim="worker"]:hover) #man,
.envista-isc:has(.envista-isc__hotspot[data-anim="worker"]:focus-visible) #man,
.envista-isc:has(.envista-isc__hotspot[data-anim="worker"]:hover) #man1,
.envista-isc:has(.envista-isc__hotspot[data-anim="worker"]:focus-visible) #man1 {
  animation: envistaIscWorkerStep 1.6s ease-in-out infinite alternate;
}
.envista-isc:has(.envista-isc__hotspot[data-anim="worker"]:hover) .envista-isc__ship,
.envista-isc:has(.envista-isc__hotspot[data-anim="worker"]:focus-visible) .envista-isc__ship {
  animation: envistaIscShipBob 2.5s ease-in-out infinite alternate;
}
.envista-isc:has(.envista-isc__hotspot[data-anim="worker"]:hover) #ship_radar,
.envista-isc:has(.envista-isc__hotspot[data-anim="worker"]:focus-visible) #ship_radar {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: envistaIscRadarSpin 2.5s linear infinite;
}

/* ----- INDICATOR LIGHTS ----- */
.envista-isc:has(.envista-isc__hotspot[data-anim="lights"]:hover) [id^="Tablet"],
.envista-isc:has(.envista-isc__hotspot[data-anim="lights"]:focus-visible) [id^="Tablet"] {
  animation: envistaIscBlink 1.4s steps(2, end) infinite;
}

/* ----- SOFTWARE ----- */
.envista-isc:has(.envista-isc__hotspot[data-anim="software"]:hover) [id^="keyboard"],
.envista-isc:has(.envista-isc__hotspot[data-anim="software"]:focus-visible) [id^="keyboard"] {
  animation: envistaIscBlink 1.1s steps(2, end) infinite;
}
.envista-isc:has(.envista-isc__hotspot[data-anim="software"]:hover) #Truck9,
.envista-isc:has(.envista-isc__hotspot[data-anim="software"]:focus-visible) #Truck9 {
  transform-box: fill-box;
  transform-origin: center;
  animation: envistaIscTruck9Drive 3.5s ease-in-out infinite alternate;
}

/* Always-on sea wave — not hotspot triggered */
#sea5,
.envistaIscSeaWave {
  transform-box: fill-box;
  transform-origin: center;
  animation: envistaIscSeaWave 4s ease-in-out infinite alternate;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes envistaIscTrainLoop {
  0%, 100% { transform: translate(4%, -4%); }
  50%      { transform: translate(0, 0); }
}
@keyframes envistaIscShipBob {
  0%   { transform: rotateX(0deg) translateY(-4.5%); }
  100% { transform: rotateX(16deg) translateY(3%); }
}
@keyframes envistaIscSeaWave {
  0%   { transform: translateX(-0.5%) translateY(-0.8%); }
  100% { transform: translateX(0.5%)  translateY(0.8%); }
}
@keyframes envistaIscRadarSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes envistaIscTruck9Drive {
  from { transform: translate(0, 0); }
  to   { transform: translate(-75%, 50%); }
}
@keyframes envistaIscRobotRoll {
  from { transform: translate3d(0%, 0, 0); }
  to   { transform: translate3d(26%, 22%, 0); }
}
@keyframes envistaIscBoxSlide {
  0%   { transform: translateX(-12%); }
  100% { transform: translateX(24%); }
}
@keyframes envistaIscArmSwing {
  from { transform: rotate(-10deg); }
  to   { transform: rotate(10deg); }
}
@keyframes envistaIscArmBoxShift {
  from { transform: translate3d(-12%, 0, 0); }
  to   { transform: translate3d(12%, 0, 0); }
}
@keyframes envistaIscPackageBob {
  from { transform: translateY(-3%); }
  to   { transform: translateY(3%); }
}
@keyframes envistaIscBoxFade {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
@keyframes envistaIscBoxDarken {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(0.75); }
}
@keyframes envistaIscCartRoll {
  from { transform: translateX(-6%); }
  to   { transform: translateX(10%); }
}
@keyframes envistaIscWorkerStep {
  from { transform: translateX(-1.5%); }
  to   { transform: translateX(1.5%); }
}
@keyframes envistaIscWomanWalk {
  0%, 100% { transform: rotate(-1deg) translateY(0); }
  50%      { transform: rotate(1deg) translateY(0); }
}
@keyframes envistaIscWomanSway {
  0%, 100% { transform: rotate(-1deg) translateY(2px); }
  50%      { transform: rotate(1deg) translateY(-0.5%); }
}
@keyframes envistaIscBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .envista-isc__card {
    width: min(200px, 56vw);
    padding: 10px;
    font-size: 11px;
    line-height: 1.32;
  }
  .envista-isc__card-title { font-size: 12px; margin-bottom: 3px; }
  .envista-isc__card-desc  { font-size: 10.5px; }
  .envista-isc__card-cta   { min-height: 26px; padding: 5px 8px; font-size: 10px; margin-top: 8px; }
}
@media (max-width: 480px) {
  .envista-isc__card { width: min(170px, 48vw); padding: 8px; font-size: 10px; }
  .envista-isc__card-title { font-size: 11px; }
  .envista-isc__card-desc  { font-size: 9.5px; }
  .envista-isc__card-cta   { min-height: 22px; padding: 4px 6px; font-size: 9px; }
}
@media (max-width: 400px) {
  .envista-isc__card { width: min(150px, 44vw); padding: 7px; font-size: 9.5px; line-height: 1.3; }
  .envista-isc__card-title { font-size: 10.5px; margin-bottom: 2px; }
  .envista-isc__card-desc  { font-size: 9px; }
  .envista-isc__card-cta   { min-height: 20px; padding: 3px 6px; font-size: 8.5px; margin-top: 6px; }
  .envista-isc__hotspot--side-right .envista-isc__card { left: calc(50% + 18px); }
  .envista-isc__hotspot--side-left  .envista-isc__card { right: calc(50% + 18px); }
}

/* ---------- desktop reveal-on-hover ----------
   >=768px: dots invisible + non-interactive until cursor enters
   the artwork. Move out → dots fade away. Mobile keeps dots always on. */
@media (min-width: 768px) {
  .envista-isc__hotspot {
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }
  /* hotspots are siblings of .envista-isc__art, not children, so
     trigger on the section. .is-open keeps card usable after cursor leaves. */
  .envista-isc:hover .envista-isc__hotspot,
  .envista-isc__hotspot.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .envista-isc *,
  .envista-isc *::before,
  .envista-isc *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
