/* ===== 360° colour viewer — Figma "color picker section" (desktop 1440x947) =====
   Desktop px / 19.2 = vw. Mobile px / 3.75 = vw inside @media (max-width:768px). */
.cp {
  width: 100%;
  box-sizing: border-box;
  padding: 4.1667vw 0; /* 80 */
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.0833vw; /* 40 */
}

/* --- headline --- */
.cp__headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8333vw; /* 16 */
  text-align: center;
}

.cp__model {
  margin: 0;
  font-family: var(--f-bold);
  font-weight: 700;
  font-size: 1.875vw; /* 36 */
  line-height: 1; /* 36 */
  color: var(--ink);
}

.cp__accent {
  display: block;
  width: 12.5vw; /* 240 */
  height: 0.2083vw; /* 4 */
  background: var(--brand-accent);
}

.cp__range {
  margin: 0;
  font-family: var(--f-regular);
  font-weight: 400;
  font-size: 1.4583vw; /* 28 */
  line-height: 1.25; /* 35 */
  color: var(--ink);
}

/* --- picker: viewer + name + swatches (1000 wide in the Figma) --- */
.cp__picker {
  width: 52.0833vw; /* 1000 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6667vw; /* 32 */
}

.cp__viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 453;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
}

.cp__viewer.is-dragging {
  cursor: grabbing;
}

.cp__viewer:focus-visible {
  outline: 0.1042vw solid var(--brand-accent);
  outline-offset: 0.5208vw;
}

.cp__frame {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* drag affordance — not in the Figma, fades out on first interaction */
.cp__hint {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4167vw; /* 8 */
  padding: 0.4167vw 0.8333vw;
  border-radius: 2.0833vw;
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--f-semibold);
  font-size: 0.8333vw; /* 16 */
  line-height: 1.375;
  color: var(--ink);
  white-space: nowrap;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cp__hint-icon {
  width: 0.8333vw;
  height: 0.8333vw;
  background: url("https://media.renault.co.il/ao/campaigns/renault-symbioz-fleet/images/icons/icon-arrow.svg") no-repeat center / contain;
  opacity: 0.7;
}

.cp__picker.is-touched .cp__hint {
  opacity: 0;
}

/* --- selected colour name --- */
.cp__name {
  margin: 0;
  font-family: var(--f-semibold);
  font-weight: 600;
  font-size: 1.4583vw; /* 28 */
  line-height: 1.1; /* 30.8 */
  color: var(--ink);
  text-align: center;
}

/* --- swatch row --- */
.cp__swatches {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7292vw; /* 14 */
  direction: ltr; /* Figma palette order runs left to right */
}

.cp__swatch {
  width: 2.9167vw; /* 56 */
  height: 2.9167vw;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.cp__swatch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.cp__swatch:hover {
  transform: scale(1.06);
}

.cp__swatch.is-active {
  outline: 0.1563vw solid var(--brand-accent); /* 3 */
  outline-offset: 0.1563vw;
}


/* ===== Mobile — Figma 375x486 ===== */
@media (max-width: 768px) {
  .cp,
  .mobile .cp {
    padding: 10.6667vw 0; /* 40 */
    gap: 6.4vw; /* 24 */
  }

  .cp__headline,
  .mobile .cp__headline {
    gap: 2.1333vw; /* 8 */
    padding: 0 4.2667vw;
  }

  .cp__model,
  .mobile .cp__model {
    font-size: 6.4vw; /* 24 */
    line-height: 1.2; /* 28.8 */
  }

  .cp__accent,
  .mobile .cp__accent {
    width: 14.9333vw; /* 56 */
    height: 0.8vw; /* 3 */
  }

  .cp__range,
  .mobile .cp__range {
    font-size: 5.3333vw; /* 20 */
    line-height: 1.4; /* 28 */
  }

  .cp__picker,
  .mobile .cp__picker {
    width: 100%;
    gap: 4.2667vw; /* 16 */
  }

  /* the 360 frames are 1000x453; the Figma slot is 375x179 — keep the slot
     height so the section still measures 486, the frame letterboxes inside */
  .cp__viewer,
  .mobile .cp__viewer {
    aspect-ratio: 375 / 179;
  }

  .cp__viewer:focus-visible {
    outline-width: 0.5333vw;
    outline-offset: 1.0667vw;
  }

  .cp__hint,
  .mobile .cp__hint {
    gap: 1.0667vw;
    padding: 1.0667vw 2.6667vw;
    border-radius: 5.3333vw;
    font-size: 3.4667vw; /* 13 */
  }

  .cp__hint-icon,
  .mobile .cp__hint-icon {
    width: 3.2vw;
    height: 3.2vw;
  }

  .cp__name,
  .mobile .cp__name {
    font-size: 4.8vw; /* 18 */
    line-height: 1.4444; /* 26 */
  }

  .cp__swatches,
  .mobile .cp__swatches {
    gap: 2.6667vw; /* 10 */
  }

  .cp__swatch,
  .mobile .cp__swatch {
    width: 10.6667vw; /* 40 */
    height: 10.6667vw;
  }

  .cp__swatch:hover {
    transform: none;
  }

  .cp__swatch.is-active,
  .mobile .cp__swatch.is-active {
    outline-width: 0.5333vw; /* 2 */
    outline-offset: 0.5333vw;
  }
}
