/* ── Bifold RAL colour-picker: functional pieces only ──
   No layout/sizing/visibility changes to the existing swatch grid or door
   image — those stay exactly as designed. This only adds what's needed for
   the hover-to-preview interaction: a colour-tint overlay on the door image
   and a tooltip that follows the cursor. */

/* Positioning context for the overlay — doesn't resize the image, just lets
   the overlay stack on top of it at its natural size. */
.ral-door-stage {
  position: relative;
}

/* Overlay: mix-blend-mode multiply → white door pixels take the RAL colour */
.ral-door-overlay {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  mix-blend-mode: multiply;
  background-color: transparent;
  pointer-events: none;
  transition: background-color 0.35s ease;
}

/* Tooltip follows cursor */
#ralTooltip {
  position: fixed;
  background: rgba(10, 10, 10, 0.88);
  color: #fff;
  padding: 5px 12px;
  border-radius: 5px;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 9999;
}

#ralTooltip.ral-visible {
  opacity: 1;
  transform: translateY(0);
}
