/* =========================================================
   Free Barcode Generator — page-specific styles
   (extends style.css, gst-calculator.css, late-fee-calculator.css)
   ========================================================= */

.mt-12 { margin-top: 12px; }

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.label-row .field-label {
  margin-bottom: 0;
}
.field-label small {
  font-weight: 400;
  color: var(--muted);
}
.link-btn {
  border: 0;
  background: none;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 4px;
}
.link-btn:hover {
  text-decoration: underline;
}

.two-col-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.three-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 12px;
}

.bc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e6e6e6;
  outline: none;
  cursor: pointer;
  margin-top: 18px;
}
.bc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand-indigo);
  box-shadow: 0 2px 8px rgba(79, 70, 229, .35);
  cursor: pointer;
}
.bc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand-indigo);
  cursor: pointer;
}

.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  padding: 8px 12px;
  background: #fff;
  height: 50px;
}
.color-picker-wrap input[type="color"] {
  border: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  cursor: pointer;
}
.color-picker-wrap span {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* Preview column */
.bc-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.bc-result-head h3 {
  margin-bottom: 0;
}
.bc-status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, .2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.bc-stage {
  background: rgba(255, 255, 255, .14);
  border: 1px dashed rgba(255, 255, 255, .38);
  border-radius: 18px;
  padding: 24px 16px;
  min-height: 210px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  overflow-x: auto;
}
.bc-label-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}
#bcSvg {
  display: block;
  max-width: 100%;
  height: auto;
}

.bc-meta-rows {
  margin-bottom: 18px;
}
.bc-download-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bc-download-btns .btn {
  padding: 12px 16px;
  font-size: 15px;
}

/* Printable multi-label sheet */
.sheet-wrap {
  margin-top: 28px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  animation: fadeUp .35s ease both;
}
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.sticker-item {
  border: 1px dashed #bbb;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sticker-item svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .two-col-equal,
  .three-col,
  .bc-download-btns {
    grid-template-columns: 1fr;
  }
}

/* Print-only layout so printing gives a clean A4 sticker sheet */
@media print {
  .site-header,
  .tool-hero,
  .calc-card,
  .lf-content-section,
  .lf-footer-cta,
  .site-footer,
  .chat-fab,
  .chat-widget,
  .to-top,
  .schedule-head {
    display: none !important;
  }
  .sheet-wrap {
    display: block !important;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
  .sticker-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .sticker-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
