/* TIGGO 2 PRO MAX - neutral presentation, isolated from the shared showroom. */
.chery-colores-t2 {
  --cct2-page: #f4f3f1;
}

.chery-colores-t2 .chery-colores-t2-showroom,
.chery-colores-t2 .chery-colores-t2-fade-y,
.chery-colores-t2 .chery-colores-t2-stage::before,
.chery-colores-t2 .chery-colores-t2-stage::after {
  display: none;
}

.chery-colores-t2 .chery-colores-t2-option-label {
  display: none !important;
}

/* Two balanced rows, enabled only on the TIGGO 2 pilot. */
.chery-colores-t2[data-colores-two-rows] .chery-colores-t2-list {
  --color-columns: 3;
  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;
}

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

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

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

.chery-colores-t2 .chery-colores-t2-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. */
.chery-colores-t2 .chery-t2-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;
}

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

.chery-colores-t2 .chery-t2-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;
}

.chery-colores-t2 .chery-t2-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;
}

.chery-colores-t2 .chery-t2-highlight.is-headlight {
  --point-x: 51%;
  --point-y: 39%;
}

.chery-colores-t2 .chery-t2-highlight.is-wheel {
  --point-x: 67%;
  --point-y: 74%;
}

.chery-colores-t2 .chery-t2-highlight.is-rear {
  --point-x: 94%;
  --point-y: 41%;
}

@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) {
  .chery-colores-t2 .chery-t2-highlight::before {
    animation: none;
    transform: scale(0.2);
  }
  .chery-colores-t2 .chery-t2-highlight::after {
    animation: none;
    opacity: 0.3;
  }
}

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

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

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

.chery-colores-t2 .chery-colores-t2-vehicle-layer {
  aspect-ratio: 1536 / 1024;
}

.chery-colores-t2 .chery-colores-t2-vehicle-layer img,
.chery-colores-t2 .chery-colores-t2-vehicle-layer.is-fading img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  filter: none;
  transform: none !important;
  transition: none !important;
  opacity: 1 !important;
}

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

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