.label-print-button {
  margin-left: 5px;
  padding: 5px 8px;
  border: 1px solid #cfe0f3;
  border-radius: 8px;
  color: #176fcb;
  background: #eef6ff;
  font-size: 9px;
  font-weight: 750;
}

.label-print-button:hover { background: #e1efff; }
.label-modal { width: min(760px, 100%); }

.label-product-summary {
  padding: 13px 14px;
  border: 1px solid #dce8f4;
  border-radius: 11px;
  background: #f5f9fd;
}

.label-product-summary strong,
.label-product-summary span { display: block; }
.label-product-summary strong { font-size: 12px; }
.label-product-summary span { margin-top: 4px; color: #718096; font-size: 9px; }

.label-settings,
.label-size-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.label-settings { margin-top: 15px; }
.label-settings label > span,
.label-size-grid label > span {
  display: block;
  margin-bottom: 6px;
  color: #607184;
  font-size: 9px;
  font-weight: 750;
}

.label-settings input[type=number],
.label-settings select,
.label-size-grid input {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #dfe6ee;
  border-radius: 10px;
  background: #fbfcfe;
}

.label-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-check input { width: 17px; height: 17px; }
.label-check span { margin: 0 !important; }

.label-size-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 0 9px;
  padding-top: 14px;
  border-top: 1px solid #e4eaf0;
}

.label-size-heading strong { font-size: 11px; }
.label-size-heading span { color: #7b8b9a; font-size: 8px; }

.label-pair-note {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  color: #176fcb;
  background: #eef6ff;
  font-size: 8px;
  font-weight: 700;
}

.label-template-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  background: #dfe5eb;
  border-radius: 12px;
}

.label-template-preview.single-column {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}

.label-settings select:disabled {
  color: #98a4b0;
  background: #eef1f4;
  cursor: not-allowed;
}

.label-template-preview > div {
  overflow: hidden;
  background: #fff;
  border: 1px dashed #aab6c2;
  border-radius: 7px;
}

.label-template-preview .label {
  position: static;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  color: #000;
  font-family: Arial, sans-serif;
}

.label-template-preview .label-head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.label-template-preview .label-brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.label-template-preview .label-brand strong {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.label-template-preview .label-brand small {
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .15em;
}

.label-template-preview .label-name {
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  text-align: center;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.04;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.label-template-preview .label-footer {
  display: flex;
  align-items: stretch;
  gap: 5px;
  min-height: 30px;
}

.label-template-preview .label-code {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.label-template-preview .label-code small {
  margin-bottom: 2px;
  font-size: 5px;
  font-weight: 800;
  letter-spacing: .1em;
}

.label-template-preview .label-code span {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.label-template-preview .label-price {
  display: flex;
  align-items: center;
  padding: 0 5px;
  font-size: 8px;
  white-space: nowrap;
}

.label-template-preview .label-modern {
  border: 1.5px solid #000;
  border-radius: 9px;
}

.label-template-preview .label-modern .label-head {
  margin: -1px -1px 0;
  padding: 4px;
  color: #fff;
  background: #000;
  border-radius: 7px 7px 3px 3px;
}
.label-template-preview .label-modern .label-footer {
  padding: 4px 5px;
  border-left: 4px solid #000;
  border-radius: 5px;
  background: #ededed;
}

.label-template-preview .label-framed {
  border: 3px double #000;
  border-radius: 7px;
}

.label-template-preview .label-framed .label-head { padding-bottom: 3px; border-bottom: 1px solid #000; }
.label-template-preview .label-framed .label-footer { padding-top: 4px; border-top: 1px solid #000; }
.label-template-preview .label-framed .label-price { color: #fff; background: #000; border-radius: 4px; }
.label-template-preview .label-minimal .label-head { padding-bottom: 3px; border-bottom: 1.5px solid #000; }
.label-template-preview .label-minimal .label-footer { padding-top: 4px; border-top: 1px solid #000; }
.label-template-preview .blank { visibility: hidden; }
.label-size-note { margin: 9px 0 0; color: #7d8b99; font-size: 8px; text-align: center; }

@media (max-width: 600px) {
  .label-settings,
  .label-size-grid,
  .label-template-preview { grid-template-columns: 1fr; }
  .label-check { grid-column: auto; }
  .label-size-heading { display: block; }
  .label-size-heading span { display: block; margin-top: 4px; }
  .label-template-preview > div:last-child { display: none; }
}
