.epacn-configurator,
.bulk-order {
  --cfg-navy: #17243a;
  --cfg-orange: #f36b3f;
  --cfg-lime: #dbff52;
  --cfg-cream: #f7f0e7;
  --cfg-muted: #687084;
  --cfg-line: #dedbd4;
  color: var(--cfg-navy);
}

.config-message {
  margin-bottom: 22px;
  padding: 15px 18px;
  border-radius: 10px;
}
.config-message.error { background: #fff0eb; color: #9a4329; }
.config-topline,
.bulk-heading {
  display: flex;
  margin-bottom: 27px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cfg-line);
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.config-topline h2,
.bulk-heading h2 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
}
.bulk-heading p:last-child { max-width: 760px; margin: 10px 0 0; color: var(--cfg-muted); }
.config-kicker { margin: 0; color: var(--cfg-orange); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.config-top-actions { display: flex; gap: 18px; }
.config-top-actions a { font-size: 11px; font-weight: 850; text-decoration: underline; text-underline-offset: 4px; }
.config-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 190px minmax(0, 1fr) 330px;
  gap: 20px;
}
.model-selector,
.config-summary {
  position: sticky;
  top: 112px;
}
.model-selector {
  padding: 18px;
  border: 1px solid var(--cfg-line);
  border-radius: 16px;
  background: white;
}
.model-selector > p,
.bulk-format > p {
  margin: 0 0 13px;
  color: var(--cfg-muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
}
.model-options { display: grid; gap: 7px; }
.model-option {
  position: relative;
  display: grid;
  min-height: 67px;
  padding: 10px 10px 9px 44px;
  border: 1px solid var(--cfg-line);
  border-radius: 9px;
  cursor: pointer;
}
.model-option input { position: absolute; opacity: 0; pointer-events: none; }
.model-option > span {
  position: absolute;
  top: 12px;
  left: 10px;
  display: grid;
  width: 26px;
  height: 25px;
  border-radius: 6px;
  background: var(--cfg-cream);
  place-items: center;
  font-size: 7px;
  font-weight: 900;
}
.model-option strong { align-self: end; font-size: 10px; }
.model-option small { color: var(--cfg-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 7px; }
.model-option:has(input:checked) { border-color: var(--cfg-orange); background: #fff5ef; box-shadow: inset 0 0 0 1px var(--cfg-orange); }
.model-option:has(input:checked) > span { background: var(--cfg-orange); color: white; }
.model-help { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--cfg-line); }
.model-help strong, .model-help span { display: block; }
.model-help strong { font-size: 9px; }
.model-help span { margin-top: 3px; color: var(--cfg-muted); font-size: 8px; line-height: 1.45; }
.parameter-workspace { display: grid; gap: 14px; }
.parameter-section {
  padding: 27px;
  border: 1px solid var(--cfg-line);
  border-radius: 17px;
  background: white;
  box-shadow: 0 8px 28px rgba(23,36,58,.045);
}
.parameter-heading { display: grid; margin-bottom: 21px; grid-template-columns: 33px 1fr; gap: 10px; }
.parameter-heading > span { display: grid; width: 31px; height: 31px; border-radius: 8px; background: var(--cfg-navy); place-items: center; color: white; font-size: 8px; font-weight: 900; }
.parameter-heading h3 { margin: 0 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; line-height: 1.05; }
.parameter-heading p { margin: 0; color: var(--cfg-muted); font-size: 10px; }
.parameter-grid { display: grid; gap: 13px; }
.parameter-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.parameter-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.parameter-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.parameter-field.full { grid-column: 1 / -1; }
.parameter-field > label { font-size: 9px; font-weight: 850; }
.parameter-field input,
.parameter-field select,
.parameter-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 9px 10px;
  border: 1px solid #ccd1d1;
  border-radius: 7px;
  outline: none;
  background: #fcfcfa;
  color: var(--cfg-navy);
  font-size: 10px;
}
.parameter-field input:focus,
.parameter-field select:focus,
.parameter-field textarea:focus { border-color: var(--cfg-orange); box-shadow: 0 0 0 3px rgba(243,107,63,.11); }
.parameter-field textarea { min-height: 92px; resize: vertical; }
.parameter-input { position: relative; }
.parameter-input > span { position: absolute; top: 50%; right: 9px; transform: translateY(-50%); color: var(--cfg-muted); font-size: 8px; pointer-events: none; }
.parameter-input:has(> span) input { padding-right: 43px; }
.range-status { margin-top: 14px; padding: 10px 12px; border-left: 3px solid #4e9472; border-radius: 0 7px 7px 0; background: #eef7f1; color: #436454; font-size: 9px; }
.range-status.is-invalid { border-color: #d0573d; background: #fff1ed; color: #8e4434; }
.config-swatches { display: flex; min-height: 43px; padding: 5px 7px; border: 1px solid #ccd1d1; border-radius: 7px; align-items: center; justify-content: space-between; gap: 5px; }
.config-swatches label { position: relative; display: grid; justify-items: center; cursor: pointer; }
.config-swatches input { position: absolute; opacity: 0; pointer-events: none; }
.config-swatches label > span { width: 22px; height: 22px; border: 2px solid white; border-radius: 50%; outline: 1px solid #c2c6c5; }
.config-swatches input:checked + span { outline: 2px solid var(--cfg-orange); outline-offset: 2px; }
.config-swatches small { margin-top: 2px; font-size: 6px; }
.swatch-snow { background: #eee9df; }
.swatch-sand { background: #c7b9a1; }
.swatch-pebble { background: #958e82; }
.swatch-charcoal { background: #3e4545; }
.swatch-custom { background: linear-gradient(135deg,#c66e56,#778f83); }
.compatibility-state { display: grid; margin-top: 14px; padding: 11px 13px; border-radius: 8px; background: #eef7f1; grid-template-columns: 78px 1fr; align-items: center; gap: 10px; }
.compatibility-state > span { color: #2c7652; font-size: 7px; font-weight: 950; letter-spacing: .1em; }
.compatibility-state p { margin: 0; color: #50675b; font-size: 9px; }
.compatibility-state.warning { background: #fff4e7; }
.compatibility-state.warning > span { color: #a35b19; }
.compatibility-state.warning p { color: #765739; }
.config-summary {
  overflow: hidden;
  border-radius: 18px;
  background: var(--cfg-navy);
  color: white;
  box-shadow: 0 20px 50px rgba(23,36,58,.2);
}
.summary-visual { padding: 18px 18px 11px; background: #c9b9ff; }
.summary-window { position: relative; height: 150px; overflow: hidden; border: 9px solid #f5efe5; border-bottom-width: 13px; background: linear-gradient(145deg,#ccd7d6,#edf1ef); }
.summary-window::before { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(23,36,58,.16); content: ""; }
.summary-shade { position: absolute; z-index: 2; top: 0; right: 0; left: 0; height: 75%; border-bottom: 4px solid rgba(23,36,58,.5); background: repeating-linear-gradient(90deg,rgba(23,36,58,.07) 0 1px,transparent 1px 5px),#eee9df; }
.summary-visual.is-blackout .summary-shade { height: 93%; background: #3e4545; }
.summary-visual.is-dual .summary-shade { height: 84%; background: repeating-linear-gradient(0deg,rgba(255,255,255,.92) 0 11px,rgba(23,36,58,.25) 11px 22px); }
.summary-visual.is-exterior .summary-window { border-color: #3b4555; }
.summary-visual.is-skylight .summary-window { transform: perspective(500px) rotateX(12deg); }
.summary-visual > span { display: block; margin-top: 8px; color: #4e4d67; font-size: 6px; font-weight: 950; letter-spacing: .14em; }
.summary-code { position: relative; padding: 17px 19px 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.summary-code p { margin: 0 0 3px; color: #93a0b5; font-size: 7px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.summary-code strong { display: block; padding-right: 44px; overflow-wrap: anywhere; color: var(--cfg-lime); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 9px; line-height: 1.4; }
.summary-code button { position: absolute; right: 16px; bottom: 15px; padding: 4px 6px; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; background: transparent; color: #aeb8c7; font-size: 7px; cursor: pointer; }
.summary-data { margin: 0; padding: 9px 19px; }
.summary-data > div { display: grid; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); grid-template-columns: 62px 1fr; gap: 8px; }
.summary-data dt { color: #8290a5; font-size: 7px; }
.summary-data dd { margin: 0; color: #e4e8ee; font-size: 8px; font-weight: 700; text-align: right; }
.summary-commercial { margin: 4px 19px 14px; padding: 12px; border-radius: 9px; background: rgba(255,255,255,.08); }
.summary-commercial > div { display: flex; padding: 5px 0; align-items: baseline; justify-content: space-between; }
.summary-commercial span { color: #8f9db0; font-size: 6px; font-weight: 900; letter-spacing: .08em; }
.summary-commercial strong { font-family: Georgia,serif; font-size: 15px; font-weight: 500; }
.add-project-cart { display: flex; width: calc(100% - 38px); min-height: 46px; margin: 0 19px; padding: 0 14px; border: 0; border-radius: 8px; align-items: center; justify-content: space-between; background: var(--cfg-lime); color: var(--cfg-navy); font-size: 9px; font-weight: 900; cursor: pointer; }
.add-project-cart:hover { background: white; }
.summary-disclaimer { margin: 11px 19px 17px; color: #75849a; font-size: 6px; line-height: 1.5; }

.bulk-shell { display: grid; overflow: hidden; border: 1px solid var(--cfg-line); border-radius: 18px; background: white; grid-template-columns: 1fr 300px; }
.bulk-input { padding: 28px; }
.bulk-input-head { display: flex; margin-bottom: 9px; align-items: center; justify-content: space-between; }
.bulk-input-head > label:first-child { font-size: 10px; font-weight: 850; }
.bulk-file-button { position: relative; display: inline-flex; min-height: 34px; padding: 0 11px; border: 1px solid var(--cfg-line); border-radius: 7px; align-items: center; background: var(--cfg-cream); font-size: 8px; font-weight: 850; cursor: pointer; }
.bulk-file-button input { position: absolute; opacity: 0; pointer-events: none; }
.bulk-input textarea { width: 100%; min-height: 300px; padding: 16px; border: 1px solid #ccd1d1; border-radius: 9px; resize: vertical; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 9px; line-height: 1.6; }
.bulk-actions { display: flex; margin-top: 12px; justify-content: space-between; gap: 10px; }
.bulk-actions > button:first-child { padding: 0 14px; border: 1px solid var(--cfg-navy); border-radius: 8px; background: white; color: var(--cfg-navy); font-size: 9px; font-weight: 850; cursor: pointer; }
.bulk-format { padding: 28px; background: var(--cfg-navy); color: white; }
.bulk-format dl { margin: 0; }
.bulk-format dl > div { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.bulk-format dt { color: var(--cfg-lime); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.bulk-format dd { margin: 3px 0 0; color: #a8b2c2; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 7px; line-height: 1.5; }
.bulk-preview { margin-top: 20px; }
.bulk-preview table { width: 100%; overflow: hidden; border: 1px solid var(--cfg-line); border-radius: 12px; border-collapse: separate; border-spacing: 0; background: white; font-size: 8px; }
.bulk-preview th, .bulk-preview td { padding: 9px; border-bottom: 1px solid var(--cfg-line); text-align: left; }
.bulk-preview th { background: var(--cfg-cream); }
.bulk-preview tr:last-child td { border-bottom: 0; }

@media (max-width: 1240px) {
  .config-layout { grid-template-columns: minmax(0, 1fr) 310px; }
  .model-selector { display: none; }
}
@media (max-width: 900px) {
  .config-layout, .bulk-shell { grid-template-columns: 1fr; }
  .config-summary { position: static; }
  .parameter-grid.four, .parameter-grid.two { grid-template-columns: 1fr 1fr; }
}
