/** Service illustrations. Late-loaded after legacy rich-text styles. */
html body[class*="path-"] #wrapper .service-lottie {
  width: min(100%, 28rem);
  max-width: 100%;
  min-width: 0;
  margin: 0.9rem auto 1.15rem;
  text-align: right;
}

html body[class*="path-"] #wrapper .service-lottie--hub {
  width: 100%;
  margin: 0 0 0.9rem;
}

html body[class*="path-"] #wrapper .service-lottie__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #d7ecdf;
  border-radius: 16px;
  background: #f7fbf8;
}

html body[class*="path-"] #wrapper .service-lottie--hub .service-lottie__stage {
  aspect-ratio: 16 / 9;
}

html body[class*="path-"] #wrapper .service-lottie .service-lottie__fallback,
html body[class*="path-"] #wrapper .service-lottie__animation,
html body[class*="path-"] #wrapper .service-lottie__animation > svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
  pointer-events: none;
}

html body[class*="path-"] #wrapper .service-lottie__animation {
  visibility: hidden;
}

html body[class*="path-"] #wrapper .service-lottie.is-loaded .service-lottie__animation {
  visibility: visible;
}

html body[class*="path-"] #wrapper .service-lottie.is-loaded .service-lottie__fallback {
  visibility: hidden;
}

/* Reserve the control row even without JS, during loading, and for stills. */
html body[class*="path-"] #wrapper .service-lottie__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 44px;
  margin-top: 2px;
}

html body[class*="path-"] #wrapper .service-lottie .service-lottie__replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 44px;
  margin: 0;
  padding: 0.4rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #0e6c3e;
  -webkit-text-fill-color: #0e6c3e;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}

html body[class*="path-"] #wrapper .service-lottie .service-lottie__replay[hidden] {
  display: none !important;
}

html body[class*="path-"] #wrapper .service-lottie .service-lottie__replay:hover {
  background: #eaf7ee;
  color: #0e6c3e;
  -webkit-text-fill-color: #0e6c3e;
  box-shadow: none;
  transform: none;
}

html body[class*="path-"] #wrapper .service-lottie .service-lottie__replay:focus-visible {
  /* Override the legacy theme's important button-focus reset. */
  outline: 2px solid #0e6c3e !important;
  outline-offset: 2px !important;
  background: #eaf7ee;
}
