/* =========================================================================
   FLOOR VISUALISER — styles for the optional add-on module.
   Ships and is removed together with visualiser.js.
   ========================================================================= */

.vz-bar { display: flex; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; margin: 0 0 18px; }
.vz-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vz-lbl {
  font-family: var(--f-display); font-size: 11.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}

/* the room is the point of the page, so it gets the space */
.vz-stage {
  position: relative; background: var(--off); border: 1px solid var(--line);
  min-height: 300px; overflow: hidden;
}
.vz-stage canvas {
  display: block; width: 100%; height: auto;
  opacity: 0; transition: opacity .45s ease;
}
.vz-stage canvas.ready { opacity: 1; }
.vz-stage.busy::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: rgba(255,255,255,.35);
  animation: vzpulse .9s ease-in-out infinite;
}
@keyframes vzpulse { 0%,100% { opacity: .15 } 50% { opacity: .5 } }

/* the shade currently on the floor, over the image itself rather than in a
   sidebar the eye has to travel to */
.vz-now {
  position: absolute; left: 0; bottom: 0; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.94); padding: 12px 16px;
  border-top: 3px solid var(--yellow); max-width: min(420px, 88%);
}
.vz-chip { width: 40px; height: 40px; flex: none; border: 1px solid var(--line); }
.vz-now-txt { min-width: 0; }
.vz-now-txt b { display: block; font-family: var(--f-display); font-size: 17px; line-height: 1.2; }
.vz-now-txt small { display: block; color: var(--muted); font-size: 12.5px; }
.vz-now .fav { position: static; width: 36px; height: 36px; flex: none;
  border: 1px solid var(--line); background: var(--paper); }

.vz-note { font-size: 13.5px; color: var(--muted); margin: 12px 0 26px; max-width: 76ch; }

/* ---- shade picker: one collection at a time, or a search ---- */
.vz-controls { border-top: 1px solid var(--line); padding-top: 22px; }
.vz-pick { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.vz-field { display: flex; flex-direction: column; gap: 6px; min-width: 260px; flex: 1; }
.vz-field span {
  font-family: var(--f-display); font-size: 11.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}
.vz-field select, .vz-field input {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--paper); font: inherit; font-size: 15px; color: var(--ink);
}
.vz-field select:focus, .vz-field input:focus {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent;
}

/* a wrapping grid of photographed swatches, capped in height so the room stays
   on screen — this replaces the 600-item list that ran off the page */
.vz-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px; max-height: 232px; overflow-y: auto; padding: 2px;
}
.vz-swatch {
  aspect-ratio: 1; border: 1px solid var(--line); border-radius: 2px; padding: 0;
  overflow: hidden; position: relative; transition: transform .16s ease, box-shadow .16s ease;
}
.vz-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vz-swatch:hover { transform: scale(1.12); z-index: 2; box-shadow: var(--shadow); }
.vz-swatch.on { box-shadow: 0 0 0 3px var(--blue); border-color: var(--blue); z-index: 2; }
.vz-none { color: var(--muted); padding: 20px 0; }

@media (max-width: 700px) {
  .vz-now { position: static; max-width: none; border-top: 0; border-bottom: 1px solid var(--line); }
  .vz-stage { display: flex; flex-direction: column-reverse; }
  .vz-strip { max-height: 180px; }
}

/* ---- your own photo ---- */
.vz-stage.own canvas { cursor: crosshair; }
.vz-own {
  background: var(--blue-tint); border-left: 4px solid var(--yellow);
  padding: 14px 18px; margin: 14px 0 0;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.vz-own p { margin: 0; font-size: 14.5px; color: var(--blue-ink); max-width: 62ch; }
.vz-tol { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--blue-deep);
  font-family: var(--f-display); letter-spacing: .08em; text-transform: uppercase; }
.vz-tol input { width: 150px; accent-color: var(--blue); }

.vz-upload { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0 22px; }
.vz-upload .btn { cursor: pointer; }
.vz-priv { font-size: 13px; color: var(--muted); }
.vz-warn { margin: 0; font-size: 13.5px; color: #9a3412; flex-basis: 100%; }
.vz-warn:empty { display: none; }
