.license-document-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: 190px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  color: #43536b;
  background: #f4f6fa;
  cursor: pointer;
}
.license-document-preview:focus-visible { outline: 3px solid #ff751f; outline-offset: 3px; }
.license-document-preview > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #edf0f5; }
.license-document-preview-placeholder { display: grid; justify-items: center; gap: 7px; padding: 18px; text-align: center; font-size: 12px; font-weight: 650; line-height: 1.4; }
.license-document-preview-placeholder > i { font-size: 32px; color: #ff741e; }
.license-document-preview-placeholder small { color: #64748b; font-size: 10px; font-weight: 400; }
.license-document-preview-caption { position: absolute; right: 8px; bottom: 8px; left: 8px; padding: 7px 9px; border-radius: 8px; color: #fff; background: rgb(18 29 46 / 88%); font-size: 11px; font-weight: 700; text-align: center; }
.license-document-viewer { width: min(1080px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: hidden; border: 1px solid #dfe5ee; border-radius: 18px; color: #17253c; background: #fff; box-shadow: 0 24px 80px rgb(5 15 32 / 35%); }
.license-document-viewer::backdrop { background: rgb(8 17 33 / 72%); }
.license-document-viewer-surface { display: flex; flex-direction: column; height: min(850px, calc(100dvh - 34px)); min-height: 0; }
.license-document-viewer header, .license-document-viewer footer { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 14px; padding: 14px 18px; }
.license-document-viewer header { border-bottom: 1px solid #dfe5ee; }
.license-document-viewer h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 16px; font-weight: 750; line-height: 1.4; }
.license-document-viewer header button, .license-document-viewer footer button { flex-shrink: 0; min-height: 42px; }
.license-document-viewer-body { display: grid; place-items: center; flex: 1 1 0; min-height: 0; overflow: auto; color: #4e5b70; background: #edf0f5; text-align: center; }
.license-document-viewer-body img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.license-document-viewer-body object { width: 100%; height: 100%; min-height: 0; border: 0; background: #fff; }
.license-document-viewer footer { border-top: 1px solid #dfe5ee; font-size: 11px; line-height: 1.5; }
.license-document-viewer footer span { max-width: 640px; }
@media (max-width: 600px) {
  .license-document-viewer { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .license-document-viewer-surface { height: calc(100dvh - 18px); }
  .license-document-viewer header, .license-document-viewer footer { gap: 8px; padding: 11px; }
  .license-document-viewer h2 { font-size: 13px; }
  .license-document-viewer footer { align-items: stretch; flex-direction: column; }
  .license-document-preview { height: 210px; }
}
