/* Cooling and heat flow controls are confined to the motor thermal artwork. */
#thermal [data-thermal-flow] {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: initial;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#thermal [data-thermal-flow]:focus-visible {
  outline: 2px solid #6ca6c4;
  outline-offset: 8px;
}
#thermal .mt-flow-pulses {
  opacity: 0;
  transition: opacity 320ms ease;
}
#thermal [data-flow-active="true"] .mt-flow-pulses { opacity: .94; }
#thermal .mt-flow-pulse {
  fill: none;
  stroke-width: 2.6px;
  stroke-linecap: round;
  stroke-dasharray: 5 21;
  stroke-dashoffset: 104;
  animation: mt-path-travel 3s linear infinite paused;
  animation-delay: var(--flow-delay, 0s);
}
#thermal .mt-flow-cool {
  stroke: #6bbfeb;
  filter: drop-shadow(0 0 2px #77c9f380);
}
#thermal .mt-flow-heat {
  stroke: #f4775d;
  animation-duration: 2.7s;
  filter: drop-shadow(0 0 2px #f4775d60);
}
#thermal [data-flow-active="true"] .mt-flow-pulse { animation-play-state: running; }
#thermal .mt-flow-hint {
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #697c8f;
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.6;
  pointer-events: none;
}
#thermal .mt-flow-touch { display: none; }
#thermal [data-flow-touch="true"] .mt-flow-touch { display: inline; }
#thermal [data-flow-touch="true"] .mt-flow-desktop { display: none; }
@keyframes mt-path-travel { to { stroke-dashoffset: 0; } }
@media (hover: none), (pointer: coarse) {
  #thermal .mt-flow-touch { display: inline; }
  #thermal .mt-flow-desktop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #thermal .mt-flow-pulses { transition: none; }
  #thermal .mt-flow-pulse { animation: none; stroke-dasharray: none; }
}

/* The animated explanation sits on the product, rather than behind the photograph. */
#thermal .mt-flow-overlay { z-index: 2; overflow: visible; }
#thermal .mr-thermal-motor { z-index: 1; }
#thermal .mt-flow-hint { z-index: 3; }
#thermal .mt-flow-track { fill: none; stroke-width: 1.3px; opacity: .38; }
#thermal .mt-flow-pulse { stroke-width: 3px; }
#thermal .mt-heat-source {
  fill: #ff8d72;
  stroke: #fff0e8;
  stroke-width: 1.8px;
  filter: drop-shadow(0 0 9px #ff7359);
}
#thermal [data-flow-active="true"] > .mr-airflow:not(.mt-flow-overlay) > g[stroke^="url"],
#thermal [data-flow-active="true"] > .mr-airflow:not(.mt-flow-overlay) > path { opacity: 0; }
#thermal > .mr-airflow { transition: opacity 320ms ease; }
