.cadet-configurator {
  padding-block: 32px 60px;
}
.cadet-back {
  display: inline-block;
  margin-bottom: 22px;
  text-decoration: underline;
}
.cadet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 335px);
  gap: 20px;
  align-items: start;
  margin-top: 22px;
}
.cadet-preview,
.cadet-finishes {
  background: #f5f7f9;
  border: 1px solid #b9c5d1;
  border-radius: 6px;
}
.cadet-stage {
  position: relative;
  padding-bottom: 12px;
  background: radial-gradient(ellipse at 50% 38%, #c9efff 8%, #91dbff 70%, #70cafa 100%);
  border-radius: 6px 6px 0 0;
}
#cadet-canvas {
  display: block;
  width: 100%;
  height: clamp(270px, 38vw, 480px);
  touch-action: none;
  cursor: grab;
}
#cadet-canvas:active { cursor: grabbing; }
#cadet-preview-status {
  position: absolute;
  inset: 12px;
  height: fit-content;
  padding: 12px;
  background: #fff;
}
.cadet-view-controls {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  width: max-content;
  max-width: calc(100% - 20px);
  margin: -34px auto 0;
  padding: 4px;
  border: 1px solid var(--navy2);
  border-radius: 6px;
  background: var(--navy);
  box-shadow: 0 3px 12px #101c3033;
}
.cadet-view-controls button {
  min-height: 38px;
  padding: 5px 9px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cadet-view-presets,
.cadet-view-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}
.cadet-view-actions {
  border-radius: 4px;
  background: var(--navy2);
}
.cadet-view-controls button:enabled:hover {
  background: #334864;
}
.cadet-view-controls button[aria-pressed="true"] {
  background: var(--red);
}
.cadet-view-controls button[aria-pressed="true"]:enabled:hover {
  background: #a91d29;
}
#cadet-instructions {
  margin: 0;
  padding: 8px 12px;
  text-align: center;
}
.cadet-finishes { padding: 16px; }
.cadet-finishes h2 { margin: 0 0 12px; }
.cadet-options { padding: 0; margin: 0; border: 0; min-width: 0; }
.cadet-options legend {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.cadet-options label {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
}
.cadet-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.cadet-swatch {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 1px solid #8091a4;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, #fff 0 4px, #dce2e8 4px 8px);
}
.cadet-choice select {
  width: 100%;
  min-width: 0;
  padding: 6px 3px;
  border: 1px solid #8596a8;
  border-radius: 4px;
  background: white;
  color: #14243b;
  font: inherit;
}
.cadet-view-controls button:enabled { cursor: pointer; }
.cadet-view-controls button:disabled { opacity: .55; }
.cadet-note { margin: 9px 0 0; }
.cadet-configurator :focus-visible { outline: 3px solid #205890; outline-offset: 3px; }
.cadet-view-controls button:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.cadet-pricing {
  margin-top: 24px;
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid #b9c5d1;
  border-radius: 6px;
  background: #f5f7f9;
}
.cadet-pricing h2 {
  margin: 8px 0 18px;
}
.cadet-price-base,
.cadet-price-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  padding: 14px;
  border-radius: 4px;
}
.cadet-price-base {
  border-left: 3px solid var(--red);
  background: #e6edf3;
}
.cadet-price-base > div:first-child { flex: 1 1 250px; }
.cadet-price-base h3,
.cadet-price-total h3 {
  margin: 0;
  letter-spacing: normal;
}
.cadet-price-base p,
.cadet-price-total p {
  margin: 4px 0 0;
}
.cadet-price-amount span {
  display: block;
}
.cadet-price-options {
  min-width: 0;
  margin: 20px 0;
  padding: 0;
  border: 0;
}
.cadet-price-options legend { padding: 0; font-weight: 800; }
.cadet-price-options > p { margin: 4px 0 8px; }
.cadet-price-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 5px;
  border-bottom: 1px solid #d4dce5;
  cursor: pointer;
}
.cadet-price-option:has(input:checked) { background: #e6edf3; }
.cadet-price-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--red);
  cursor: inherit;
}
.cadet-price-amount,
.cadet-price-option strong,
.cadet-price-adjustments strong,
.cadet-price-total output {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cadet-price-total {
  background: var(--navy);
  color: white;
}
.cadet-price-total output {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
}
.cadet-price-adjustments {
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 4px;
  background: #e6edf3;
}
.cadet-price-adjustments > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}
.cadet-price-adjustments > div + div { border-top: 1px solid #d4dce5; }
.cadet-price-adjustments small { display: block; margin-top: 3px; }
.cadet-next-steps {
  margin-top: 24px;
  padding: clamp(16px, 3vw, 30px);
  border-top: 3px solid var(--red);
  border-radius: 4px;
  background: #f5f7f9;
}
.cadet-next-steps h2 { margin: 0 0 10px; }
.cadet-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.cadet-next-actions .btn {
  margin: 0;
  padding: 11px 15px;
  border: 1px solid var(--red);
  border-radius: 4px;
  line-height: 1.4;
}
.cadet-next-actions .cadet-share-button {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy);
  font-family: inherit;
}
.cadet-next-actions button:enabled { cursor: pointer; }
.cadet-next-actions button:disabled { opacity: .55; }
:is([data-cadet-image-status], [data-europe-image-status]):empty { margin: 0; }
.cadet-preview .cadet-next-actions { justify-content: center; margin: 0; padding: 0 12px 12px; }
.cadet-preview .cadet-next-actions .btn { padding: 8px 10px; }
.cadet-preview :is([data-cadet-image-status], [data-europe-image-status]):not(:empty) { padding: 0 12px 10px; text-align: center; }
:is(#cadet-video-dialog, #ok-video-dialog, #europe-video-dialog, #merlin-video-dialog) {
  position: relative;
  width: min(90vw, 1000px);
  padding: 18px;
  border: 1px solid #b9c5d1;
  border-radius: 6px;
  background: #f5f7f9;
  color: var(--navy);
}
:is(#cadet-video-dialog, #ok-video-dialog, #europe-video-dialog, #merlin-video-dialog)::backdrop { background: #101c30b3; }
:is(#cadet-video-dialog, #ok-video-dialog, #europe-video-dialog, #merlin-video-dialog) h2 { margin: 0 36px 8px 0; }
:is(#cadet-video-dialog, #ok-video-dialog, #europe-video-dialog, #merlin-video-dialog) [hidden] { display: none; }
:is(#cadet-video-dialog, #ok-video-dialog, #europe-video-dialog, #merlin-video-dialog) video {
  display: block;
  width: 100%;
  max-height: 65vh;
  background: #c9efff;
}
.cadet-video-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
}
@media (max-width: 820px) {
  .cadet-layout { grid-template-columns: minmax(0, 1fr); }
}



:is(#cadet-video-dialog,#ok-video-dialog,#europe-video-dialog,#merlin-video-dialog){box-sizing:border-box;width:min(90vw,1000px);max-height:90vh;overflow:auto}
:is(#cadet-video-dialog,#ok-video-dialog,#europe-video-dialog,#merlin-video-dialog) video{box-sizing:border-box;width:100%;height:auto;aspect-ratio:16/9;max-height:65vh;object-fit:contain}
