.labelsize {
  width: min(100%, 480px);
  margin: 0 0 1rem;
}

[hidden] {
  display: none !important;
}

.labelsize > span {
  display: block;
  margin-bottom: .4rem;
  color: #000;
  font-weight: 650;
}

.labelsize-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.labelsize-buttons .active {
  outline: 3px solid #000;
  outline-offset: 1px;
}

.orientation-title {
  margin-top: .8rem;
}

.label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3mm;
}

.label h1 {
  max-width: 100%;
  margin: 1.5mm 0;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.labelplace,
.label strong,
.boxnote {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.loanlocation {
  display: block;
  max-width: 100%;
  margin-top: 1mm;
  color: #000;
  font-size: 8pt;
  overflow-wrap: anywhere;
}

@media print {
  .labelsize {
    display: none;
  }

  .label {
    margin: 0;
    border: 0;
    break-inside: avoid;
  }
}
