@import url('/tools/zt/eng/pdfstamp/form.css');

.stamp-place {
  padding: 0;
  border: 0;
  margin: 0;
  min-width: 0;
}
.stamp-place legend,
#preview figcaption {
  font-weight: 600;
  margin-bottom: 8px;
}
.stamp-six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.stamp-six label {
  position: relative;
}
.stamp-six input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.stamp-six span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 4px;
  border: 1px solid #999;
  text-align: center;
  font-size: 14px;
}
.stamp-six input:checked + span {
  color: #fff;
  background: #202020;
}
.stamp-six input:focus-visible + span {
  outline: 3px solid #345cc9;
  outline-offset: 2px;
}
#preview {
  margin: 0;
  text-align: center;
}
#preview canvas {
  display: block;
  max-width: 100%;
  max-height: 235px;
  margin: auto;
  border: 1px solid #aaa;
  width: auto;
  height: auto;
}
.stamp-number {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
#preview[hidden] {
  display: none;
}
.stamp-six label {
  display: grid;
}
@media (max-width: 620px) {
  #preview canvas { max-height: 96px; }
  .stamp-number {
    grid-template-columns: 1fr;
  }
  .stamp-six span {
    font-size: 13px;
  }
}

#preview-zoom { min-height: 44px; }
#preview:has(#preview-zoom[aria-expanded="true"]) canvas { max-height: none; }
