/* Global styles for GIF controls inside help HTML (MarkupString, not scoped). */
.help-doc .help-gif-player {
  display: grid;
  width: fit-content;
  max-width: min(100%, 42rem);
  margin: 0.75rem auto;
  vertical-align: top;
  cursor: zoom-in;
}

.help-doc .help-gif-player-img {
  grid-area: 1 / 1;
  display: block;
  width: auto;
  max-width: min(100%, 42rem);
  height: auto;
  max-height: min(70vh, 36rem);
  object-fit: contain;
  margin: 0;
  border-radius: 0.375rem;
  pointer-events: none;
}

.help-doc .help-gif-player-img--hidden {
  display: none;
}

.help-doc .help-gif-player-canvas {
  grid-area: 1 / 1;
  display: block;
  width: auto;
  max-width: min(100%, 42rem);
  height: auto;
  max-height: min(70vh, 36rem);
  margin: 0;
  border-radius: 0.375rem;
  pointer-events: none;
}

.help-doc .help-gif-player-btn {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: end;
  z-index: 2;
  margin: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgb(17 24 39 / 72%);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
}

.help-doc .help-gif-player-btn:hover {
  background: rgb(17 24 39 / 88%);
}

.help-doc .help-gif-player-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.help-doc .help-gif-player-icon {
  width: 1rem;
  height: 1rem;
  display: block;
}

.help-doc .help-gif-player-icon-play {
  display: none;
}

.help-doc .help-gif-player[data-state='paused'] .help-gif-player-icon-pause {
  display: none;
}

.help-doc .help-gif-player[data-state='paused'] .help-gif-player-icon-play {
  display: block;
}
