/* ── Bifold RAL colour-picker section ── */

.frame-2488 {
  padding: 40px 20px !important;
  row-gap: 24px !important;
  gap: 24px !important;
}

/* Door stage: relative container for colour overlay */
.ral-door-stage {
  position: relative;
  display: inline-block;
  max-width: 480px;
  width: 100%;
  margin: 0;
  grid-column: 2 / 6;
  align-self: start;
  justify-self: center;
}

.ral-door-stage .image-69 {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* 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);
}

/* ── Combined grid: swatches + door image ── */

.frame-2480 {
  row-gap: 0 !important;
}

.frame-2463 {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 8px !important;
  flex-direction: unset !important;
  align-items: unset !important;
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}

/* Column wrappers flow their children into the parent grid */
.frame-2463 > .frame-2475,
.frame-2463 > .frame-2471 {
  display: contents !important;
}

/* Compact swatch */
.frame-2463 [data-w-id] {
  width: 100% !important;
  max-width: unset !important;
  height: 54px !important;
  min-height: 54px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  padding: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  outline: none !important;
}

.frame-2463 [data-w-id]:hover,
.frame-2463 [data-w-id]:focus-visible {
  transform: scale(1.12) !important;
  box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  z-index: 2 !important;
  position: relative !important;
}

/* Hide text labels inside swatches — info shown via tooltip */
.frame-2463 .frame-2491 {
  display: none !important;
}

/* Mobile: 5 columns, image full width */
@media (max-width: 768px) {
  .frame-2463 {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 6px !important;
    max-width: 100% !important;
  }

  .frame-2463 [data-w-id] {
    height: 44px !important;
    min-height: 44px !important;
  }

  .ral-door-stage {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    max-width: 100% !important;
    margin: 12px 0 !important;
  }
}
