/* Approved neutral presentation. Opt-in only; vehicle placement is unchanged. */
.chery-colores-show[data-colores-presentation] {
  --cct2-page: #f4f3f1;
}

[data-colores-presentation] .chery-colores-show-showroom,
[data-colores-presentation] .chery-colores-show-fade-y,
[data-colores-presentation] .chery-colores-show-stage::before,
[data-colores-presentation] .chery-colores-show-stage::after {
  display: none;
}

[data-colores-presentation] .chery-colores-show-option-label {
  display: none !important;
}

/* Two balanced rows, enabled only on the models explicitly opting in. */
[data-colores-presentation][data-colores-two-rows] .chery-colores-show-list {
  --color-columns: 2;
  display: grid !important;
  grid-template-columns: repeat(calc(var(--color-columns) * 2), minmax(0, 1fr));
  grid-auto-rows: 44px;
  gap: 8px 0;
  width: min(100%, calc(var(--color-columns) * 56px));
  align-self: flex-start;
  align-content: center;
  min-height: 96px;
}

[data-colores-presentation][data-colores-two-rows] .chery-colores-show-list li {
  grid-column: span 2;
  display: flex;
  justify-content: center;
  min-width: 0;
}

[data-colores-presentation][data-colores-two-rows] .chery-colores-show-option {
  width: 44px !important;
  max-width: 100%;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  justify-content: center;
}

[data-colores-presentation][data-colores-two-rows] .chery-colores-show-swatch {
  width: 22px;
  height: 22px;
}

[data-colores-presentation] .chery-colores-show-option:focus-visible {
  outline: 1px solid #555;
  outline-offset: 1px;
  border-radius: 50% !important;
}

/* Decorative markers follow the same image box for every paint color. */
[data-colores-presentation] .chery-colores-highlight {
  position: absolute;
  left: var(--point-x);
  top: var(--point-y);
  width: 24px;
  height: 24px;
  z-index: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

[data-colores-presentation] .chery-colores-highlight::before,
[data-colores-presentation] .chery-colores-highlight::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

[data-colores-presentation] .chery-colores-highlight::before {
  inset: 1px;
  background: rgba(255, 255, 255, 0.95);
  transform: scale(0.2);
  animation: chery-hotspot-fill 2.6s ease-in-out infinite;
}

[data-colores-presentation] .chery-colores-highlight::after {
  inset: -1px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  animation: chery-hotspot-wave 2.6s ease-out infinite;
}

@keyframes chery-hotspot-fill {
  0%, 8% { transform: scale(0.2); opacity: 0.95; }
  40% { transform: scale(1); opacity: 0.95; }
  52% { transform: scale(1); opacity: 0; }
  53%, 88% { transform: scale(0.2); opacity: 0; }
  100% { transform: scale(0.2); opacity: 0.95; }
}

@keyframes chery-hotspot-wave {
  0%, 39% { transform: scale(1); opacity: 0; }
  40% { transform: scale(1); opacity: 0.9; }
  88%, 100% { transform: scale(2.1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  [data-colores-presentation] .chery-colores-highlight::before {
    animation: none;
    transform: scale(0.2);
  }
  [data-colores-presentation] .chery-colores-highlight::after {
    animation: none;
    opacity: 0.3;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  [data-colores-presentation][data-colores-two-rows] .chery-colores-show-list {
    min-height: 96px;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  [data-colores-presentation][data-colores-two-rows] .chery-colores-show-list {
    min-height: 96px;
  }
}

@media (max-width: 767px) {
  [data-colores-presentation][data-colores-two-rows] .chery-colores-show-list {
    min-height: 60px;
    grid-auto-rows: 28px;
    gap: 4px 0;
    width: min(100%, calc(var(--color-columns) * 36px));
    align-self: flex-start;
  }
}

/* Preserve the shared mobile composition; only compact the new bullet grid. */
@media (max-width: 767px) {
  [data-colores-presentation][data-colores-two-rows] .chery-colores-show-option {
    width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
  }

  [data-colores-presentation][data-colores-two-rows] .chery-colores-show-swatch {
    width: clamp(12px, 3.1vw, 16px);
    height: clamp(12px, 3.1vw, 16px);
  }
}

/* Pending models: reuse the approved presentation with visible option names.
   Natural-flow columns prevent text/vehicle overlap at every breakpoint. */
.chery-colores-show[data-colores-unified] .chery-colores-show-stage {
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  align-items: center;
  gap: 24px;
  padding: 48px clamp(24px, 5.5vw, 88px) 24px;
  aspect-ratio: auto;
  min-height: 480px;
  max-height: none;
  overflow: visible;
}
.chery-colores-show[data-colores-unified] .chery-colores-show-panel {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  inset: auto;
  width: 100%;
  padding: 0;
  gap: 14px;
}
.chery-colores-show[data-colores-unified] .chery-colores-show-tagline {
  white-space: normal;
  width: auto;
  max-width: 100%;
}
.chery-colores-show[data-colores-unified] .chery-colores-show-vehicle-layer {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  inset: auto;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  transform: none;
}
.chery-colores-show[data-colores-unified] .chery-colores-show-vehicle-layer img {
  position: absolute;
  /* Equal proportional breathing room on every model and viewport. */
  inset: 8%;
  width: 84% !important;
  height: 84% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  opacity: 1;
  transition: none;
}
.chery-colores-show[data-colores-unified] .chery-colores-show-list {
  width: min(100%, calc(var(--color-columns) * 88px));
  grid-auto-rows: minmax(62px, auto);
  min-height: 132px;
  gap: 8px 4px;
}
.chery-colores-show[data-colores-unified] .chery-colores-show-option {
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  width: 100% !important;
  height: auto !important;
  min-height: 62px !important;
  padding: 5px 2px !important;
  text-align: center;
}
.chery-colores-show[data-colores-unified] .chery-colores-show-option-label {
  display: block !important;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.chery-colores-show[data-colores-unified] .chery-colores-show-swatch {
  width: 22px;
  height: 22px;
}
.chery-colores-show[data-colores-unified] .chery-colores-show-disclaimer {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  inset: auto;
  width: auto;
  white-space: normal;
}
@media (min-width: 768px) and (max-width: 1024px) {
  .chery-colores-show[data-colores-unified] .chery-colores-show-stage {
    padding: 32px 24px 20px;
    gap: 20px;
    min-height: 420px;
  }
}
@media (max-width: 767px) {
  .chery-colores-show[data-colores-unified] .chery-colores-show-stage {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px 16px;
    gap: 16px;
    min-height: 0;
  }
  .chery-colores-show[data-colores-unified] .chery-colores-show-panel {
    gap: 10px;
  }
  .chery-colores-show[data-colores-unified] .chery-colores-show-vehicle-layer {
    grid-column: 1;
    grid-row: 2;
  }
  .chery-colores-show[data-colores-unified] .chery-colores-show-disclaimer {
    grid-row: 3;
  }
  .chery-colores-show[data-colores-unified] .chery-colores-show-model { font-size: .8rem; }
  .chery-colores-show[data-colores-unified] .chery-colores-show-color-name {
    font-size: 1.65rem;
    white-space: normal;
  }
  .chery-colores-show[data-colores-unified] .chery-colores-show-tagline {
    font-size: .9rem;
    line-height: 1.4;
  }
  .chery-colores-show[data-colores-unified] .chery-colores-show-list { margin-top: 4px; }
}
