/* Shared certificate renderer styles — used identically by the in-browser editor preview
   and the headless-Chromium PDF, so the PDF matches the editor pixel-for-pixel. */

.cert-canvas {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.cert-el {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.cert-el-text,
.cert-el-token {
  white-space: pre-wrap;
  word-break: break-word;
  width: 100%;
}

.cert-el-image img,
.cert-el-token img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cert-el-shape,
.cert-el-line {
  display: block;
}

/* Placeholder shown for an image token with no value (designer preview only). */
.cert-token-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #9ca3af;
  color: #6b7280;
  font: 600 12px/1.2 'Segoe UI', Arial, sans-serif;
  text-align: center;
  background: rgba(0, 0, 0, 0.02);
}
