/* YELLOWFIN snapshot tokens; certificate composition is a website adaptation. */
.dealer-main {
  padding-block: var(--yf-spacing-5xl);
}

.dealer-main h1 {
  max-width: none;
  text-align: center;
  margin-bottom: var(--yf-spacing-3xl);
}

.certificate {
  width: min(100%, 720px);
  margin: 0 auto;
}

.certificate-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: var(--yf-border-width-default) solid var(--yf-color-border-subtle);
  border-radius: var(--yf-radius-md);
  background: var(--yf-color-bg-light-surface);
  cursor: zoom-in;
}

.certificate-preview:disabled {
  cursor: default;
}

.certificate-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.certificate-hint {
  margin-top: var(--yf-spacing-lg);
  color: var(--yf-color-text-secondary);
  text-align: center;
}

.certificate-open {
  overflow: hidden;
}

.certificate-dialog {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--yf-spacing-lg);
  border: 0;
  background: transparent;
  color: var(--yf-color-text-primary);
}

.certificate-dialog::backdrop {
  background: rgba(4, 17, 23, 0.92);
}

.certificate-dialog-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 1440px;
  margin-inline: auto;
  gap: var(--yf-spacing-lg);
  pointer-events: none;
}

.certificate-toolbar {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: var(--yf-spacing-md);
}

.certificate-toolbar button,
.certificate-viewport {
  pointer-events: auto;
}

.certificate-viewport {
  min-height: 0;
  align-self: center;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}

.certificate-viewport img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  object-fit: contain;
}

.is-actual-size .certificate-viewport {
  width: 100%;
  flex: 1;
}

.is-actual-size .certificate-viewport img {
  width: 1985px;
  max-width: none;
  max-height: none;
  margin-inline: auto;
}

@media (max-width: 480px) {
  .certificate-dialog {
    padding: var(--yf-spacing-md);
  }
}
