/* Tutoriel Crawl Site : boutons et dialogue communs aux outils. */
html body.app-crawl .tool-data-actions.crawl-video-actions[data-tool-data-actions] {
  width: min(100%, 44rem);
}

html body.app-crawl .tool-data-actions.crawl-video-actions[data-tool-data-actions] > .tool-data-action[data-tool-dashboard] {
  flex: 1 1 8.5rem;
  text-decoration: none;
}

html body.app-crawl .tool-data-actions.crawl-video-actions > [data-crawl-video-open] > i {
  color: var(--suite-status-bad, #ef4444) !important;
}

body.crawl-video-dialog-open {
  overflow: hidden;
}

html body dialog.tool-data-dialog.crawl-video-dialog .tool-data-dialog-shell {
  min-width: 0;
  min-height: 0;
  max-height: min(calc(90vh - 2px), 918px);
  max-height: min(calc(90dvh - 2px), 918px);
  border: 0;
  color: var(--tool-dialog-text);
  background: var(--tool-dialog-bg);
}

html body dialog.tool-data-dialog.crawl-video-dialog .tool-data-dialog-head {
  flex: 0 0 auto;
  gap: 18px;
  padding: 20px 22px 18px;
  border: 0;
  border-bottom: 1px solid var(--tool-dialog-line);
  color: var(--tool-dialog-text);
  background: linear-gradient(135deg, var(--tool-dialog-panel-strong), var(--tool-dialog-bg) 72%);
}

html body dialog.tool-data-dialog.crawl-video-dialog .tool-data-dialog-body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 20px 22px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--tool-dialog-text);
  background: var(--tool-dialog-panel);
}

.crawl-video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.crawl-video-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

html body dialog.tool-data-dialog.crawl-video-dialog .crawl-video-help {
  margin: 16px 0 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

html body dialog.tool-data-dialog.crawl-video-dialog .crawl-video-help a {
  color: var(--tool-dialog-cyan) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html body dialog.tool-data-dialog.crawl-video-dialog :is(.tool-data-dialog-close, .crawl-video-help a):focus-visible {
  outline: 3px solid var(--tool-dialog-cyan) !important;
  outline-offset: 3px;
}

html[data-seo-style="style1"] body dialog.tool-data-dialog.crawl-video-dialog {
  --tool-dialog-bg: var(--dev-bg-darker, #090c1d);
  --tool-dialog-panel: var(--dev-card, #1b1936);
  --tool-dialog-panel-strong: var(--dev-card-strong, #13152d);
  --tool-dialog-line: var(--dev-border, rgba(170, 167, 191, 0.3));
  --tool-dialog-text: var(--dev-text, #f5f3fc);
  --tool-dialog-muted: var(--dev-muted, #d0ccdf);
  --tool-dialog-cyan: var(--dev-cyan, #80d5e2);
}

@media (max-width: 640px) {
  html body dialog.tool-data-dialog.crawl-video-dialog {
    width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    border-radius: 14px !important;
  }

  html body dialog.tool-data-dialog.crawl-video-dialog .tool-data-dialog-shell {
    max-height: calc(100vh - 22px);
    max-height: calc(100dvh - 22px);
  }

  html body dialog.tool-data-dialog.crawl-video-dialog .tool-data-dialog-head {
    gap: 10px;
    padding: 14px 12px;
  }

  html body dialog.tool-data-dialog.crawl-video-dialog .tool-data-dialog-body {
    padding: 14px 12px;
  }
}

@media print {
  html body dialog.tool-data-dialog.crawl-video-dialog,
  .crawl-video-actions [data-tool-dashboard],
  [data-crawl-video-open] {
    display: none !important;
  }
}
