:root { font-family: "Segoe UI", Arial, sans-serif; color: #11315b; background: #edf3ed; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; }
.card { box-sizing: border-box; width: min(880px, 94vw); background: white; border-radius: 14px; padding: 30px; box-shadow: 0 8px 30px #001c351c; }
h1 { margin: 0 0 8px; color: #173f73; }
.intro { margin: 0 0 22px; }
.prints-charming-panel { margin: 0 0 18px; padding: 18px 20px; border: 1px solid #bfd1df; border-radius: 9px; background: #f5f9fc; }
.prints-charming-intro h2 { margin: 0 0 7px; color: #173f73; font-size: 1.28rem; }
.prints-charming-intro p { margin: 0; }
.prints-charming-capabilities { display: flex; flex-wrap: wrap; gap: 4px 9px; margin-top: 11px !important; color: #244c70; }
.prints-charming-capabilities strong { color: #173f73; }
.prints-charming-more { margin-top: 11px !important; font-weight: 750; }
.prints-charming-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.prints-charming-routes > div { display: flex; flex-direction: column; align-items: flex-start; padding: 13px 14px; border: 1px solid #d3dfe8; border-radius: 7px; background: #fff; }
.prints-charming-routes strong { color: #173f73; }
.prints-charming-routes p { flex: 1; margin: 5px 0 11px; color: #48647b; font-size: .9rem; }
.prints-charming-routes a { display: inline-block; padding: 7px 10px; border: 1px solid #6d94b6; border-radius: 5px; color: #174f85; background: #eef5fb; font-size: .8rem; font-weight: 800; text-decoration: none; }
.prints-charming-routes a:hover, .prints-charming-routes a:focus-visible { border-color: #174f85; background: #e1eef8; text-decoration: underline; }
.online-special-banner { display: grid; gap: 6px; margin: 0 0 24px; padding: 20px 22px; border: 1px solid #68ad78; border-left: 7px solid #2f8f49; border-radius: 9px; background: #eaf7ec; color: #153f25; }
.online-special-banner[hidden] { display: none; }
.online-special-banner .special-heading { color: #27633a; font-size: .84rem; font-weight: 800; letter-spacing: .09em; }
.online-special-banner strong { color: #145c2a; font-size: clamp(1.75rem, 5vw, 2.45rem); line-height: 1.05; letter-spacing: -.025em; }
.online-special-banner small { color: #3d6548; font-size: .95rem; font-weight: 650; }
#print-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; }
input, select { box-sizing: border-box; width: 100%; padding: 10px; border: 1px solid #b7c4d0; border-radius: 5px; font: inherit; }
button { grid-column: 1 / -1; padding: 13px 18px; background: #63d77b; border: 1px solid #247a3c; border-radius: 5px; color: #101d13; font-weight: 800; cursor: pointer; }
#file-locked { display: grid; gap: 12px; align-items: start; }
#file-locked[hidden] { display: none; }
.locked-file-summary { display: grid; gap: 3px; min-width: 0; }
.locked-file-summary span { overflow-wrap: anywhere; }
#change-file { grid-column: auto; justify-self: start; width: auto; margin: 0; }
.source-orientation-control { margin-top: 16px; }
#preview-button { grid-column: auto; justify-self: start; width: auto; margin-top: 10px; }
.preview-panel, .pricing-panel, .customer-panel, .accept, #upload-button { grid-column: 1 / -1; }
.preview-panel[hidden] { display: none; }
#preview-canvas { box-sizing: border-box; display: block; width: min(100%, 620px); height: auto; margin: 0 auto; border: 1px solid #b7c4d0; border-radius: 7px; background: #dfe5e8; }
#preview-details { margin-bottom: 0; text-align: center; }
.price-table { overflow-x: auto; border: 1px solid #c8d5df; border-radius: 7px; background: #fff; }
.price-header, .price-row { display: grid; grid-template-columns: minmax(220px, 1fr) 70px 130px 130px; gap: 12px; align-items: center; min-width: 650px; }
.price-header { padding: 9px 12px; color: #fff; background: #173f73; font-size: .86rem; font-weight: 800; }
.price-header > span:not(:first-child), .price-row > span:not(:first-child), .price-row > strong { text-align: right; }
.price-lines { color: #193958; }
.price-lines:not(:has(.price-row)) { padding: 14px 12px; }
.price-row { padding: 11px 12px; border-top: 1px solid #dbe4ea; }
.price-row:first-child { border-top: 0; }
.price-row:nth-child(even) { background: #f4f8fb; }
.price-row.discounted-price-row { background: #f0f9f1; box-shadow: inset 4px 0 #75b984; }
.price-row.discounted-price-row:nth-child(even) { background: #eaf6ec; }
.price-row span:first-child { font-weight: 650; }
.price-row small { display: block; margin-top: 3px; color: #557086; font-size: .76rem; font-weight: 400; }
.price-row strong { color: #173f73; white-space: nowrap; }
.unit-price-comparison { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.unit-price-comparison del { color: #667986; font-size: .84rem; }
.unit-price-comparison .current-price { color: #123f70; font-size: 1.02rem; font-weight: 850; white-space: nowrap; }
.unit-price-comparison .saving-badge { display: inline-block; margin: 2px 0 0; padding: 4px 8px; border: 1px solid #72b681; border-radius: 999px; background: #d9f1df; color: #145c2a; font-size: .76rem; font-weight: 850; letter-spacing: .025em; white-space: nowrap; }
.totals { min-width: 650px; border-top: 2px solid #9eb4c5; background: #edf5fb; }
.total-row { display: grid; grid-template-columns: minmax(220px, 1fr) 70px 130px 130px; gap: 12px; align-items: center; padding: 8px 12px; }
.total-row span { grid-column: 1 / 4; text-align: right; font-weight: 700; }
.total-row strong { grid-column: 4; color: #173f73; text-align: right; white-space: nowrap; }
.total-row + .total-row { border-top: 1px solid #d2dfe8; }
.total-row.grand-total { background: #dcecf8; font-size: 1.08rem; }
.total-row.grand-total span, .total-row.grand-total strong { color: #0c376a; font-weight: 800; }
.online-special-applied { padding: 11px 12px; border-top: 2px solid #83bd90; background: #eaf7ec; color: #145c2a; text-align: right; font-size: .88rem; font-weight: 850; letter-spacing: .035em; }
.online-special-applied + .grand-total { border-top: 1px solid #b9d8c0; background: #eaf7ec; }
.customer-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.note { margin: 20px 0 0; padding: 12px; background: #eef7ee; border-left: 4px solid #63d77b; font-size: .93rem; }
@media (max-width: 650px) {
  body { display: block; }
  .card { width: 100%; min-height: 100vh; padding: 22px 16px 34px; border-radius: 0; box-shadow: none; }
  h1 { font-size: 1.75rem; line-height: 1.15; }
  h2 { font-size: 1.28rem; line-height: 1.2; }
  .prints-charming-panel { padding: 16px; }
  .prints-charming-routes { grid-template-columns: minmax(0, 1fr); }
  .online-special-banner { padding: 17px 16px; }
  .online-special-banner strong { font-size: 1.85rem; }
  #print-form, .customer-fields { grid-template-columns: minmax(0, 1fr); }
  #print-form { gap: 22px; min-width: 0; }
  #print-form > *, .panel, label, .choices, .pricing-panel, .customer-panel { min-width: 0; max-width: 100%; }
  .preview-panel, .pricing-panel, .customer-panel, .accept, #upload-button { grid-column: 1; }
  input, select, button { max-width: 100%; }
  input[type="file"] { min-width: 0; overflow: hidden; padding: 7px; font-size: .88rem; }
  #file-name, #file-details, .hint, .summary { overflow-wrap: anywhere; }
  .price-table { max-width: 100%; overflow: visible; border: 0; background: transparent; }
  .price-header { display: none; }
  .price-lines:not(:has(.price-row)) { padding: 12px; border: 1px solid #c8d5df; border-radius: 7px; }
  .price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; min-width: 0; margin-bottom: 10px; padding: 12px; border: 1px solid #c8d5df; border-radius: 7px; background: #fff; }
  .price-row:first-child { border-top: 1px solid #c8d5df; }
  .price-row:nth-child(even) { background: #f4f8fb; }
  .price-row.discounted-price-row, .price-row.discounted-price-row:nth-child(even) { background: #eef8f0; }
  .price-row span:first-child { grid-column: 1 / -1; padding-bottom: 7px; border-bottom: 1px solid #dbe4ea; font-size: 1rem; }
  .price-row > span:nth-child(2), .price-row > span:nth-child(3), .price-row > strong { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .price-row > span:nth-child(2)::before { content: "Quantity"; color: #557086; font-weight: 600; text-align: left; }
  .price-row > span:nth-child(3)::before { content: "Unit price (excl. GST)"; color: #557086; font-weight: 600; text-align: left; }
  .price-row > strong::before { content: "Line total (excl. GST)"; color: #557086; font-weight: 600; text-align: left; }
  .unit-price-comparison { max-width: 65%; }
  .online-special-applied { text-align: left; }
  .totals { min-width: 0; margin-top: 4px; border: 1px solid #b9ccda; border-radius: 7px; overflow: hidden; }
  .total-row { grid-template-columns: minmax(0, 1fr) auto; min-width: 0; gap: 16px; padding: 10px 12px; }
  .total-row span { grid-column: 1; text-align: left; }
  .total-row strong { grid-column: 2; text-align: right; }
  .customer-fields { gap: 12px; }
  .accept { font-size: .94rem; }
}
