.orderBody {
  background:
    radial-gradient(circle at 12% 6%, rgba(28, 174, 230, 0.18), transparent 32rem),
    radial-gradient(circle at 78% 0%, rgba(243, 181, 76, 0.10), transparent 30rem),
    #07111f;
  color: #edf7ff;
}

.quoteShell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 34px 18px 56px;
}

.quoteHero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: stretch;
  margin: 0 0 18px;
}

.quoteHero h1 {
  max-width: 940px;
  margin-bottom: 12px;
}

.quoteHeroHint {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(100, 210, 255, 0.22);
  background: linear-gradient(135deg, rgba(13, 35, 58, 0.90), rgba(8, 22, 39, 0.92));
}

.quoteHeroHint strong {
  color: #ffffff;
}

.quoteHeroHint span {
  color: #b6cfe4;
  line-height: 1.55;
}

.productSelector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.productCard {
  position: relative;
  min-height: 104px;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 17px 17px 15px 66px;
  border: 1px solid rgba(150, 204, 244, 0.20);
  border-radius: 18px;
  background: rgba(240, 247, 255, 0.965);
  color: #152337;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.productCard span {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0a5d99;
  background: linear-gradient(135deg, #e6f6ff, #cfeaff);
  border: 1px solid #b8dbf4;
  font-size: 0.78rem;
  font-weight: 1000;
}

.productCard strong {
  color: #0a2238;
  font-size: 1.02rem;
}

.productCard small {
  color: #5c7185;
  line-height: 1.4;
}

.productCard.active {
  border-color: rgba(16, 154, 220, 0.55);
  box-shadow: inset 0 0 0 2px rgba(16, 154, 220, 0.12), 0 18px 40px rgba(9, 83, 139, 0.18);
}

.productCard.active::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #12b7df, #266df0);
  font-weight: 1000;
}

.quoteLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.quoteMain {
  display: grid;
  gap: 14px;
}

.quoteCard,
.quoteSticky {
  border: 1px solid rgba(138, 195, 238, 0.18);
  background: rgba(240, 247, 255, 0.965);
  color: #152337;
  border-radius: 14px;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.18);
}

.quoteCard {
  overflow: hidden;
}

.quoteSectionTitle {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px 12px;
}

.quoteSectionTitle.compact {
  padding-bottom: 6px;
}

.quoteSectionTitle h2 {
  margin: 0;
  color: #122033;
  font-size: 1.15rem;
}

.quoteSectionTitle .eyebrow {
  color: #008fd4;
  margin-bottom: 4px;
}

.viewerStats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.viewerStats span {
  border-radius: 999px;
  background: #e4f2ff;
  color: #09659d;
  font-weight: 900;
  padding: 7px 10px;
  border: 1px solid #bdddf8;
}

.quoteDrop {
  margin: 0 18px 12px;
  min-height: 100px;
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed #9bc9ee;
  background: #eaf5ff;
  cursor: pointer;
  transition: 160ms ease;
}

.quoteDrop:hover,
.quoteDrop.isDragging {
  border-color: #178ed0;
  background: #ddf0ff;
  transform: translateY(-1px);
}

.quoteDrop input {
  display: none;
}

.dropIcon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #0c9bdd, #286cff);
  font-weight: 900;
  font-size: 1.35rem;
}

.quoteDrop strong {
  color: #0a5d99;
}

.quoteDrop small {
  color: #698095;
}

.quoteViewerToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 18px 12px;
}

.quoteViewerToolbar button {
  border: 1px solid #bed8ed;
  border-radius: 10px;
  background: #ffffff;
  color: #12324b;
  font-weight: 900;
  padding: 8px 12px;
  cursor: pointer;
}

.quoteViewerToolbar button.active {
  background: #0c8ed2;
  border-color: #0c8ed2;
  color: #ffffff;
}

#quoteParseStatus {
  color: #6c7f92;
  margin-left: auto;
  font-size: 0.92rem;
}

.quoteCanvasWrap {
  position: relative;
  height: 430px;
  margin: 0;
  background: #111820;
  border-top: 1px solid #d5e2ee;
}

#orderGerberCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvasBadge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 11px;
  border-radius: 9px;
  color: #69ffb2;
  background: rgba(0, 0, 0, 0.76);
  font-weight: 900;
  letter-spacing: 0.03em;
  font-size: 0.86rem;
}

.optionRows {
  display: grid;
  gap: 1px;
  background: #d9e6f1;
  border-top: 1px solid #d9e6f1;
}

.optionRow {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 11px 18px;
  background: #f8fbff;
}

.optionRow > span,
.contactGrid span,
.quoteTextarea span {
  color: #43586b;
  font-weight: 900;
  font-size: 0.92rem;
}

.chipGroup,
.booleanGrid,
.inlineInputs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chipGroup label {
  cursor: pointer;
}

.chipGroup input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chipGroup b {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #c8dceb;
  background: #ffffff;
  color: #1d3348;
  font-size: 0.9rem;
}

.chipGroup.small b {
  min-width: 40px;
}

.chipGroup input:checked + b {
  border-color: #0c8ed2;
  color: #0068a9;
  box-shadow: inset 0 0 0 2px rgba(12, 142, 210, 0.12);
  background: #f0f9ff;
}

.colorChips b {
  color: #ffffff;
  background: var(--c);
  min-width: 64px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.inlineInputs label {
  display: grid;
  grid-template-columns: 96px auto;
  gap: 6px;
  align-items: center;
}

.inlineInputs input,
.inlineInputs select,
.contactGrid input,
.quoteTextarea textarea {
  border: 1px solid #c7dbe9;
  background: #ffffff;
  color: #182b3f;
  border-radius: 8px;
  padding: 9px 10px;
  outline: none;
}

.inlineInputs em {
  color: #64788a;
  font-style: normal;
  font-size: 0.86rem;
}

.panelSetupBox,
.stencilEnableBox {
  display: grid;
  gap: 10px;
}

.panelSetupBox {
  padding: 10px;
  border: 1px solid #d6e5f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f2f8fd);
}

.panelInline {
  align-items: end;
}

.panelSummary {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  color: #0a668f;
  background: #e8f8ff;
  border: 1px solid #bde8fb;
  font-weight: 900;
}

.stencilEnableBox small {
  color: #50677c;
  font-weight: 800;
}

.stencil-disabled .stencilEnableBox small {
  color: #9a5b00;
}

#stencilCard.stencil-collapsed .optionRows > .optionRow:not(:first-child) {
  display: none;
}

#stencilCard.stencil-disabled .stencilToggle {
  opacity: 0.62;
}

.booleanGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.booleanGrid label,
.terms {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #24394f;
  border: 1px solid #d6e5f0;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 0.9rem;
}

.accordionHeader {
  width: 100%;
  border: 0;
  background: #edf5fc;
  color: #142a3e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
}

.accordionHeader b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0b87c7;
  background: #d8ebfb;
}

.accordionBody {
  display: none;
}

.accordionBody.open {
  display: block;
}

.quoteTextarea {
  display: grid;
  gap: 8px;
  padding: 12px 18px 16px;
  background: #f8fbff;
}

.contactGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 10px 18px 16px;
}

.contactGrid label {
  display: grid;
  gap: 7px;
}

.contactGrid .wide {
  grid-column: 1 / -1;
}

.terms {
  margin: 0 18px 18px;
}

.customerInfoCard .terms {
  margin-top: 14px;
}

.customerOrderInfo {
  display: grid;
  gap: 10px;
  margin: 12px 18px 0;
  border: 1px solid #c8dff0;
  border-radius: 14px;
  padding: 14px;
  color: #18354c;
  background: #f7fbff;
}

.customerOrderInfo.isMissing {
  border-color: #ffca7a;
  background: #fff8ec;
}

.customerOrderInfo.isReady {
  border-color: #93dfbd;
  background: #f4fff9;
}

.customerOrderInfo strong {
  color: #0b223a;
  font-size: 1rem;
}

.customerOrderInfo p {
  margin: 0;
  color: #53697d;
  line-height: 1.45;
}

.customerOrderSummary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customerOrderSummary div {
  border: 1px solid #d9e8f4;
  border-radius: 12px;
  padding: 9px 10px;
  background: #fff;
}

.customerOrderSummary b {
  display: block;
  color: #6a7d8f;
  font-size: 0.78rem;
}

.customerOrderSummary span {
  display: block;
  color: #0b223a;
  font-weight: 900;
  word-break: break-word;
}

.customerOrderActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customerOrderActions a {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c5dced;
  border-radius: 999px;
  color: #0b3156;
  background: #fff;
  font-weight: 900;
  text-decoration: none;
}

.quoteSidebar {
  min-width: 0;
}

.quoteSticky {
  position: sticky;
  top: 78px;
  padding: 16px;
}

.quoteSticky h2 {
  margin: 0 0 12px;
  color: #142a3e;
  font-size: 1.05rem;
}

#quoteBreakdown {
  display: grid;
  gap: 0;
  margin: 0 0 12px;
  border-top: 1px solid #d8e6f1;
}

#quoteBreakdown div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #d8e6f1;
}

#quoteBreakdown dt {
  color: #506477;
}

#quoteBreakdown dd {
  margin: 0;
  color: #132c42;
  font-weight: 900;
  text-align: right;
}

.priceLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0 16px;
  color: #506477;
  font-weight: 900;
}

.priceLine strong {
  color: #ff5a4f;
  font-size: 2.1rem;
  line-height: 1;
}

.quoteProviderStatus {
  margin: 8px 0 14px;
  border: 1px solid rgba(68, 215, 255, 0.22);
  border-radius: 12px;
  padding: 9px 11px;
  color: rgba(231, 243, 255, 0.82);
  background: rgba(68, 215, 255, 0.07);
  font-size: 0.82rem;
  line-height: 1.35;
}

.quoteProviderStatus.warning {
  border-color: rgba(255, 193, 7, 0.28);
  background: rgba(255, 193, 7, 0.08);
  color: #856404;
}

.quoteProviderStatus.ok {
  border-color: rgba(39, 231, 143, 0.28);
  background: rgba(39, 231, 143, 0.08);
  color: #117a3f;
}

.button.large {
  width: 100%;
  justify-content: center;
  margin-top: 9px;
}

.button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.52;
}

.orderResult {
  display: none;
  margin-top: 12px;
  border-radius: 10px;
  padding: 10px;
  color: #15334b;
  background: #eef7ff;
  line-height: 1.45;
}

.orderResult.isVisible {
  display: block;
}

.orderResult.ok {
  border: 1px solid #5fd89a;
}

.orderResult.error {
  border: 1px solid #ff8a80;
}

.orderResult strong,
.orderResult span {
  display: block;
}

.orderResultActions {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.orderResultActions a {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border-radius: 9px;
  color: #083c60;
  background: #dff3ff;
  border: 1px solid #a8d8f4;
  font-weight: 950;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .quoteLayout,
  .quoteHero {
    grid-template-columns: 1fr;
  }

  .productSelector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quoteSticky {
    position: static;
  }
}

@media (max-width: 760px) {
  .quoteShell {
    padding: 22px 10px 44px;
  }

  .optionRow {
    grid-template-columns: 1fr;
  }

  .booleanGrid,
  .contactGrid {
    grid-template-columns: 1fr;
  }

  .customerOrderSummary {
    grid-template-columns: 1fr;
  }

  .quoteCanvasWrap {
    height: 310px;
  }

  .productSelector {
    grid-template-columns: 1fr;
  }
}

.quoteCard,
.quoteSticky,
.quoteCard .optionRow,
.quoteCard .optionMeta,
.quoteCard .optionList,
.quoteCard .formHelp,
.quoteCard .summaryLine,
.quoteSticky .summaryLine,
.quoteSticky .priceNote,
.quoteSticky .couponList,
.quoteSticky .orderResult,
.productCard {
  color: #10243a;
}

.quoteCard h1,
.quoteCard h2,
.quoteCard h3,
.quoteCard h4,
.quoteSticky h2,
.quoteSticky h3,
.quoteCard strong,
.quoteSticky strong,
.productCard strong {
  color: #071d33;
}

.quoteCard p,
.quoteCard small,
.quoteCard label,
.quoteCard .muted,
.quoteSticky p,
.quoteSticky small,
.quoteSticky .muted,
.productCard small {
  color: #49657b;
}

.quoteCard input,
.quoteCard select,
.quoteCard textarea,
.quoteSticky input,
.quoteSticky select,
.quoteSticky textarea {
  color: #10243a;
  background: #fff;
}

/* Contrast hardening for quote/sidebar states */
.quoteSticky .quoteProviderStatus,
.quoteSticky #quoteProviderStatus {
  color: #12304a !important;
  background: #e9f7ff !important;
  border-color: #a9d8ef !important;
}

.quoteSticky .button:disabled,
.quoteSticky button:disabled,
.quoteSticky #submitOrder:disabled {
  opacity: 1 !important;
  color: #17324a !important;
  background: linear-gradient(135deg, #e5f0f8, #d5e2f0) !important;
  border-color: #abc2d8 !important;
  text-shadow: none !important;
  filter: none !important;
}

.quoteSticky #quoteBreakdown dt,
.quoteSticky .priceLine,
.quoteSticky .priceNote,
.quoteSticky .couponList,
.quoteSticky .orderResult,
.quoteSticky .summaryLine {
  color: #2f4d66 !important;
}

.quoteSticky #quoteBreakdown dd,
.quoteSticky .priceLine strong {
  color: #0b2135;
  overflow-wrap: anywhere;
}
