/* Shared fixed-format Standard Print layout. Plugin Republic controls field visibility. */
body.single-product.cld-fixed-print-product .cld-bc-form {
  --cld-navy: #0b1f3a;
  --cld-blue: #0797f6;
  --cld-border: #dce5ef;
}

/* Compact Pricing -> Upload Design: the shared price preview reserves
   space for two-line quotes. Fixed-format products have a single Total line.
   Keep the native PEWC next-step control and its handlers intact. */
body.single-product.cld-fixed-print-product .cld-bc-form.cld-print-step-one .cld-bc-price-box {
  min-height: 0 !important;
  gap: 0 !important;
  margin: 4px 0 0 !important;
}
body.single-product.cld-fixed-print-product .cld-bc-form.cld-print-step-one .cld-print-next {
  margin-top: 8px !important;
}

/* The shared Standard Print CSS handles the individual field controls and
   step navigation. Only the pair of native PEWC upload rows uses a grid. */
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-upload-fields {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 16px !important;
  row-gap: 12px !important;
  align-items: start !important;
  min-width: 0;
  width: 100%;
}
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-upload-fields > * {
  grid-column: 1 / -1;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-upload-fields > .cld-bc-upload-front {
  grid-column: 1 !important;
}
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-upload-fields > .cld-bc-upload-back {
  grid-column: 2 !important;
}
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-upload-fields .cld-bc-upload-front .pewc-field-label,
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-upload-fields .cld-bc-upload-back .pewc-field-label {
  display: block !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  font-weight: 600 !important;
}
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-upload-fields .cld-bc-upload-front .pewc-item-field-wrapper,
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-upload-fields .cld-bc-upload-back .pewc-item-field-wrapper {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-upload-fields .cld-bc-upload-front .pewc-upload-field,
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-upload-fields .cld-bc-upload-back .pewc-upload-field {
  width: 100% !important;
  min-width: 0 !important;
}

/* Upload field visibility is intentionally NOT controlled here.
   Plugin Republic Conditions are the single source of truth for what is shown. */
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-front-required-marker {
  color: #9a3412;
}
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-front-required-marker[hidden] {
  display: none !important;
}
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-artwork-error {
  margin: 7px 0 0 !important;
  color: #b42318 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-artwork-error[hidden] {
  display: none !important;
}
body.single-product.postid-36693 .cld-bc-form .cld-bc-artwork-invalid .pewc-dropzone,
body.single-product.postid-36693 .cld-bc-form .cld-bc-artwork-invalid .dropzone {
  border-color: #d92d20 !important;
}

/* PEWC stock quantity input is not the number of printed pieces. One
   configured quantity tier must equal one cart line. */
body.single-product.cld-fixed-print-product .cld-bc-form > .quantity {
  display: none !important;
}
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-step-total[hidden] {
  display: none !important;
}
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-price-box.is-error,
body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-step-total.is-error,
body.single-product.cld-fixed-print-product .cld-bc-fallback {
  color: #9a3412;
}
body.single-product.cld-fixed-print-product .cld-bc-form .single_add_to_cart_button[data-cld-bc-price-blocked] {
  opacity: .55 !important;
  cursor: not-allowed !important;
}
body.single-product.cld-fixed-print-product .cld-bc-form.cld-print-step-one .single_add_to_cart_button {
  display: none !important;
}
@media (max-width: 767px) {
  body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-upload-fields {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 14px !important;
  }
  body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-upload-fields > .cld-bc-upload-front,
  body.single-product.cld-fixed-print-product .cld-bc-form .cld-bc-upload-fields > .cld-bc-upload-back {
    grid-column: 1 !important;
  }
}
