.boat-configurator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr);
  align-items: start;
  gap: 32px;
  padding: 28px 0 64px;
}
.boat-configurator-preview {
  position: sticky;
  top: var(--config-preview-offset, 110px);
  min-width: 0;
  border: 1px solid var(--line, #b9cbc5);
  border-radius: 12px;
  background: var(--soft, var(--paper, #f3f6f2));
}
.boat-configurator-preview canvas[data-boat-scene] {
  display: block;
  width: 100%;
  height: min(44vw, 390px);
  min-height: 340px;
  touch-action: pan-y;
}
.boat-configurator,
.boat-picker,
.config-selection {
  color: var(--ink, #193c37);
  font-family: 'Golos Text', Arial, sans-serif;
  min-width: 0;
}
.boat-configurator {
  border: 0;
  background: transparent;
  padding: 4px 0 0;
}
.boat-configurator .bc-heading {
  margin-bottom: 24px;
}
.boat-configurator h2 {
  font-size: 29px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.boat-configurator h3,
.config-selection h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.boat-configurator .bc-heading p,
.boat-configurator .bc-help,
.boat-picker .bc-help {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #4c6660);
  margin: 10px 0 0;
}
.boat-configurator .bc-field,
.boat-picker .bc-field {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}
.boat-configurator .bc-field select,
.boat-configurator .bc-field input[type=text],
.boat-picker .bc-field select {
  display: block;
  width: 100%;
  min-height: 50px;
  margin-top: 9px;
  padding: 12px 14px;
  border: 1px solid var(--field-line, var(--line, #9eaeaa));
  border-radius: 0;
  background: var(--field, var(--input, var(--paper, #fff)));
  color: var(--ink, #193c37);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.boat-configurator .bc-boat-details {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.boat-configurator .bc-field input[type=text]::placeholder {
  color: var(--muted, #4c6660);
  opacity: 1;
}
.boat-configurator .bc-field input[type=text] {
  caret-color: var(--ink, #193c37);
}
.boat-configurator .bc-fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 26px 0 0;
}
.boat-configurator .bc-fieldset legend {
  display: block;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 11px;
  padding: 0;
}
.boat-configurator .bc-works,
.boat-configurator .bc-cover-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.boat-configurator .bc-choice,
.boat-configurator .bc-visibility {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.boat-configurator .bc-choice {
  padding: 11px;
  border: 1px solid var(--line, #b9cbc5);
  background: transparent;
}
.boat-configurator .bc-choice:has(input:checked) {
  border-color: transparent;
  background: var(--soft, var(--input, var(--paper, #f1f5ee)));
}
.boat-configurator input[type=checkbox],
.boat-configurator input[type=radio] {
  appearance: auto;
  flex: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent, var(--signal, #176f63));
}
.boat-configurator .bc-tent-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  margin-top: 25px;
  border: 1px solid var(--line, #b9cbc5);
  border-radius: 0;
  background: var(--soft, var(--paper, #fff));
  color: var(--ink, #193c37);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.boat-configurator .bc-toggle-label {
  flex: none;
  margin-left: 14px;
  font-size: 14px;
  font-weight: 400;
}
.boat-configurator .bc-tent-toggle[aria-expanded="true"] {
  border-color: transparent;
}
.boat-configurator .bc-tent-options {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line, #b9cbc5);
}
.boat-configurator .bc-tent-options[hidden] {
  display: none;
}
.boat-configurator .bc-tent-options > .bc-field {
  margin-top: 23px;
}
.boat-configurator .bc-cover-types {
  grid-template-columns: 1fr;
}
.boat-configurator .bc-current-color {
  display: inline-block;
  font-weight: 400;
  color: var(--muted, #4c6660);
  margin-left: 8px;
}
.boat-configurator .bc-colors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.boat-configurator .bc-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-height: 75px;
  padding: 8px 3px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}
.boat-configurator .bc-color-name {
  display: block;
  max-width: 100%;
  min-height: 2.6em;
  line-height: 1.3;
}
.boat-configurator .bc-color input {
  position: absolute;
  left: 50%;
  top: 17px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.boat-configurator .bc-swatch {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid #77817e;
  border-radius: 50%;
  background: var(--swatch-color);
}
.boat-configurator .bc-color:has(input:checked) {
  border-color: transparent;
}
.boat-configurator .bc-color:has(input:checked) .bc-swatch {
  outline: 0;
  box-shadow: none;
}
.boat-configurator .bc-color:focus-within {
  outline: 0;
  box-shadow: none;
  background: var(--soft, var(--paper));
}
.boat-configurator .bc-visibility {
  margin-top: 20px;
}
.boat-configurator .bc-summary {
  padding-top: 24px;
  margin-top: 25px;
  border-top: 1px solid var(--line, #b9cbc5);
}
.boat-configurator .bc-summary p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 18px;
}
.boat-configurator .bc-request,
.boat-picker .bc-configurator-link {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 15px;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}
.boat-configurator .bc-preview-status,
.boat-picker .bc-preview-status {
  min-height: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, #4c6660);
  margin: 14px 0 0;
}
.boat-configurator .bc-preview-status:empty,
.boat-picker .bc-preview-status:empty {
  display: none;
}
.boat-picker {
  border-top: 1px solid var(--line, #b9cbc5);
  padding-top: 22px;
  margin-top: 22px;
}
.boat-picker .bc-configurator-link {
  margin-top: 16px;
}
.boat-configurator a:focus-visible,
.boat-configurator button:focus-visible,
.boat-configurator select:focus-visible,
.boat-configurator input:focus-visible,
.boat-picker a:focus-visible,
.boat-picker select:focus-visible,
.config-selection a:focus-visible {
  outline: 0;
  box-shadow: none;
}
.config-selection {
  border: 1px solid var(--line, #b9cbc5);
  padding: 22px;
  margin-bottom: 25px;
  background: var(--soft, var(--input, var(--paper, #f1f5ee)));
}
.config-selection[hidden] {
  display: none;
}
.inner-page .mp-content .config-selection h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
.config-selection dl {
  margin: 0;
}
.config-selection dl > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line, #b9cbc5);
}
.config-selection dt,
.config-selection dd {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.config-selection dt {
  color: var(--muted, #4c6660);
}
.config-selection dd {
  overflow-wrap: anywhere;
}
.config-selection a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 14px;
}
@media (hover: hover) and (pointer: fine) {
  .boat-configurator .bc-choice:hover,
  .boat-configurator .bc-color:hover {
    background: var(--soft, var(--paper));
  }
  .boat-configurator .bc-tent-toggle:hover {
    background: var(--soft, var(--paper));
  }
}
@media (max-width: 1050px) {
  .boat-configurator-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 24px;
  }
  .boat-configurator {
    padding: 4px 0 0;
  }
}
@media (max-width: 780px) {
  .boat-configurator-layout {
    display: block;
    padding-top: 23px;
  }
  .boat-configurator-preview {
    position: static;
    top: auto;
    z-index: 8;
    margin-bottom: 24px;
    box-shadow: none;
  }
  .boat-configurator-preview canvas[data-boat-scene] {
    height: clamp(260px, 43vw, 360px);
    min-height: 260px;
    max-height: none;
  }
  .boat-configurator {
    padding: 0;
  }
  .boat-configurator h2 {
    font-size: 27px;
  }
  .boat-configurator .bc-boat-details {
    grid-template-columns: 1fr;
  }
  .boat-picker {
    padding-top: 18px;
    margin-top: 18px;
  }
}
@media (max-width: 480px) {
  .config-selection dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
@media (max-width: 359px) {
  .boat-configurator .bc-works {
    grid-template-columns: 1fr;
  }
  .boat-configurator .bc-colors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .config-selection dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .boat-configurator *,
  .boat-picker * {
    transition: none !important;
    animation: none !important;
  }
}

/* All constructions stay available to order; this note describes preview readiness. */
.boat-configurator .bc-compatibility {
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid var(--line, #b9cbc5);
  background: var(--soft, var(--paper, #f3f6f2));
  color: var(--ink, #193c37);
  font-size: 14px;
  line-height: 1.6;
}
.boat-configurator .bc-compatibility[hidden] { display: none; }
.boat-configurator .bc-visibility:has(input:disabled) { cursor: default; color: var(--muted, #4c6660); }


/* Nested work choices stay within their service direction. */
.boat-configurator .bc-works { align-items: stretch; }
.boat-configurator .bc-work-group { min-width: 0; }
.boat-configurator .bc-subworks { margin: 4px 0 0 18px; }
.boat-configurator .bc-subworks[hidden] { display: none; }
.boat-configurator .bc-subwork-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 4px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}


/* One contour groups the parent work and its optional detail. */
.boat-configurator .bc-work-group { border: 1px solid var(--line, #b9cbc5); }
.boat-configurator .bc-work-group > .bc-choice { border: 0; }
.boat-configurator .bc-work-group:has(> .bc-choice input:checked) {
  border-color: transparent;
  background: var(--soft, var(--input, var(--paper, #f1f5ee)));
}
.boat-configurator .bc-work-group > .bc-choice:has(input:checked) { background: transparent; }
.boat-configurator .bc-work-group .bc-subworks { margin: 0; padding: 0 11px 7px 28px; }
.boat-configurator .bc-work-group .bc-subwork-choice { padding-inline: 0; }


.boat-configurator .bc-choice:has(input:checked) {
  border-color: transparent;
  background: var(--soft, var(--paper));
}
.boat-configurator .bc-choice:has(input:checked) span { font-weight: 600; }
.boat-configurator .bc-color:has(input:checked) {
  border-color: transparent;
  background: var(--soft, var(--paper));
}
.boat-configurator .bc-color:has(input:checked) .bc-color-name { font-weight: 700; }
.boat-configurator .bc-color:focus-within .bc-color-name {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: .2em;
}
.boat-configurator .bc-color:has(input:checked) .bc-swatch {
  outline: 0;
  box-shadow: none;
}

/* Engine selection stays first; the previous boat/work choice can be expanded. */
.config-selection--engine > summary {
  min-height: 44px;
  cursor: pointer;
  color: var(--ink);
}
.inner-page .mp-content .config-selection--engine > summary h2 {
  display: inline;
  margin: 0;
  vertical-align: middle;
}
.config-selection--engine > summary::marker {
  color: currentColor;
  font-size: .8em;
}
.config-selection--engine[open] > summary {
  margin-bottom: 12px;
}
.config-selection--engine > summary:focus-visible {
  outline: 0;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: .22em;
}
