/* Modul recenzii Google — pagina traduceriautorizate.biz (copia 1:1 de pe playground)
   Scopat sub .ta-rev, ca sa nu atinga nimic din tema Avada. */

.ta-rev {
  padding: 58px 0 44px;
  background: transparent;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

.ta-rev *,
.ta-rev *::before,
.ta-rev *::after { box-sizing: border-box; }

.ta-rev__inner {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ---------- titlul sectiunii ---------- */
.ta-rev__title {
  margin: 0 0 30px;
  color: #3b4251;
  text-align: center;
}

/* ---------- bara de sus: logo Google + nota + buton ---------- */
.ta-rev__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  flex-wrap: wrap;
  min-height: 63px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #dfe2e6;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.ta-rev__bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.ta-rev__google {
  display: block;
  width: auto;
  height: 21px;
  margin-right: 4px;
}

.ta-rev__score {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #3b4251;
  margin-right: 2px;
}

.ta-rev__count {
  font-size: 15px;
  line-height: 1.4;
  color: #6b7280;
}

.ta-rev__count a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.ta-rev__count a:hover { border-bottom-color: #b9c2cb; }

.ta-rev__count strong {
  font-weight: 600;
  color: #3b4251;
}

.ta-rev__write {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #3c726d;
  text-decoration: none;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #cfd6d5;
  border-radius: 6px;
  transition: border-color .15s, background .15s, color .15s;
}

.ta-rev__write:hover,
.ta-rev__write:focus {
  color: #2f5c58;
  background: #f2f7f6;
  border-color: #3c726d;
}

/* ---------- stele ---------- */
.ta-rev__stars {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 18px;
  flex: 0 0 auto;
  background: url(star-empty.svg) repeat-x 0 0 / 18px 18px;
}

.ta-rev__stars::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--pct, 100) * 1%);
  background: url(star-full.svg) repeat-x 0 0 / 18px 18px;
}

/* ---------- carusel ---------- */
.ta-rev__viewport {
  margin-top: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ta-rev__viewport::-webkit-scrollbar { width: 0; height: 0; }

.ta-rev__track {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.ta-rev__card {
  position: relative;
  flex: 0 0 calc((100% - 32px) / 3);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  scroll-snap-align: start;
  transition: box-shadow .18s, border-color .18s;
}

.ta-rev__card:hover {
  border-color: #d3d9df;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .07);
}

.ta-rev__g {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
}

.ta-rev__person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 28px;
}

.ta-rev__avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef1f4;
}

.ta-rev__meta { min-width: 0; }

.ta-rev__name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #3c726d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ta-rev__date {
  font-size: 13px;
  line-height: 1.4;
  color: #8a8a8a;
}

.ta-rev__stars--card {
  width: 80px;
  height: 16px;
  margin-top: -2px;
  background-size: 16px 16px;
}

.ta-rev__stars--card::after { background-size: 16px 16px; }

.ta-rev__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #4a4f57;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.ta-rev__card.is-open .ta-rev__text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.ta-rev__text--empty { color: #8a8a8a; font-style: italic; }

.ta-rev__more {
  align-self: flex-start;
  margin: -4px 0 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #3c726d;
  background: none;
  border: 0;
  cursor: pointer;
}

.ta-rev__more:hover { text-decoration: underline; }

.ta-rev__more[hidden] { display: none; }

/* ---------- navigare ---------- */
.ta-rev__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.ta-rev__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #3b4251;
  background: #fff;
  border: 1px solid #dfe2e6;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.ta-rev__arrow:hover:not([disabled]) {
  color: #3c726d;
  background: #f2f7f6;
  border-color: #3c726d;
}

.ta-rev__arrow[disabled] {
  opacity: .35;
  cursor: default;
}

.ta-rev__arrow svg { display: block; }

.ta-rev__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ta-rev__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: #cfd4da;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: width .18s, background .18s;
}

.ta-rev__dot[aria-current="true"] {
  width: 22px;
  background: #3c726d;
}

/* ---------- responsive ---------- */
@media screen and (max-width: 1100px) {
  .ta-rev__card { flex-basis: calc((100% - 16px) / 2); }
}

@media screen and (max-width: 782px) {
  .ta-rev { padding: 40px 0 30px; }
  .ta-rev__title { margin-bottom: 22px; }
  .ta-rev__inner { padding: 0 16px; }
  .ta-rev__bar { padding: 14px 16px; }
  .ta-rev__card { flex-basis: 100%; }
  .ta-rev__write { width: 100%; text-align: center; }
  .ta-rev__text { -webkit-line-clamp: 6; }
}

@media screen and (max-width: 420px) {
  .ta-rev__bar-left { gap: 8px; }
  .ta-rev__google { height: 18px; }
  .ta-rev__score,
  .ta-rev__count { font-size: 14px; }
}
