/* components/speed-window-shape-template.module.css */
.speed_window_shape_template_preview {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 8%;
  margin: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  cursor: pointer;
  container-type: inline-size;
}
.speed_window_shape_template_preview:focus-visible {
  outline: 2px solid #4c72a5;
  outline-offset: -4px;
}
.speed_window_shape_template_diagram {
  position: relative;
  display: flex;
  isolation: isolate;
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 58/34;
  box-sizing: border-box;
  gap: clamp(1px, .7cqw, 3px);
  padding: clamp(1px, 1cqw, 4px);
  border: 2px solid #53616e;
  background: #fff;
}
.speed_window_shape_template_diagram:not(.speed_window_shape_template_door)::before {
  content: "";
  position: absolute;
  inset: clamp(1px, 1cqw, 4px);
  z-index: 3;
  border: .5px solid #111;
  pointer-events: none;
}
.speed_window_shape_template_panel {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(2px, 1.5cqw, 5px);
  border: clamp(.75px, .6cqw, 1.5px) solid #53616e;
  background-color: #fff;
  background-image: linear-gradient(#edf5f9, #edf5f9), linear-gradient(#fff, #fff);
  background-origin: content-box, border-box;
  background-clip: content-box, border-box;
  color: #d32027;
  font-size: clamp(12px, 12cqw, 34px);
  line-height: 1;
}
.speed_window_shape_template_panel::after {
  content: "";
  position: absolute;
  inset: clamp(2px, 1.5cqw, 5px);
  border: 1px solid #acbac5;
  pointer-events: none;
}
.speed_window_shape_template_panel[data-slide] {
  z-index: 2;
}
.speed_window_shape_template_playing .speed_window_shape_template_panel[data-slide] {
  animation: speed_window_shape_template_slide 1.4s ease-in-out;
}
.speed_window_shape_template_square {
  width: 58%;
  aspect-ratio: 1;
}
.speed_window_shape_template_system {
  aspect-ratio: 58/24;
}
.speed_window_shape_template_system .speed_window_shape_template_panel:first-child {
  background: #59616a;
  border-color: #46505b;
}
.speed_window_shape_template_door {
  width: 35%;
  aspect-ratio: 35/56;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}
.speed_window_shape_template_doorDrawing {
  display: block;
  width: 100%;
  height: 100%;
}
@keyframes speed_window_shape_template_slide {
  0%, 100% {
    transform: translateX(0);
  }
  45% {
    transform: translateX(var(--speed-template-slide,0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .speed_window_shape_template_playing .speed_window_shape_template_panel[data-slide] {
    animation: none;
  }
  .speed_window_shape_template_doorDrawing animate {
    display: none;
  }
}
.speed_window_shape_template_projectDrawing {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.speed_window_shape_template_projectPlaying [data-project-pane=opening] {
  transform-box: fill-box;
  transform-origin: center top;
  animation: speed_window_shape_template_project-open 1.4s ease-in-out;
}
@keyframes speed_window_shape_template_project-open {
  0%, 100% {
    transform: scaleY(1);
  }
  40%, 60% {
    transform: scaleY(.82);
  }
}
@media (prefers-reduced-motion: reduce) {
  .speed_window_shape_template_projectPlaying [data-project-pane=opening] {
    animation: none;
  }
}
.speed_window_shape_template_fixedPreview {
  cursor: default;
}
.speed_window_shape_template_projectPlaying [data-mini-opening] {
  transform-box: fill-box;
  transform-origin: left center;
  animation: speed_window_shape_template_mini-open 1.4s ease-in-out;
}
@keyframes speed_window_shape_template_mini-open {
  0%, 100% {
    transform: scaleX(1);
  }
  40%, 60% {
    transform: scaleX(.82);
  }
}
@media (prefers-reduced-motion: reduce) {
  .speed_window_shape_template_projectPlaying [data-mini-opening] {
    animation: none;
  }
}
.speed_window_shape_template_fixedLabel {
  font-family: Arial, sans-serif;
  font-size: clamp(14px, 12cqw, 20px);
  line-height: 1;
  color: #bd3035;
}
.speed_window_shape_template_projectPlaying[data-project-hinge=bottom] [data-project-pane=opening] {
  transform-origin: center bottom;
}
.speed_window_shape_template_projectPlaying [data-door-elevation] {
  transform-box: fill-box;
  transform-origin: left center;
  animation: speed_window_shape_template_mini-open 1.4s ease-in-out;
}
.speed_window_shape_template_projectPlaying [data-door-elevation=right-hinge] {
  transform-origin: right center;
}
@media (prefers-reduced-motion: reduce) {
  .speed_window_shape_template_projectPlaying [data-door-elevation] {
    animation: none;
  }
}
.speed_window_shape_template_specialDrawing {
  display: block;
  max-width: 100%;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.speed_window_shape_template_preview[data-window-layers=single] .speed_window_shape_template_diagram::before {
  display: none;
}
.speed_window_shape_template_preview[data-window-layers=double] .speed_window_shape_template_diagram {
  padding: clamp(2px, 1.8cqw, 5px);
}
.speed_window_shape_template_specialDrawing text {
  font-family: Arial, sans-serif;
}
.speed_window_shape_template_specialDrawing > rect:first-child {
  stroke: #53616e;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}
.speed_window_shape_template_specialDrawing > g > rect {
  vector-effect: non-scaling-stroke;
  stroke-width: .6px;
}
.speed_window_shape_template_specialDrawing > g > rect:first-child {
  stroke: #53616e;
  stroke-width: .8px;
}
