.elementor-widget-tc-stats {
  container-type: inline-size;
}

.tc-w-stats {
  overflow: hidden;
  background: #f0dfcf;
}

.tc-w-stats__heading,
.tc-w-stats__eyebrow,
.tc-w-stats__value,
.tc-w-stats__label {
  margin: 0;
}

.tc-w-stats__logo {
  display: block;
  width: auto;
  height: 22px;
  max-width: 70%;
  margin-top: 10px;
  object-fit: contain;
}

/* One heading for both lines. The box is removed so each line keeps its own place. */
.tc-w-stats__title {
  display: contents;
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.tc-w-stats__item {
  outline: none;
  overflow: visible;
}

.tc-w-stats__art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f44349;
  color: #262626;
  pointer-events: none;
  transition: translate 0.25s ease-out;
}

.tc-w-stats__item:is(:hover, :focus-visible) .tc-w-stats__art {
  translate: 0 -20px;
}

.tc-w-stats.has-scroll [data-tc-stats-layer] {
  will-change: transform;
}

.tc-w-stats--pill {
  height: min(861px, calc(100vw * 861 / 1440));
}

.tc-w-stats--pill .tc-w-stats__stage {
  position: relative;
  width: 1440px;
  height: 861px;
  transform: scale(min(1, calc(100vw / 1440)));
  transform-origin: top left;
  margin-left: max(0px, calc((100vw - 1440px) / 2));
}

.tc-w-stats--pill .tc-w-stats__heading {
  position: absolute;
  left: 50%;
  top: 98.4px;
  z-index: 1;
  white-space: nowrap;
  text-align: center;
  transform: translateX(-50%);
}

.tc-w-stats--pill .tc-w-stats__heading--after {
  top: 539.4px;
}

.tc-w-stats--pill .tc-w-stats__row {
  position: absolute;
  left: 48px;
  top: 296.8px;
  display: flex;
  gap: 24px;
  width: 1344px;
}

.tc-w-stats--pill .tc-w-stats__item {
  flex: 0 0 432px;
  width: 432px;
  height: 243px;
}

.tc-w-stats--pill .tc-w-stats__art {
  border-radius: 121.5px;
}

/* Laptop widths (901–1439px, e.g. 1280): script.js sets --tc-stats-scale from the section width so the
   1440 stage shrinks to fit instead of being cut off. 1440+ stays at 1; tablet / phone use their own layout. */
@media (min-width: 901px) {
  .tc-w-stats--pill[style*="--tc-stats-scale"] {
    height: calc(861px * var(--tc-stats-scale));
  }

  .tc-w-stats--pill[style*="--tc-stats-scale"] .tc-w-stats__stage {
    transform: scale(var(--tc-stats-scale));
  }
}

.tc-w-stats--oval {
  padding: 96px 0;
  text-align: center;
}

.tc-w-stats--oval .tc-w-stats__stage {
  display: flex;
  flex-direction: column;
}

.tc-w-stats--oval .tc-w-stats__heading {
  margin: 0 0 40px;
}

.tc-w-stats--oval .tc-w-stats__heading--after {
  order: 2;
  margin: 40px 0 0;
}

.tc-w-stats--oval .tc-w-stats__row {
  display: grid;
  order: 1;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--tc-gutter, 24px);
}

.tc-w-stats--oval .tc-w-stats__item {
  grid-column: span 4;
  min-height: 220px;
}

.tc-w-stats--oval .tc-w-stats__art {
  min-height: 220px;
  padding: 28px 24px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .tc-w-stats--oval .tc-w-stats__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tc-w-stats--oval .tc-w-stats__item {
    grid-column: auto;
  }

  .tc-w-stats--oval .tc-w-stats__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .tc-w-stats--oval {
    padding: 48px 0 64px;
  }

  .tc-w-stats--oval .tc-w-stats__item,
  .tc-w-stats--oval .tc-w-stats__art {
    min-height: 150px;
  }

  .tc-w-stats--oval .tc-w-stats__value {
    font-size: 40px;
    line-height: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-w-stats.has-scroll [data-tc-stats-layer] {
    transform: none;
  }

  .tc-w-stats__art {
    transition: none;
  }

  .tc-w-stats__item:is(:hover, :focus-visible) .tc-w-stats__art {
    translate: none;
  }
}

.elementor-editor-active .tc-w-stats.has-scroll [data-tc-stats-layer] {
  transform: none;
}


/* Tablet and mobile layouts for this widget. */
@media (max-width: 900px) {
  .tc-w-stats--pill { height: auto;
    padding: 72px var(--tc-margin); }

  .tc-w-stats--pill .tc-w-stats__stage { display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: 0;
    transform: none; }

  .tc-w-stats--pill .tc-w-stats__heading,
  .tc-w-stats--pill .tc-w-stats__heading--after { position: static;
    width: 100%;
    margin: 0 0 32px;
    white-space: normal;
    text-align: center;
    line-height: .9;
    letter-spacing: -0.06em;
  }

  .tc-w-stats--pill .tc-w-stats__heading--after { margin: 0 0 32px; order: 1; }

  .tc-w-stats--pill .tc-w-stats__row { position: static; display: grid; gap: 12px; width: 100%; order: 2; place-items: center;}

  .tc-w-stats--pill .tc-w-stats__item { width: min(100%, 460px); height: 190px; }

  .tc-w-stats--pill .tc-w-stats__art { border-radius: 999px; }

  .tc-w-stats--pill .tc-w-stats__value { line-height: 1; }

  .tc-w-stats--pill .tc-w-stats__label { font-size: 16px; }
}
@media (max-width: 600px) {
  .tc-w-stats--pill { padding: 56px clamp(32px, 16vw, 65px) 60px; }

  .tc-w-stats--pill .tc-w-stats__row { gap: 10px; }

  .tc-w-stats--pill .tc-w-stats__item { width: 100%; height: 155px; }

  .tc-w-stats--pill .tc-w-stats__eyebrow { display: none; }

  .tc-w-stats--pill .tc-w-stats__label { font-size: 14px; }
}
