/* Optional overrides are confined to QR/barcode print surfaces. */
.corr-barcode.label-layout-text-size .corr-barcode-text .info-row,
.corr-barcode.label-layout-text-size .corr-barcode-text .company-name {
    font-size: var(--label-text-size) !important;
}

.corr-barcode.label-layout-text-spacing .corr-barcode-text .info-row,
.corr-barcode.label-layout-text-spacing .corr-barcode-text .company-name {
    margin-bottom: var(--label-text-spacing) !important;
    line-height: normal;
}

.label-layout-sticker-preview {
    display: block;
    width: 480px;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
}

/* Scale the generated code itself; allow long identifiers to fit the label. */
.corr-barcode.label-layout-code-size .barcode-div canvas,
.corr-barcode.label-layout-code-size .barcode-div img {
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

.corr-barcode .corr-barcode-surface.label-layout-compact {
    min-height: 0 !important;
}

.corr-barcode .label-layout-compact .corr-barcode-body {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    justify-content: flex-start !important;
    box-sizing: border-box;
    min-height: var(--label-content-height, 0px) !important;
    padding-bottom: var(--label-bottom-padding) !important;
}

.corr-barcode .label-layout-compact .barcode-div {
    line-height: 0;
}

.barcode-background-preview.label-layout-preview-compact,
.barcode-preview-wrapper.label-layout-preview-compact {
    min-height: 0;
    height: auto;
}
