/**
 * COLORES showroom shared by TIGGO 4, TIGGO 7, TIGGO 7 HYBRID, TIGGO 8 and HIMLA.
 * Scoped to .chery-colores-show. Does not style TIGGO 2.
 */
.elementor-element.chery-colores-show-section,
.elementor-element.chery-colores-show-section {
  background-color: #ffffff !important;
  --padding-top: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --padding-right: 0px;
  --background-color: #ffffff;
}

.elementor-element.chery-colores-show-section > .e-con-inner {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
}

.chery-colores-show {
  --cct2-red: #e31c23;
  --cct2-black: #111111;
  --cct2-muted: #5a5a5a;
  --cct2-soft: #7a7a7a;
  --cct2-ease: 420ms ease;
  --cct2-page: #ffffff;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  color: var(--cct2-black);
  font-family: inherit;
  background: var(--cct2-page);
  overflow: hidden;
}

.chery-colores-show *,
.chery-colores-show *::before,
.chery-colores-show *::after {
  box-sizing: border-box;
}

.chery-colores-show-stage {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 1600 / 640;
  height: auto;
  min-height: 520px;
  max-height: 720px;
  overflow: hidden;
  background: var(--cct2-page);
}

/* Layer 1 — showroom at NATURAL proportion (no cover / no stretch) */
.chery-colores-show-showroom {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.chery-colores-show-showroom img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92%, 1600px);
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  /* Soft dissolve of photo edges into page white */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

/* Soft white edge integration — wide, progressive, no hard lines */
.chery-colores-show-stage::before,
.chery-colores-show-stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  pointer-events: none;
}

.chery-colores-show-stage::before {
  left: 0;
  width: min(26vw, 380px);
  background: linear-gradient(
    90deg,
    var(--cct2-page) 0%,
    rgba(255, 255, 255, 0.92) 22%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.18) 72%,
    rgba(255, 255, 255, 0) 100%
  );
}

.chery-colores-show-stage::after {
  right: 0;
  width: min(26vw, 380px);
  background: linear-gradient(
    270deg,
    var(--cct2-page) 0%,
    rgba(255, 255, 255, 0.92) 22%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.18) 72%,
    rgba(255, 255, 255, 0) 100%
  );
}

.chery-colores-show-fade-y {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 56px;
  pointer-events: none;
}

.chery-colores-show-fade-y.is-top {
  top: 0;
  background: linear-gradient(
    180deg,
    var(--cct2-page) 0%,
    rgba(255, 255, 255, 0.55) 45%,
    rgba(255, 255, 255, 0) 100%
  );
}

.chery-colores-show-fade-y.is-bottom {
  bottom: 0;
  background: linear-gradient(
    0deg,
    var(--cct2-page) 0%,
    rgba(255, 255, 255, 0.4) 40%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Layer 2 — vehicle on platform (larger protagonist, natural proportion) */
.chery-colores-show .chery-colores-show-vehicle-layer {
  position: absolute;
  z-index: 5;
  left: 40%;
  right: 3%;
  bottom: 10%;
  width: 52%;
  max-width: 780px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  overflow: visible;
}

.chery-colores-show .chery-colores-show-vehicle-layer img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--cct2-ease), transform var(--cct2-ease);
  overflow: visible !important;
}

.chery-colores-show .chery-colores-show-vehicle-layer.is-fading img {
  opacity: 0;
  transform: translateY(8px);
}

/* Left editorial panel — no card */
.chery-colores-show .chery-colores-show-panel {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(40%, 500px);
  padding: clamp(40px, 5vw, 72px) 20px clamp(48px, 4.5vw, 64px) clamp(40px, 5.5vw, 88px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  background: transparent;
}

.chery-colores-show .chery-colores-show-model {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cct2-soft) !important;
}

.chery-colores-show .chery-colores-show-color-name {
  margin: 0;
  font-size: clamp(2rem, 2.8vw, 2.75rem);
  font-weight: 700 !important;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--cct2-black) !important;
}

.chery-colores-show .chery-colores-show-tagline {
  margin: 0 0 6px;
  max-width: none;
  width: max-content;
  white-space: nowrap;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--cct2-muted) !important;
}

.chery-colores-show .chery-colores-show-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.chery-colores-show .chery-colores-show-option {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 2px !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  cursor: pointer;
  text-align: left;
  color: var(--cct2-muted) !important;
  transition: color var(--cct2-ease);
}

.chery-colores-show .chery-colores-show-option:hover {
  color: var(--cct2-black) !important;
  background: transparent !important;
}

.chery-colores-show .chery-colores-show-option.is-active {
  color: var(--cct2-black) !important;
  background: transparent !important;
}

.chery-colores-show .chery-colores-show-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.chery-colores-show .chery-colores-show-option.is-active .chery-colores-show-swatch {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px var(--cct2-red),
    inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.chery-colores-show .chery-colores-show-option-label {
  display: none !important;
}

.chery-colores-show .chery-colores-show-option.is-active .chery-colores-show-option-label {
  font-weight: 700;
}

.chery-colores-show .chery-colores-show-footer-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chery-colores-show .chery-colores-show-counter {
  display: none !important;
}

.chery-colores-show .chery-colores-show-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chery-colores-show .chery-colores-show-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: var(--cct2-black) !important;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0 !important;
  box-shadow: none !important;
  transition: border-color var(--cct2-ease), color var(--cct2-ease), background var(--cct2-ease);
}

.chery-colores-show .chery-colores-show-nav button:hover {
  border-color: var(--cct2-red) !important;
  color: var(--cct2-red) !important;
  background: #fff !important;
}

.chery-colores-show .chery-colores-show-disclaimer {
  position: absolute;
  z-index: 6;
  left: clamp(40px, 5.5vw, 88px);
  bottom: 24px;
  max-width: none;
  width: max-content;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #8f8f8f !important;
}

/* Below 767 the new showroom stays visible. Only this section overrides Elementor. */
@media (max-width: 767px) {
  .elementor-element.chery-colores-show-section.elementor-hidden-mobile {
    display: flex !important;
  }

  .elementor-element-c49fee8 {
    display: none !important;
  }

  .chery-colores-show-stage {
    aspect-ratio: auto;
    min-height: clamp(228px, 62vw, 360px);
    max-height: none;
    height: auto;
  }

  .chery-colores-show .chery-colores-show-panel {
    top: clamp(10px, 3.2vw, 22px);
    bottom: auto;
    width: min(64%, 280px);
    padding: 0 8px 0 clamp(12px, 3.6vw, 22px);
    gap: clamp(2px, 0.9vw, 6px);
    justify-content: flex-start;
  }

  .chery-colores-show .chery-colores-show-model {
    font-size: clamp(0.58rem, 2.45vw, 0.78rem);
    letter-spacing: 0.045em;
    white-space: nowrap;
    line-height: 1.15;
  }

  .chery-colores-show .chery-colores-show-color-name {
    font-size: clamp(1.02rem, 4.4vw, 1.65rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    white-space: nowrap;
  }

  .chery-colores-show .chery-colores-show-tagline {
    margin: 0;
    width: auto;
    max-width: 100%;
    font-size: clamp(0.58rem, 2.2vw, 0.8rem);
    line-height: 1.25;
    white-space: nowrap;
  }

  .chery-colores-show .chery-colores-show-list {
    margin-top: clamp(2px, 1vw, 6px);
    gap: clamp(3px, 1.15vw, 7px);
    width: auto;
  }

  .chery-colores-show .chery-colores-show-option {
    align-items: center;
    gap: clamp(6px, 1.5vw, 10px);
    padding: clamp(1px, 0.35vw, 3px) 0 !important;
  }

  .chery-colores-show .chery-colores-show-swatch {
    width: clamp(12px, 3.1vw, 16px);
    height: clamp(12px, 3.1vw, 16px);
  }

  .chery-colores-show .chery-colores-show-option-label {
    font-size: clamp(0.68rem, 2.65vw, 0.88rem);
    line-height: 1;
  }

  .chery-colores-show .chery-colores-show-footer-row {
    margin-top: clamp(4px, 1.4vw, 8px);
  }

  .chery-colores-show .chery-colores-show-nav {
    gap: clamp(8px, 2vw, 12px);
  }

  .chery-colores-show .chery-colores-show-nav button {
    width: clamp(26px, 7vw, 32px);
    height: clamp(26px, 7vw, 32px);
    font-size: 0.95rem;
  }

  .chery-colores-show .chery-colores-show-vehicle-layer {
    left: 36%;
    right: auto;
    width: clamp(46%, 54vw, 62%);
    max-width: none;
    bottom: 16%;
  }

  .chery-colores-show .chery-colores-show-disclaimer {
    left: clamp(12px, 3.6vw, 22px);
    right: clamp(10px, 3vw, 18px);
    bottom: clamp(6px, 1.8vw, 12px);
    width: auto;
    max-width: none;
    white-space: normal;
    font-size: clamp(0.52rem, 2.05vw, 0.66rem);
    line-height: 1.3;
  }
}

/*
 * TABLET ONLY — Elementor breakpoints used by this project:
 * tablet max 1024px, mobile max 767px → tablet band 768–1024.
 * Overrides live only inside this query so desktop (>1024) is untouched.
 */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-element.chery-colores-show-section.elementor-hidden-tablet {
    display: flex !important;
  }

  .elementor-element-c49fee8 {
    display: none !important;
  }

  .chery-colores-show {
    display: block !important;
  }

  .chery-colores-show-stage {
    min-height: 320px;
    max-height: 640px;
  }

  .chery-colores-show .chery-colores-show-panel {
    top: calc(1.6vw + 18px);
    bottom: auto;
    height: auto;
    width: min(48%, 420px);
    padding: 0 12px 0 72px;
    gap: 6px;
    justify-content: flex-start;
  }

  .chery-colores-show .chery-colores-show-model {
    font-size: 0.78rem;
  }

  .chery-colores-show .chery-colores-show-color-name {
    font-size: clamp(1.65rem, 3.1vw, 2.15rem);
  }

  .chery-colores-show .chery-colores-show-tagline {
    font-size: 0.95rem;
    white-space: nowrap;
    width: max-content;
    max-width: none;
  }

  .chery-colores-show .chery-colores-show-list {
    margin-top: 8px;
    gap: 8px;
  }

  .chery-colores-show .chery-colores-show-option {
    gap: 10px;
    padding: 5px 2px !important;
  }

  .chery-colores-show .chery-colores-show-swatch {
    width: 18px;
    height: 18px;
  }

  .chery-colores-show .chery-colores-show-option-label {
    font-size: 0.95rem;
  }

  .chery-colores-show .chery-colores-show-footer-row {
    margin-top: 4px;
  }

  .chery-colores-show .chery-colores-show-nav {
    gap: 14px;
  }

  .chery-colores-show .chery-colores-show-nav button {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }

  .chery-colores-show .chery-colores-show-vehicle-layer {
    left: 44%;
    right: 2%;
    bottom: calc(1.6vw + 44px);
    width: 50%;
    max-width: none;
    transform: translateY(0);
  }

  .chery-colores-show .chery-colores-show-disclaimer {
    left: 72px;
    bottom: calc(1.6vw + 6px);
    font-size: 0.68rem;
    white-space: nowrap;
    width: max-content;
    max-width: none;
  }
}

/* Narrow tablet: keep the same block inside the shorter showroom photo. */
@media (min-width: 768px) and (max-width: 900px) {
  .chery-colores-show-stage {
    min-height: 300px;
    max-height: 520px;
  }

  .chery-colores-show .chery-colores-show-panel {
    gap: 2px;
    padding: 0 8px 0 36px;
  }

  .chery-colores-show .chery-colores-show-color-name,
  .chery-colores-show .chery-colores-show-option-label {
    line-height: 1.05;
  }

  .chery-colores-show .chery-colores-show-tagline {
    white-space: normal;
    width: auto;
    max-width: 100%;
    line-height: 1.2;
    margin: 0;
  }

  .chery-colores-show .chery-colores-show-list {
    gap: 8px;
    margin-top: 0;
  }

  .chery-colores-show .chery-colores-show-option {
    padding: 0 2px !important;
  }

  .chery-colores-show .chery-colores-show-footer-row {
    margin-top: 2px;
  }

  .chery-colores-show .chery-colores-show-disclaimer {
    white-space: nowrap;
    width: max-content;
    max-width: none;
  }

  .chery-colores-show .chery-colores-show-list,
  .chery-colores-show .chery-colores-show-list li,
  .chery-colores-show .chery-colores-show-option {
    display: flex !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
  }
}
