.bp-configurator {
  color: #1f2933;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
}
.bp-configurator * {
  box-sizing: border-box;
}
.bp-configurator form.bp-config-form {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
  margin: 0;
  width: 100%;
  float: none;
}
.bp-configurator form.bp-config-form::before,
.bp-configurator form.bp-config-form::after {
  content: none !important;
  display: none !important;
}
.bp-configurator fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.bp-configurator legend {
  font-weight: 600;
  font-size: 20px;
  padding: 0;
  margin-bottom: 10px;
  line-height: 1.35;
  color: #1f2933;
}
.bp-configurator p {
  line-height: 1.55;
  margin: 0 0 12px;
}
.bp-measure-panel {
  background: #ffffff;
  padding: 24px !important;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}
.bp-measure-panel h2 {
  color: #1f2933;
  font: 600 26px/1.25 Sora, sans-serif;
  margin: 0 0 10px;
  padding: 0;
}
.bp-drawing {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 16px 0 12px;
  background: #fbfbf9;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}
.bp-drawing svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bp-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #1f2933;
  cursor: pointer;
  padding: 8px;
  font: 600 15px Inter, sans-serif;
  z-index: 2;
}
.bp-hotspot span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #f5f5f2;
  border: 1px solid #56616c;
  border-radius: 50%;
  transition: all 0.15s ease;
}
.bp-hotspot:hover span,
.bp-hotspot[aria-pressed="true"] span,
.bp-hotspot-active span {
  color: #ffffff !important;
  background: #a9614c !important;
  border-color: #a9614c !important;
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(169, 97, 76, 0.3) !important;
}

/* Drawing meta: plate width and reset */
.bp-drawing-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fbfbf9;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 8px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #56616c;
}
.bp-plate-width strong {
  color: #1f2933;
  font-weight: 700;
  font-size: 15px;
}
.bp-reset-dims {
  background: transparent;
  border: 0;
  color: #a9614c;
  font: 600 13px Inter, sans-serif;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 3px;
  transition: background 0.15s ease;
}
.bp-reset-dims:hover {
  background: #faf6f5;
  text-decoration: underline;
}

/* Dimension editors grid */
.bp-editors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: #f8fafc;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}
.bp-editor {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #1f2933;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.bp-editor span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.bp-editor small {
  font-weight: 400;
  color: #56616c;
}
.bp-editor input {
  min-height: 42px;
  width: 100%;
  padding: 8px 12px !important;
  border: 1px solid #d9dddf !important;
  background: #ffffff !important;
  color: #1f2933 !important;
  border-radius: 4px;
  font: inherit;
  font-size: 15px !important;
  transition: all 0.15s ease;
}
.bp-editor-active {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.bp-editor-active input {
  border-color: #a9614c !important;
  outline: 2px solid rgba(169, 97, 76, 0.25) !important;
}

.bp-purchase-panel {
  min-width: 0;
  background: #ffffff;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}
.bp-purchase-panel h2 {
  font-size: 26px !important;
  line-height: 1.25;
  margin: 0 0 4px;
  font-family: Sora, sans-serif;
  color: #1f2933;
}
.bp-model {
  font-size: 14px;
  color: #56616c;
  margin: 0 0 20px;
}

/* Material selector & swatches */
.bp-material-selector {
  margin-bottom: 22px;
}
.bp-material-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}
.bp-swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.bp-swatch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #d9dddf;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  font: 500 13px Inter, sans-serif;
  color: #1f2933;
  transition: all 0.15s ease;
  min-height: 44px;
}
.bp-swatch:hover {
  border-color: #1f2933;
  background: #fbfbf9;
}
.bp-swatch-active {
  border: 2px solid #a9614c !important;
  background: #faf6f5 !important;
  color: #1f2933 !important;
  font-weight: 600;
}
.bp-swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.bp-swatch-text {
  flex: 1;
  line-height: 1.3;
}
.bp-swatch-text small {
  display: block;
  color: #56616c;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  margin-top: 2px;
}
.bp-material-note {
  color: #56616c;
  font-size: 13px;
  margin: 10px 0 0 !important;
}
.bp-material-note[hidden],
.bp-configurator .bp-add[hidden],
.bp-configurator .bp-quote[hidden],
.bp-configurator .bp-caption[hidden] {
  display: none !important;
}
.bp-material-dropdown {
  display: none !important;
}

/* Quantity steppers */
.bp-configurator .bp-order-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.bp-order-fields legend {
  font-size: 16px;
  margin-bottom: 10px;
}
.bp-stepper-wrap label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}
.bp-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #56616c;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}
.bp-stepper input {
  flex: 1;
  border: 0 !important;
  text-align: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 16px !important;
  padding: 6px !important;
  background: transparent !important;
  -moz-appearance: textfield;
}
.bp-stepper input::-webkit-outer-spin-button,
.bp-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bp-step-btn {
  width: 44px;
  height: 44px;
  background: #f5f5f2;
  border: 0;
  color: #1f2933;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.bp-step-btn:hover {
  background: #e5e7eb;
}

/* Angles */
.bp-angle-container {
  margin-top: 18px;
}
.bp-angle-fields legend {
  font-size: 16px;
  margin-bottom: 10px;
}
.bp-angle-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

/* Price block */
.bp-price {
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
  margin-top: 22px;
}
.bp-price span {
  display: block;
  font-size: 13px;
  color: #56616c;
  line-height: 1.5;
}
.bp-price strong {
  display: block;
  font: 700 32px Sora, sans-serif;
  line-height: 1.3;
  color: #1f2933;
  margin: 4px 0;
}

/* Add to cart CTA */
.bp-configurator .bp-add,
.bp-configurator .bp-quote {
  background: #a9614c !important;
  color: #ffffff !important;
  font: 600 16px Inter, sans-serif !important;
  border: 0 !important;
  min-height: 52px;
  width: 100%;
  padding: 14px 20px !important;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease;
  margin-top: 10px;
}
.bp-configurator .bp-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.bp-add:hover,
.bp-quote:hover {
  background: #8b4c3a !important;
}
.bp-add:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bp-caption {
  font-size: 13px;
  margin: 12px 0 16px;
  color: #56616c;
}
.bp-details {
  border-top: 1px solid #e5e7eb;
  padding: 14px 0;
}
.bp-details summary {
  font-weight: 600;
  cursor: pointer;
  min-height: 28px;
  color: #1f2933;
}
.bp-details p {
  padding-top: 8px;
  font-size: 14px;
  color: #56616c;
}
.bp-help {
  display: inline-block;
  color: #a9614c;
  text-decoration: underline;
  min-height: 44px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
}
.bp-help:hover {
  color: #8b4c3a;
}
.bp-configurator :is(input, select, button, a, summary):focus-visible {
  outline: 3px solid #1f2933;
  outline-offset: 3px;
}
.bp-configurator [aria-invalid="true"] {
  border: 2px solid #a32626 !important;
}
.bp-configurator [role="alert"] {
  color: #a32626;
  font-size: 14px;
  margin-top: 8px;
  min-height: 20px;
}
.bp-configurator button::after {
  display: none !important;
}

/* Mobile Sticky Bottom Bar */
.bp-mobile-sticky-bar {
  display: none;
}

@media (max-width: 980px) {
  .bp-configurator form.bp-config-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .bp-measure-panel,
  .bp-purchase-panel {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .bp-mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
    padding: 12px 20px;
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #e5e7eb;
    transform: translateY(120%);
    transition: transform 0.25s ease;
  }
  .bp-mobile-sticky-bar.bp-sticky-visible {
    transform: translateY(0);
  }
  .bp-sticky-price {
    min-width: 0;
  }
  .bp-sticky-label {
    display: block;
    font-size: 11px;
    color: #56616c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .bp-sticky-price strong {
    display: block;
    font: 700 20px Sora, sans-serif;
    color: #1f2933;
    line-height: 1.2;
  }
  .bp-sticky-add-btn {
    background: #a9614c;
    color: #ffffff;
    border: 0;
    padding: 12px 22px;
    border-radius: 4px;
    font: 600 15px Inter, sans-serif;
    cursor: pointer;
    flex-shrink: 0;
    min-height: 46px;
  }
  .bp-sticky-add-btn:active {
    background: #8b4c3a;
  }
}

@media (max-width: 540px) {
  .bp-swatches {
    grid-template-columns: 1fr;
  }
  .bp-editors {
    grid-template-columns: 1fr;
  }
  .bp-measure-panel,
  .bp-purchase-panel {
    padding: 16px !important;
  }
  .bp-price strong {
    font-size: 26px;
  }
  .bp-hotspot {
    padding: 6px;
  }
  .bp-hotspot span {
    font-size: 13px;
  }
  .bp-order-fields {
    grid-template-columns: 1fr;
    gap: 12px !important;
  }
}

/* Responsive controls and accessible states, shared by all profile models. */
.bp-swatches,.bp-editors{grid-template-columns:repeat(2,minmax(0,1fr))}
.bp-swatch,.bp-swatch-text,.bp-stepper-wrap,.bp-stepper input{min-width:0}
.bp-swatch-text{white-space:normal;overflow:visible;line-height:1.4}
.bp-stepper input{width:0}
.bp-step-btn{flex:0 0 44px}
.bp-reset-dims{min-height:44px}
.bp-drawing-meta{flex-wrap:wrap;gap:8px}
.bp-configurator input{font-variant-numeric:tabular-nums;caret-color:#8B4C3A}
.bp-configurator .bp-editor input:focus-visible{outline:3px solid #1F2933!important;outline-offset:3px}
.bp-mobile-sticky-bar{visibility:hidden}
.bp-mobile-sticky-bar.bp-sticky-visible{visibility:visible}
@media(max-width:540px){.bp-swatches{grid-template-columns:1fr}.bp-configurator .bp-order-fields{grid-template-columns:1fr}.bp-configurator{padding-bottom:86px}.bp-editors{padding:8px;gap:8px}.bp-editor input{font-size:16px!important}.bp-mobile-sticky-bar{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.bp-configurator *,.bp-mobile-sticky-bar,.bp-mobile-sticky-bar *{transition:none!important}}

/* Measurement editor lives directly on the technical drawing. */
.bp-drawing{min-height:290px;aspect-ratio:3/2;overflow:hidden}
.bp-drawing .bp-editors{position:absolute;z-index:5;width:145px;display:block;padding:8px;background:#fff;border:1px solid #abb3b8;box-shadow:0 8px 22px rgba(31,41,51,.15);border-radius:6px}
.bp-drawing .bp-editor{padding:0;background:#fff;box-shadow:none}
.bp-drawing .bp-editor[hidden]{display:none!important}
.bp-drawing .bp-editor span{font-size:13px;line-height:1.35}
.bp-drawing .bp-editor input{min-height:44px;font-size:16px!important;font-variant-numeric:tabular-nums}
.bp-hotspot{width:48px;height:52px;padding:0;display:grid;place-items:center}
.bp-hotspot span{width:auto;min-width:36px;height:auto;min-height:36px;padding:3px 5px;border-radius:5px;display:flex;flex-direction:column;line-height:1.05;gap:2px;background:#fff;box-shadow:0 1px 4px rgba(31,41,51,.12)}
.bp-hotspot small{font-size:10px;font-weight:500;line-height:1.1;font-variant-numeric:tabular-nums}
.bp-hotspot[aria-expanded="true"]{z-index:3}
.bp-hotspot:hover span,.bp-hotspot[aria-expanded="true"] span{color:#fff!important;background:#8b4c3a!important;border-color:#8b4c3a!important;transform:none;box-shadow:0 2px 6px rgba(31,41,51,.22)!important}
.bp-hotspot:focus-visible{outline:3px solid #1f2933;outline-offset:3px;border-radius:5px}
@media(max-width:540px){.bp-drawing{min-height:275px;aspect-ratio:1/1}.bp-drawing .bp-editors{width:130px}.bp-hotspot{width:44px;height:50px}}
.bp-leaders{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}
.bp-leaders line{stroke:#8b4c3a;stroke-width:1.5;stroke-dasharray:3 3}
.bp-flow-nav{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;margin:0 0 18px!important;line-height:1.5}
.bp-flow-nav a{color:#8b4c3a;text-decoration:underline;text-underline-offset:3px}
.bp-flow-nav a:hover{color:#1f2933}
.bp-selection-summary{font-size:13px;color:#56616c;margin:18px 0 0!important;line-height:1.5}
.bp-measure-summary{font-size:13px;color:#1f2933;margin:6px 0 16px!important;line-height:1.5;font-variant-numeric:tabular-nums}
@media(max-width:540px){.bp-swatches{grid-template-columns:repeat(2,minmax(0,1fr))}.bp-swatch{min-height:64px;align-items:flex-start}.bp-swatch-dot{margin-top:2px}.bp-swatch-text{font-size:12px;line-height:1.3}}
