.acc-testi-widget,
.acc-testi-widget * {
  box-sizing: border-box;
}

.acc-testi-widget {
  width: 100%;
  position: relative;
}

.acc-testi-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.acc-testi-heading-wrap {
  min-width: 0;
}

.acc-testi-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #16a34a;
}

.acc-testi-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  flex: 0 0 auto;
  background: #16a34a;
}

.acc-testi-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #111827;
}

.acc-testi-nav-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.acc-testi-nav {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background-color .25s ease, transform .2s ease;
  appearance: none;
  -webkit-appearance: none;
}

/* Force navigation interaction states so Elementor/theme global button colors cannot bleed in. */
.acc-testi-widget .acc-testi-nav:hover,
.acc-testi-widget .acc-testi-nav:focus,
.acc-testi-widget .acc-testi-nav:focus-visible,
.acc-testi-widget .acc-testi-nav:active {
  background-color: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

.acc-testi-widget .acc-testi-nav:active {
  transform: scale(.96);
}

.acc-testi-widget .acc-testi-nav:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

.acc-testi-nav svg {
  width: 18px;
  height: 18px;
  display: block;
}

.acc-testi-viewport {
  width: 100%;
  overflow: hidden;
}

.acc-testi-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.acc-testi-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
  transition: opacity .24s ease, transform .24s ease;
}

.acc-testi-card.acc-testi-enter {
  animation: accTestiFade .32s ease both;
}

@keyframes accTestiFade {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.acc-testi-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #22c55e;
}

.acc-testi-stars svg {
  width: 17px;
  height: 17px;
  display: block;
  flex: 0 0 auto;
}

.acc-testi-review {
  margin: 22px 0 0;
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.62;
  color: #64748b;
}

.acc-testi-footer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.acc-testi-person {
  min-width: 0;
}

.acc-testi-name {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acc-testi-date {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
}

.acc-testi-source {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 10px;
  background: #eaf8ef;
  color: #166534;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.acc-testi-card[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .acc-testi-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .acc-testi-head {
    margin-bottom: 38px;
  }
}

@media (max-width: 767px) {
  .acc-testi-head {
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 30px;
  }
  .acc-testi-eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: .14em;
  }
  .acc-testi-title {
    font-size: clamp(30px, 9vw, 42px);
  }
  .acc-testi-nav {
    width: 40px;
    height: 40px;
  }
  .acc-testi-track {
    grid-template-columns: minmax(0, 1fr);
  }
  .acc-testi-card {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .acc-testi-head {
    align-items: flex-end;
  }
  .acc-testi-nav-wrap {
    gap: 6px;
  }
  .acc-testi-nav {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .acc-testi-eyebrow::before {
    width: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .acc-testi-card.acc-testi-enter,
  .acc-testi-nav {
    animation: none !important;
    transition: none !important;
  }
}
