.solidae-document-viewer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.solidae-document-viewer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #d9e3ee;
  border-radius: 16px;
  background: #f8fafc;
}

.solidae-document-viewer__title-wrap {
  min-width: 0;
  flex: 1 1 auto;
}

.solidae-document-viewer__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: #111827;
  word-break: break-word;
}

.solidae-document-viewer__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.solidae-document-viewer__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #c7d3e1;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: all 180ms ease;
}

.solidae-document-viewer__action:hover,
.solidae-document-viewer__action:focus-visible {
  background: #eff4fa;
  border-color: #afc0d3;
  color: #0f172a;
  outline: none;
}

.solidae-document-viewer__frame {
  height: 720px;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid #dde6ef;
  border-radius: 18px;
  background: #ffffff;
}

.solidae-document-viewer__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.solidae-document-viewer__pdf-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: #ffffff;
}

.solidae-document-viewer__fallback {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px;
  text-align: center;
}

.solidae-document-viewer__fallback-text {
  margin: 0;
  max-width: 620px;
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
}

.solidae-document-viewer-empty {
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #475569;
  background: #f8fafc;
}

@media (max-width: 767px) {
  .solidae-document-viewer__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .solidae-document-viewer__actions {
    width: 100%;
    justify-content: flex-start;
  }
}
