.scroll-to-top.static-scroll-visible {
  opacity: 1;
  visibility: visible;
}

.static-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.static-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.document-viewer {
  margin: 0;
  width: var(--document-width);
  max-width: 100%;
}
.document-viewer-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 15px;
  margin-bottom: 10px;
  font-size: 16px;
}
.document-viewer-bar a {
  background: #1e73be;
  color: #fff;
  padding: 10px 20px 10px 10px;
  text-decoration: none;
}
.document-viewer iframe {
  display: block;
  width: 100%;
  height: var(--document-height);
  border: 0;
}
@media (max-width: 768px) {
  .document-viewer iframe {
    height: min(var(--document-height), calc(100vw + 120px));
  }
}

#document-dialog {
  position: relative;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 36px);
  min-width: 120px;
  padding: 7px;
  border: 0;
  background: #fff;
  box-shadow: 0 0 10px #0008;
  color: inherit;
}
#document-dialog::backdrop {
  background: #000c;
}
.document-dialog-content {
  max-width: min(930px, calc(100vw - 42px));
  max-height: calc(100dvh - 96px);
  overflow: auto;
}
.document-dialog-content .document-viewer {
  width: min(var(--document-width), 930px);
  min-width: min(800px, calc(100vw - 42px));
}
.document-dialog-content .document-viewer iframe {
  height: min(var(--document-height), calc(100dvh - 170px));
}
.document-dialog-content img {
  max-width: 100%;
  height: auto;
}
.document-dialog-close {
  position: sticky;
  float: right;
  bottom: 0;
  margin: 6px 0 0 6px;
  padding: 0 8px;
  background: #000;
  color: #fff;
  border: 0;
  line-height: 1.4;
  font-size: 21px;
  cursor: pointer;
}
.application-preview {
  border: 0;
  padding: 0;
  min-width: 0;
}
.legacy-form-link {
  display: inline-block;
}

.document-viewer-manual {
  display: flex;
  flex-direction: column;
  height: 840px;
}
.document-viewer-manual .document-viewer-bar {
  display: block;
  margin: 0;
}
.document-viewer-manual .document-viewer-bar p {
  text-align: center;
  margin: 10px 0;
}
.document-viewer-manual .document-viewer-actions {
  margin-bottom: 10px;
}
.document-viewer-manual .document-viewer-bar a {
  display: inline-block;
  background: #2271b1;
  border-radius: 3px;
  font-size: 16px;
}
.document-viewer-manual iframe {
  flex: 1;
  min-height: 0;
}
@media (max-width: 1024px) {
  .document-viewer-manual { height: 700px; }
}
@media (max-width: 640px) {
  .document-viewer-manual { height: 400px; }
}
@media (max-width: 576px) {
  .document-viewer-manual .document-viewer-actions { text-align: center; }
}
