/*
 * pw_dompdf_viewer shortcode styling
 * Keep layout CSS out of inline style attributes.
 */
.pw-dompdf-viewer {
  position: relative;
  max-width: 100%;
  max-height: 100vh;
  /* Default: landscape (A4-ish) */
  aspect-ratio: 1.414 / 1;
}

.pw-dompdf-viewer.pw-orientation-portrait {
  aspect-ratio: 1 / 1.414;
}

.pw-dompdf-viewer-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pw-dompdf-viewer-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
}

/* Avoid focus ring being invisible */
.pw-dompdf-viewer-overlay:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
