.tec-testimonials {
  container: tec-testimonials / inline-size;
  width: 100%;
  min-width: 0;
}

.tec-testimonials-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.tec-testimonials-title {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1;
  margin: 0;
}

.tec-testimonials-controls {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.tec-testimonials-arrow {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--tec-text);
  border: 2px solid rgba(238, 240, 235, 0.3);
  cursor: pointer;
}

.tec-testimonials-arrow:hover:not(:disabled) {
  border-color: var(--tec-green);
  color: var(--tec-green);
}

.tec-testimonials-arrow:disabled {
  opacity: .3;
  cursor: default;
}

.tec-testimonials-arrow:focus-visible,
.tec-testimonials-track:focus-visible {
  outline: 3px solid var(--tec-green);
  outline-offset: 3px;
}

.tec-testimonials-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(270px, 29%, 380px);
  align-items: stretch;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  padding: 4px 4px 12px;
  scroll-padding-inline: 4px;
  margin: 0 -4px;
  scrollbar-width: none;
}

.tec-testimonials-track::-webkit-scrollbar {
  display: none;
}

.tec-testimonial {
  scroll-snap-align: start;
  justify-self: stretch;
  align-self: stretch;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 2.4vw, 34px);
  background: var(--tec-eclipse-deep);
  border: 2px solid var(--tec-green);
  border-radius: 6px;
}

.tec-testimonial-icon {
  display: block;
  flex: 0 0 auto;
  height: 40px;
}

.tec-testimonial-icon-default {
  font-weight: 900;
  font-size: 84px;
  line-height: .7;
  color: var(--tec-green);
}

.tec-testimonial-icon-custom {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.tec-testimonial-quote {
  margin: 0;
  flex: 1;
  padding-top: 14px;
  font-weight: 500;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.5;
  border-left: none;
  padding-left: 0;
  color: var(--tec-long-text);
}

.tec-testimonial-cite {
  display: block;
  font-style: normal;
  font-size: 14px;
  color: var(--tec-muted);
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--tec-rule);
}

.tec-testimonial-name {
  display: block;
  color: var(--tec-text);
  font-weight: 700;
  font-size: 16px;
}

.tec-testimonial-details {
  display: block;
}

@container tec-testimonials (max-width: 820px) {
  .tec-testimonials-track {
    grid-auto-columns: 82%;
  }
}
