/**
 * Floer Visualizer (version 2.1, October 2026).
 *
 * Loaded only on the page with the template "Floer Visualizer", so the rest of
 * the site does not change because of it. Plain CSS (no Sass), so it needs no
 * build step.
 *
 * The colors are those of the theme (assets/scss/_variables.scss):
 *   $brand-primary #494753, $brand-info #b194a4, $gray #464a4c,
 *   $gray-lighter #eceeef. Buttons use the buttons of the site
 *   (.btn-info, .btn-ghost-primary, .btn-ghost-gray).
 *
 * Breakpoints as in the theme: md 768, lg 992, xl 1600.
 */

.visualizer {
  --visualizer-dark: #494753;
  --visualizer-mauve: #b194a4;
  --visualizer-mauve-soft: #f5eff2;
  --visualizer-text: #464a4c;
  --visualizer-muted: #6b686e; /* 5.5:1 on white (was #8a8790, 3.5:1) */
  --visualizer-line: #e3e1e5;
  --visualizer-surface: #f6f6f7;
}

.visualizer-result {
  --visualizer-dark: #494753;
  --visualizer-mauve: #b194a4;
  --visualizer-text: #464a4c;
  --visualizer-muted: #6b686e; /* 5.5:1 on white (was #8a8790, 3.5:1) */
  --visualizer-line: #e3e1e5;
  --visualizer-surface: #f6f6f7;
}

.visualizer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.visualizer-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Only for screen readers, such as the status line above the floors ("12 vloeren gevonden"). */
.visualizer-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ header + hand with phone */

/*
 * On this page a taller header than usual, so the hand with the phone fits in it.
 * Height below the menu bar; the photo also continues behind the menu bar (see
 * further down). Lennart, 2026-10-28: a bit shorter at the top, but the phone must
 * not touch the menu bar (at least 35px apart).
 */
.visualizer-page-header {
  background-position: center 58%;
}

.visualizer-page-header .color-overlay {
  min-height: 292px;
}

@media (min-width: 768px) {
  .visualizer-page-header .color-overlay {
    min-height: 320px;
  }
}

@media (min-width: 992px) {
  .visualizer-page-header .color-overlay {
    min-height: 375px;
  }
}

/* On tablet and phone the title area on the left, so the hand fits on the right. */
@media (max-width: 991px) {
  .visualizer-page-header .color-overlay {
    justify-content: flex-start;
    padding-left: 15px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .visualizer-page-header .color-overlay {
    padding-left: calc(5% + 15px);
  }
}

/* ------------------------------------------------------------------ menu bar over the header photo */
/*
 * Just like on every page that opens with a photo, the menu bar lies transparent over the header
 * photo, and the header photo continues behind the menu bar (with the same 20% haze), so the
 * content of the header (title and hand; this page has no breadcrumb) stays where it was. All of
 * that is in assets/scss/_floer-header.scss: the template marks the header with has-header-photo.
 */

/*
 * The hand with the phone on the right in the header. The image stops at the bottom edge of
 * the phone, so that edge falls exactly on the bottom of the header photo (Lennart's wish,
 * 2026-10-28: no arm or wrist below it). On load it slides up from below and stops
 * there. The screen shows the same living room with a dark floor.
 * On the right, in line with the content below (the container is min(90%, 1150px) wide, with
 * 15px padding). The image is 0.748 times as wide as it is high. Heights in pixels:
 * the header itself is taller because of the space behind the menu bar, so percentages no longer fit.
 */
.visualizer-header-hand {
  position: absolute;
  z-index: 2;
  bottom: 0;
  right: 12px;
  width: auto;
  /* as large as possible, but to the right of the title area (which runs to about 213px) */
  height: min(211px, calc((100vw - 235px) * 1.337));
  max-width: none;
  pointer-events: none;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.3));
  animation: visualizer-hand-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
  /* Its own layer, also once it stands still: Safari on a Mac drew a grey rectangle around the
     shadow as soon as the hand stopped moving, never while it moved (Jet 2026-11-13). */
  will-change: transform;
}

@media (min-width: 768px) {
  .visualizer-header-hand {
    right: calc((100% - min(90%, 1150px)) / 2 + 20px);
    height: 285px;
  }
}

/* up to 1200px the title is in the middle and there is less room on the right */
@media (min-width: 992px) {
  .visualizer-header-hand {
    height: 319px;
  }
}

@media (min-width: 1200px) {
  .visualizer-header-hand {
    right: calc((100% - min(90%, 1150px)) / 2 + 40px);
    height: 340px;
  }
}

@keyframes visualizer-hand-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visualizer-header-hand {
    animation: none;
  }
}

/* ------------------------------------------------------------------ intro */

.visualizer-intro {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--visualizer-line);
}

.visualizer-intro h2 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--visualizer-dark);
  margin-bottom: 0.75rem;
}

.visualizer-intro p {
  margin-bottom: 0;
}

.visualizer-usps {
  list-style: none;
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: var(--visualizer-dark);
  color: #fff;
}

.visualizer-usps li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.5;
}

.visualizer-usps li + li {
  margin-top: 0.6rem;
}

.visualizer-usps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.95rem;
  height: 0.55rem;
  border-left: 2px solid var(--visualizer-mauve);
  border-bottom: 2px solid var(--visualizer-mauve);
  transform: rotate(-45deg);
}

@media (min-width: 992px) {
  .visualizer-intro {
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
  }
}

/* ------------------------------------------------------------------ steps */

.visualizer-step {
  padding: 2.5rem 0 0.5rem;
}

.visualizer-step-header {
  margin-bottom: 0.4rem;
}

.visualizer-step-nr {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--visualizer-mauve);
  margin-bottom: 0.15rem;
}

.visualizer-step h2 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--visualizer-dark);
  margin: 0;
}

.visualizer-step h2 small {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--visualizer-muted);
}

.visualizer-explanation {
  margin: 0.25rem 0 1rem;
}

/* photo */

.visualizer-dropzone {
  display: block;
  position: relative;
  margin: 1rem 0 0;
  border: 2px dashed var(--visualizer-mauve);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease-in-out;
}

.visualizer-dropzone:hover,
.visualizer-dropzone.is-dragging {
  background: var(--visualizer-mauve-soft);
}

/* The file field itself is invisible (it comes right before the photo area); when it has
   keyboard focus, the photo area shows that with a dark ring, which stands out from its
   mauve border. */
.visualizer-hidden:focus-visible + .visualizer-dropzone {
  background: var(--visualizer-mauve-soft);
  outline: 2px solid var(--visualizer-dark);
  outline-offset: 3px;
}

.visualizer-dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 2.5rem 1rem;
}

.visualizer-dropzone-icon {
  width: 46px;
  height: 46px;
  color: var(--visualizer-mauve);
}

.visualizer-dropzone-text {
  font-size: 1.05rem;
  color: var(--visualizer-dark);
}

.visualizer-dropzone-text u {
  text-decoration-color: var(--visualizer-mauve);
  text-underline-offset: 3px;
}

.visualizer-dropzone-sub {
  font-size: 0.85rem;
  color: var(--visualizer-muted);
}

.visualizer-dropzone.has-photo {
  border-style: solid;
  padding: 0.6rem;
}

.visualizer-dropzone-photo {
  display: block;
  max-width: 100%;
  max-height: 380px;
  margin: 0 auto;
}

.visualizer-dropzone-change {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--visualizer-mauve);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visualizer-tips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0.9rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--visualizer-muted);
}

.visualizer-tips li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0.5rem 0.15rem 0;
  background: var(--visualizer-mauve);
}

/* why there is a limit (step 4) */
.visualizer-limit {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  color: var(--visualizer-text);
}

.visualizer-privacy {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--visualizer-muted);
}

/* choosing floors */

.visualizer-filter {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1rem 0 1.25rem;
}

.visualizer-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.visualizer-type {
  border: 1px solid var(--visualizer-line);
  background: #fff;
  color: var(--visualizer-dark);
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.visualizer-type span {
  color: var(--visualizer-muted);
  font-size: 0.8rem;
  margin-left: 0.15rem;
}

.visualizer-type:hover {
  border-color: var(--visualizer-mauve);
}

.visualizer-type.is-active {
  background: var(--visualizer-dark);
  border-color: var(--visualizer-dark);
  color: #fff;
}

.visualizer-type.is-active span {
  color: rgba(255, 255, 255, 0.7);
}

.visualizer-search,
.visualizer-email {
  width: 100%;
  max-width: 440px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--visualizer-line);
  font: inherit;
  font-size: 0.95rem;
  color: var(--visualizer-text);
  background: #fff;
  border-radius: 0;
}

.visualizer-search:focus,
.visualizer-email:focus,
.visualizer-type:focus-visible,
.visualizer-floor:focus-visible,
.visualizer-switch-button:focus-visible {
  outline: 2px solid var(--visualizer-mauve);
  outline-offset: 2px;
}

.visualizer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .visualizer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .visualizer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.visualizer-floor {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--visualizer-line);
  background: #fff;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.visualizer-floor:hover {
  box-shadow: 0 4px 18px rgba(73, 71, 83, 0.12);
}

.visualizer-floor.is-full {
  opacity: 0.55;
}

.visualizer-floor-image {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--visualizer-surface);
}

.visualizer-floor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.visualizer-floor:hover .visualizer-floor-image img {
  transform: scale(1.04);
}

.visualizer-floor-text {
  display: block;
  padding: 0.6rem 0.75rem 0.7rem;
  line-height: 1.35;
}

.visualizer-floor-color {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--visualizer-dark);
}

.visualizer-floor-collection {
  display: block;
  font-size: 0.78rem;
  color: var(--visualizer-muted);
}

.visualizer-checkmark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--visualizer-line);
}

.visualizer-floor.is-selected {
  border-color: var(--visualizer-mauve);
  box-shadow: 0 0 0 2px var(--visualizer-mauve);
}

.visualizer-floor.is-selected .visualizer-checkmark {
  background: var(--visualizer-mauve);
  border-color: var(--visualizer-mauve);
}

.visualizer-floor.is-selected .visualizer-checkmark::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 7px;
  width: 11px;
  height: 7px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.visualizer-empty {
  color: var(--visualizer-muted);
}

.visualizer-more-row {
  text-align: center;
  margin-top: 1.25rem;
}

.visualizer-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background: var(--visualizer-surface);
  font-size: 0.9rem;
}

.visualizer-selection-empty,
.visualizer-selection-count {
  color: var(--visualizer-muted);
}

.visualizer-selection-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.35rem 0.3rem 0.7rem;
  background: #fff;
  border: 1px solid var(--visualizer-line);
  color: var(--visualizer-dark);
}

.visualizer-selection-remove {
  border: 0;
  background: none;
  color: var(--visualizer-muted);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0 0.3rem;
  cursor: pointer;
}

.visualizer-selection-remove:hover {
  color: var(--visualizer-dark);
}

/* laying direction */

.visualizer-directions {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .visualizer-directions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.visualizer-direction {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  align-items: center;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--visualizer-line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.visualizer-direction input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.visualizer-direction svg {
  grid-row: 1 / 3;
  width: 54px;
  height: 45px;
}

.visualizer-direction .visualizer-plane {
  fill: var(--visualizer-mauve-soft);
  stroke: var(--visualizer-mauve);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.visualizer-direction .visualizer-line {
  fill: none;
  stroke: var(--visualizer-mauve);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.visualizer-direction .visualizer-star {
  fill: var(--visualizer-mauve);
}

.visualizer-direction-name {
  font-weight: 500;
  color: var(--visualizer-dark);
  line-height: 1.3;
}

.visualizer-direction-name em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--visualizer-mauve);
  padding: 0.12rem 0.45rem;
  margin-left: 0.3rem;
  vertical-align: 2px;
}

.visualizer-direction-sub {
  font-size: 0.82rem;
  color: var(--visualizer-muted);
  line-height: 1.35;
}

.visualizer-direction:hover {
  border-color: var(--visualizer-mauve);
}

.visualizer-direction:has(input:checked) {
  border-color: var(--visualizer-dark);
  box-shadow: 0 0 0 1px var(--visualizer-dark);
}

.visualizer-direction:has(input:focus-visible) {
  outline: 2px solid var(--visualizer-mauve);
  outline-offset: 2px;
}

.visualizer-direction:has(input:checked) .visualizer-plane {
  fill: var(--visualizer-dark);
  stroke: var(--visualizer-dark);
}

.visualizer-direction:has(input:checked) .visualizer-line {
  stroke: #fff;
}

.visualizer-direction:has(input:checked) .visualizer-star {
  fill: var(--visualizer-mauve);
}

/* action */

.visualizer-action {
  text-align: center;
  padding: 2.5rem 0 0;
}

.visualizer-button {
  min-width: 280px;
  font-size: 1rem;
}

.visualizer-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.visualizer-hint {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--visualizer-muted);
}

.visualizer-error {
  max-width: 640px;
  margin: 1rem auto 0;
  padding: 0.85rem 1.1rem;
  background: #fbf1f1;
  border: 1px solid #e5c9c9;
  color: #7a4343;
  font-size: 0.92rem;
  text-align: left;
}

.visualizer-error[hidden] {
  display: none;
}

/* loading */

.visualizer-loading {
  text-align: center;
  padding: 3rem 0 1rem;
}

.visualizer-loading[hidden] {
  display: none;
}

.visualizer-loading-logo svg {
  width: 180px;
  height: auto;
  animation: visualizer-blink 2.4s ease-in-out infinite;
}

.visualizer-loading-logo svg .bottom {
  display: none;
}

.visualizer-loading h2 {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--visualizer-dark);
  margin: 1.25rem 0 0.25rem;
}

.visualizer-loading-text {
  color: var(--visualizer-text);
  margin: 0;
}

.visualizer-loading-sub {
  font-size: 0.82rem;
  color: var(--visualizer-muted);
  max-width: 460px;
  margin: 1rem auto 0;
}

.visualizer-bar {
  position: relative;
  width: 320px;
  max-width: 80%;
  height: 3px;
  margin: 1.25rem auto 0;
  background: var(--visualizer-line);
  overflow: hidden;
}

.visualizer-bar::after {
  content: '';
  position: absolute;
  left: -40%;
  width: 40%;
  height: 100%;
  background: var(--visualizer-mauve);
  animation: visualizer-slide 1.4s ease-in-out infinite;
}

@keyframes visualizer-slide {
  to {
    left: 100%;
  }
}

@keyframes visualizer-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visualizer-bar::after,
  .visualizer-loading-logo svg {
    animation: none;
  }
  .visualizer-bar::after {
    left: 0;
    width: 100%;
  }
}

/* ------------------------------------------------------------------ result */

.visualizer-result {
  background: var(--visualizer-surface);
  padding: 3rem 0 3.5rem;
}

/* After scrolling, do not disappear under the menu bar that stays at the top (56px on a
   phone, about 91px on a computer): 60px plus the top padding of this section (48px, from
   992px 72px) keeps the title below it. */
.visualizer-result {
  scroll-margin-top: 60px;
}

.visualizer-step {
  scroll-margin-top: 80px;
}

@media (min-width: 992px) {
  .visualizer-result {
    padding: 4.5rem 0 5rem;
  }
}

.visualizer-result[hidden] {
  display: none;
}

.visualizer-result-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--visualizer-dark);
  margin: 0;
}

.visualizer-result-title em {
  font-family: 'Caveat', cursive;
  font-style: normal;
  font-weight: 400;
  font-size: 1.3em;
  color: var(--visualizer-mauve);
}

.visualizer-result-sub {
  text-align: center;
  margin: 0.4rem 0 0;
  color: var(--visualizer-muted);
}

.visualizer-result-credit {
  text-align: center;
  margin: 0.4rem 0 0;
  font-weight: 500;
  color: var(--visualizer-dark);
}

.visualizer-card {
  max-width: 980px;
  margin: 2.25rem auto 0;
  background: #fff;
  padding: 1rem;
}

@media (min-width: 768px) {
  .visualizer-card {
    padding: 1.5rem;
  }
}

.visualizer-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.visualizer-card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--visualizer-dark);
  margin: 0;
}

.visualizer-card h3 small {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--visualizer-muted);
  margin-top: 0.1rem;
}

.visualizer-switch {
  display: inline-flex;
  border: 1px solid var(--visualizer-line);
}

.visualizer-switch-button {
  border: 0;
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  color: var(--visualizer-text);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.visualizer-switch-button + .visualizer-switch-button {
  border-left: 1px solid var(--visualizer-line);
}

.visualizer-switch-button:not(.is-generated)::before {
  content: '+ ';
  color: var(--visualizer-mauve);
}

.visualizer-switch-button:hover:not(:disabled) {
  background: var(--visualizer-mauve-soft, #f5eff2);
}

.visualizer-switch-button.is-active {
  background: var(--visualizer-dark);
  color: #fff;
}

.visualizer-switch-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

/* before/after slider: both images have the same aspect ratio (the photo is cropped
   beforehand), so the before image can lie over it pixel-perfectly. */
.visualizer-slider {
  position: relative;
  overflow: hidden;
  user-select: none;
  background: var(--visualizer-surface);
}

.visualizer-slider-after {
  display: block;
  width: 100%;
  height: auto;
  min-height: 120px;
}

.visualizer-slider-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 calc(100% - var(--visualizer-pos, 50%)) 0 0);
  pointer-events: none;
}

.visualizer-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--visualizer-pos, 50%);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.visualizer-slider-handle {
  position: absolute;
  top: 50%;
  left: var(--visualizer-pos, 50%);
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.visualizer-slider-handle::before,
.visualizer-slider-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-top: -5px;
}

.visualizer-slider-handle::before {
  left: 11px;
  border-right: 7px solid var(--visualizer-dark);
}

.visualizer-slider-handle::after {
  right: 11px;
  border-left: 7px solid var(--visualizer-dark);
}

.visualizer-slider-label {
  position: absolute;
  top: 12px;
  padding: 0.25rem 0.7rem;
  background: rgba(73, 71, 83, 0.85);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.visualizer-slider-label.before {
  left: 12px;
}

.visualizer-slider-label.after {
  right: 12px;
}

.visualizer-slider-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* The range itself is invisible (it comes before the handle, see visualizer.js); with
   keyboard focus the handle gets a ring, so you see what the arrow keys move. */
.visualizer-slider-range:focus-visible ~ .visualizer-slider-handle {
  box-shadow: 0 0 0 3px var(--visualizer-dark), 0 0 0 5px #fff, 0 2px 10px rgba(0, 0, 0, 0.3);
}

.visualizer-slider-busy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--visualizer-dark);
  text-align: center;
}

.visualizer-slider-busy[hidden] {
  display: none;
}

.visualizer-slider-busy span {
  width: 34px;
  height: 34px;
  border: 3px solid var(--visualizer-line);
  border-top-color: var(--visualizer-mauve);
  border-radius: 50%;
  animation: visualizer-spin 0.9s linear infinite;
}

.visualizer-slider-busy p {
  margin: 0;
  font-size: 0.9rem;
}

@keyframes visualizer-spin {
  to {
    transform: rotate(360deg);
  }
}

.visualizer-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.visualizer-card-save {
  display: contents;
}

.visualizer-tip {
  flex-basis: 100%;
  font-size: 0.78rem;
  color: var(--visualizer-muted);
}

.visualizer-switch-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: 100%;
}

.visualizer-card-error {
  margin: 0;
  max-width: 420px;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
}

@media (max-width: 575px) {
  .visualizer-switch-block {
    width: 100%;
    align-items: stretch;
  }
  .visualizer-card-error {
    max-width: none;
  }
}

.visualizer-retry {
  text-align: center;
  margin-top: 2.25rem;
}

.visualizer-disclaimer {
  max-width: 760px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--visualizer-muted);
}

@media (max-width: 575px) {
  .visualizer-card-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
  .visualizer-button {
    width: 100%;
    min-width: 0;
  }
  .visualizer-switch {
    width: 100%;
  }
  .visualizer-switch-button {
    flex: 1;
    padding: 0.5rem 0.25rem;
  }
}

/* Rounded corners, the same 6px as the menu bar and the rest of the site (Lennart
   2026-11-13, after Kay and Floor), so the page no longer mixes square and round.
   Where photos or buttons sit against the edge, the box cuts them off. */
.visualizer-usps,
.visualizer-dropzone,
.visualizer-type,
.visualizer-search,
.visualizer-email,
.visualizer-floor,
.visualizer-selection-item,
.visualizer-direction,
.visualizer-error,
.visualizer-card,
.visualizer-switch,
.visualizer-slider {
  border-radius: 6px;
}

.visualizer-floor,
.visualizer-slider {
  overflow: hidden;
}

/* The switch rounds its outer buttons itself (5px inside its 1px border) instead of cutting
   them off: overflow: hidden would also cut off the focus ring of a button. */
.visualizer-switch-button:first-child {
  border-radius: 5px 0 0 5px;
}

.visualizer-switch-button:last-child {
  border-radius: 0 5px 5px 0;
}

.visualizer-switch-button:only-child {
  border-radius: 5px;
}
