.tce-tc, .tce-tc * { box-sizing: border-box; }

.tce-tc {
  --tce-tc-accent: #6c63ff;
  --tce-tc-gap: 20px;
  --tce-tc-duration: 350ms;
  position: relative;
}

.tce-tc-viewport {
  overflow: hidden;
  position: relative;
  /* Extra space so scale(1.05) active slide doesn't clip */
  padding-top: 16px;
  padding-bottom: 16px;
}

.tce-tc-track {
  display: flex;
  gap: var(--tce-tc-gap);
  transition: transform var(--tce-tc-duration) ease;
  align-items: stretch;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.tce-tc-track:active {
  cursor: grabbing;
}

.tce-tc-slide {
  flex: 0 0 calc((100% - (var(--tce-tc-slides, 3) - 1) * var(--tce-tc-gap)) / var(--tce-tc-slides, 3));
  transition: transform var(--tce-tc-duration) ease,
              opacity var(--tce-tc-duration) ease,
              box-shadow var(--tce-tc-duration) ease,
              border-color var(--tce-tc-duration) ease;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* height set by JS equalizeHeights when equal height is on */
}

.tce-tc-slide > * {
  width: 100%;
  flex: 1 1 auto;
  height: 100%;
}

/* ---------- Center Highlight ----------
   Defaults only. Elementor Style panel overrides these via higher-specificity
   selectors for scale, border, shadow, opacity. */
.tce-tc-highlight-on .tce-tc-slide {
  transform: scale(0.95);
  opacity: 0.65;
  box-shadow: none;
  border: 2px solid transparent;
}

.tce-tc-highlight-on .tce-tc-slide.is-active {
  transform: scale(1.05);
  opacity: 1;
  box-shadow: 0 12px 40px -8px rgba(108, 99, 255, 0.45);
  border-color: var(--tce-tc-accent);
  z-index: 2;
  position: relative;
}

/* ---------- Controls ---------- */
.tce-tc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.tce-tc-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  padding: 0;
  flex-shrink: 0;
}
.tce-tc-arrow svg,
.tce-tc-arrow i { pointer-events: none; }
.tce-tc-arrow img { width: 60%; height: 60%; object-fit: contain; pointer-events: none; }
.tce-tc-arrow:hover { background: var(--tce-tc-accent); color: #fff; border-color: var(--tce-tc-accent); }
.tce-tc-arrow:disabled { opacity: .35; cursor: default; }
.tce-tc-arrow:disabled:hover { background: transparent; color: inherit; border-color: rgba(0,0,0,.15); }

/* Side arrows */
.tce-tc-arrows-sides {
  position: relative;
}
.tce-tc-arrows-sides .tce-tc-controls {
  position: static;
  margin-top: 0;
}
.tce-tc-arrows-sides .tce-tc-arrow.tce-tc-prev,
.tce-tc-arrows-sides .tce-tc-arrow.tce-tc-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  margin: 0;
}
.tce-tc-arrows-sides .tce-tc-arrow.tce-tc-prev { left: 8px; }
.tce-tc-arrows-sides .tce-tc-arrow.tce-tc-next { right: 8px; }
.tce-tc-arrows-sides .tce-tc-dots,
.tce-tc-arrows-sides .tce-tc-fraction,
.tce-tc-arrows-sides .tce-tc-progress {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

/* Dots */
.tce-tc-dots { display: flex; gap: 8px; }
.tce-tc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(0,0,0,.2); border: none; cursor: pointer; padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.tce-tc-dot.is-active { background: var(--tce-tc-accent); transform: scale(1.3); }

/* Fraction */
.tce-tc-fraction {
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  min-width: 48px;
  text-align: center;
  letter-spacing: 0.02em;
}
.tce-tc-fraction-current {
  color: var(--tce-tc-accent);
  font-weight: 600;
}

/* Progress bar */
.tce-tc-progress {
  width: 120px;
  height: 4px;
  background: rgba(0,0,0,.12);
  border-radius: 4px;
  overflow: hidden;
}
.tce-tc-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--tce-tc-accent);
  border-radius: 4px;
  transition: width var(--tce-tc-duration) ease;
}

.tce-tc-empty {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed rgba(0,0,0,.2);
  border-radius: 8px;
  color: rgba(0,0,0,.5);
}

@media (max-width: 767px) {
  .tce-tc-slide { flex-basis: 100% !important; }
  .tce-tc-arrows-sides .tce-tc-arrow.tce-tc-prev { left: 4px; }
  .tce-tc-arrows-sides .tce-tc-arrow.tce-tc-next { right: 4px; }
  .tce-tc-highlight-on .tce-tc-slide { transform: scale(1); opacity: 1; }
  .tce-tc-highlight-on .tce-tc-slide.is-active { transform: scale(1); }
}
