/* „Vezi versiunea” (I1-T, H7): o versiune veche a temei în iframe, pe o pagină în afara editorului. Variabilele vin din .te
   (admin-theme-editor.css), rezumatul și confirmarea revenirii din admin-theme-editor-publish.css. */

.te .te-viewer-bar .te-title { max-width: none; flex: 1 1 auto; }
body.te-body .te .te-viewer-bar .btn-secondary { background: transparent; border-color: #5b6a61; color: var(--te-bar-fg); }
body.te-body .te .te-viewer-bar .btn-secondary:hover { background: #26302a; color: #fff; }

/* Banda e text, nu mesajul verde al adminului: `body.admin [role=status]` are specificitate mai mare decât `.te .te-viewer-banner`. */
body.te-body .te .te-viewer-banner {
  flex: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--te-border-strong);
  border-radius: 0;
  box-shadow: none;
  background: var(--te-accent-soft);
  color: #0f3d2c;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.te .te-viewer-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 1rem;
  padding: 0.5rem 1rem;
  background: var(--te-surface);
  border-bottom: 1px solid var(--te-border);
}
.te .te-viewer-actions details { min-width: 0; }
/* Un panou desfăcut nu are voie să mănânce tot iframe-ul: se derulează în el. */
.te .te-viewer-actions details[open] > :not(summary) { max-height: 40dvh; overflow-y: auto; }
.te .te-viewer-note { margin: 0.5rem 0 0; font-size: 0.875rem; }
.te .te-viewer-changes .te-version-summary { margin-top: 0.5rem; }

.te .te-viewer-frame { flex: 1 1 auto; min-height: 0; width: 100%; border: 0; background: #fff; }

@media (max-width: 480px) {
  .te .te-viewer-actions { padding-inline: 0.75rem; }
  .te .te-viewer-actions details { flex: 1 1 100%; }
}
