/* ============================================ */
/* AVALIE-NOS.CSS — Transfé Transportes         */
/* Google Reviews Widget + página avalie-nos    */
/* ============================================ */

/* ──────────────────────────────────────────── */
/* SECAO WRAPPER                                */
/* ──────────────────────────────────────────── */
.grw-section {
  background: #F9FAFB;
  padding: 80px 24px;
}

/* ──────────────────────────────────────────── */
/* WIDGET (card branco externo)                 */
/* ──────────────────────────────────────────── */
.grw-widget {
  display: flex;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* ──────────────────────────────────────────── */
/* PAINEL ESQUERDO — Resumo da nota             */
/* ──────────────────────────────────────────── */
.grw-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 36px;
  min-width: 200px;
  border-right: 1px solid #F0F0F0;
  gap: 10px;
  flex-shrink: 0;
}

.grw-excelente {
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  color: #111827;
  margin: 0;
  text-transform: uppercase;
}

.grw-summary-stars {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.grw-summary-stars svg {
  width: 30px;
  height: 30px;
}

.grw-count {
  font-family: var(--font-body);
  font-size: 15px;
  color: #6B7280;
  margin: 0;
  line-height: 1.4;
}

/* Wordmark "Google" em cores reais */
.grw-google-wordmark {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1;
  display: block;
  margin-top: 4px;
  font-family: 'Product Sans', 'Roboto', Arial, sans-serif;
}

/* ──────────────────────────────────────────── */
/* PAINEL DIREITO — Carrossel                   */
/* ──────────────────────────────────────────── */
.grw-carousel-area {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 28px 20px;
  gap: 10px;
  min-width: 0;
}

/* Botões de seta */
.grw-arrow {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: background 0.18s, border-color 0.18s, opacity 0.18s;
  padding: 0;
  color: #374151;
}

.grw-arrow:hover:not(:disabled) {
  background: #F9FAFB;
  border-color: #D1D5DB;
}

.grw-arrow:disabled {
  opacity: 0.30;
  cursor: not-allowed;
}

.grw-arrow svg {
  width: 17px;
  height: 17px;
}

/* Viewport/janela do carrossel */
.grw-track-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

/* Trilho deslizante */
.grw-track {
  display: flex;
  gap: 16px;
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  align-items: stretch;
}

/* ──────────────────────────────────────────── */
/* CARD DE AVALIAÇÃO                            */
/* ──────────────────────────────────────────── */
.grw-card {
  flex-shrink: 0;
  background: #FAFAFA;
  border: 1px solid #EFEFEF;
  border-radius: 16px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-sizing: border-box;
}

/* Cabeçalho do card: avatar + nome + ícone G */
.grw-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.grw-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  flex-shrink: 0;
  font-family: var(--font-headline);
}

.grw-author-name {
  font-family: var(--font-cta);
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grw-g-icon {
  flex-shrink: 0;
  line-height: 0;
}

/* Estrelas + checkmark azul */
.grw-card-stars {
  display: flex;
  align-items: center;
  gap: 6px;
}

.grw-stars-row {
  display: flex;
  gap: 2px;
}

.grw-stars-row svg {
  width: 15px;
  height: 15px;
}

.grw-verified {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Texto da avaliação */
.grw-review-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: #374151;
  margin: 0;
  flex: 1;
}

.grw-review-text.is-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Link "Consulte Mais informação" */
.grw-read-more {
  font-family: var(--font-body);
  font-size: 12px;
  color: #9CA3AF;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  display: inline;
}

.grw-read-more:hover {
  color: #6B7280;
  text-decoration: underline;
}

/* ──────────────────────────────────────────── */
/* CTA (botão avalie no Google)                 */
/* ──────────────────────────────────────────── */
.grw-cta {
  text-align: center;
  margin-top: 40px;
}

/* ──────────────────────────────────────────── */
/* RESPONSIVO                                   */
/* ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .grw-widget {
    flex-direction: column;
  }

  .grw-summary {
    border-right: none;
    border-bottom: 1px solid #F0F0F0;
    padding: 28px 24px 24px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    min-width: auto;
  }
}

@media (max-width: 580px) {
  .grw-section {
    padding: 60px 16px;
  }

  .grw-carousel-area {
    padding: 20px 14px;
    gap: 8px;
  }

  .grw-arrow {
    width: 32px;
    height: 32px;
  }

  .grw-arrow svg {
    width: 14px;
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grw-track {
    transition: none;
  }
}

/* ──────────────────────────────────────────── */
/* AUTHOR INFO (nome + data empilhados)         */
/* ──────────────────────────────────────────── */
.grw-author-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.grw-date {
  font-family: var(--font-body);
  font-size: 12px;
  color: #9CA3AF;
  cursor: default;
  width: fit-content;
  line-height: 1;
}

/* ──────────────────────────────────────────── */
/* VERIFIED WRAPPER                             */
/* ──────────────────────────────────────────── */
.grw-verified-wrap {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  cursor: default;
}

/* ──────────────────────────────────────────── */
/* TOOLTIPS (CSS puro, sem JS)                  */
/* ──────────────────────────────────────────── */
[data-tooltip] { position: relative; }

[data-tooltip]::before,
[data-tooltip]::after {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 200;
}

/* Bolha de texto */
[data-tooltip]::after {
  content: attr(data-tooltip);
  background: #111827;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  padding: 6px 10px;
  border-radius: 6px;
}

/* Seta */
[data-tooltip]::before {
  content: '';
  border: 5px solid transparent;
}

/* -- Posição: top (centralizado acima) -- */
[data-tooltip][data-tooltip-pos="top"]::after {
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
}
[data-tooltip][data-tooltip-pos="top"]::before {
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border-top-color: #111827;
}
[data-tooltip][data-tooltip-pos="top"]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
[data-tooltip][data-tooltip-pos="top"]:hover::before { opacity: 1; }

/* -- Posição: top-left (alinhado à direita do elemento) -- */
/* Usado no ícone G que fica na borda direita do card       */
[data-tooltip][data-tooltip-pos="top-left"]::after {
  bottom: calc(100% + 8px);
  right: 0;
  transform: translateY(4px);
  white-space: nowrap;
}
[data-tooltip][data-tooltip-pos="top-left"]::before {
  bottom: calc(100% + 3px);
  right: 6px;
  border-top-color: #111827;
}
[data-tooltip][data-tooltip-pos="top-left"]:hover::after {
  opacity: 1;
  transform: translateY(0);
}
[data-tooltip][data-tooltip-pos="top-left"]:hover::before { opacity: 1; }
