.pdf-video-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pdf-video-controls[hidden] {
  display: none !important;
}

.pdf-js-main-action .btn.pdf-video-attach-btn {
  border-color: #fb923c;
  background: #c2410c;
  color: #fff7ed;
  box-shadow: 0 7px 18px rgba(194, 65, 12, 0.24);
}

.pdf-js-main-action .btn.pdf-video-attach-btn:hover,
.pdf-js-main-action .btn.pdf-video-attach-btn:focus-visible {
  border-color: #fdba74;
  background: #ea580c;
  color: #ffffff;
  box-shadow: 0 9px 22px rgba(234, 88, 12, 0.32);
}

.pdf-js-main-action .btn.pdf-video-attach-btn.is-pending:not(:disabled) {
  border-color: #f97316;
  background: #7c2d12;
}

.pdf-video-pending-marker,
.pdf-video-seal-marker {
  position: absolute;
  z-index: 24;
  box-sizing: border-box;
  pointer-events: auto;
}

.pdf-video-pending-marker {
  border: 3px solid #f97316;
  border-radius: 6px;
  background: rgba(249, 115, 22, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.82), 0 8px 24px rgba(124, 45, 18, 0.28);
  touch-action: none;
  user-select: none;
  cursor: move;
}

.pdf-video-pending-marker.is-dragging {
  cursor: grabbing;
}

.pdf-video-pending-remove {
  position: absolute;
  z-index: 2;
  top: -11px;
  left: -11px;
  display: grid;
  box-sizing: border-box;
  width: 22px;
  min-width: 0;
  height: 22px;
  min-height: 0;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #dc2626;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.5);
  font: 800 0.9rem/1 system-ui, sans-serif;
  place-items: center;
  touch-action: none;
  cursor: pointer;
}

.pdf-video-pending-remove:hover,
.pdf-video-pending-remove:focus-visible {
  background: #b91c1c;
  outline: 2px solid #fecaca;
  outline-offset: 2px;
}

.pdf-video-seal-marker {
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: transparent;
}

.pdf-video-open-button {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 2px solid #ccfbf1;
  border-radius: 50%;
  place-items: center;
  color: #ecfeff;
  background: #0f766e;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
  transform: translate(50%, -50%);
  transform-origin: center;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  cursor: pointer;
}

.pdf-video-open-button svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  pointer-events: none;
}

.pdf-video-open-button:hover,
.pdf-video-open-button:focus-visible {
  background: #0d9488;
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.48);
}

.pdf-video-open-button:focus-visible {
  outline: 2px solid #99f6e4;
  outline-offset: 2px;
}

body.is-pdf-video-positioning .pdf-js-page-stage {
  cursor: crosshair;
}

@media (max-width: 768px) {
  .pdf-video-controls {
    width: 100%;
  }

  .pdf-video-controls .btn {
    flex: 1 1 0;
  }

}
