/* ==========================================================================
   BLACK ARTES - FEEDBACKS & AVALIAÇÕES (FRONTEND)
   Design System Oficial: White & Bronze Editorial Luxury
   Fundo Branco Puro (#FFFFFF), Detalhes em Bronze Nobre (#A67C52) e Texto Preto (#111111)
   Zero Emojis. 100% Integrado à Identidade Visual do Site.
   ========================================================================== */

.ba-sp-reviews-section {
  padding: 50px 0 20px 0;
  border-top: 1px solid #eaeaea;
  margin-top: 50px;
  color: #111111;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

.ba-sp-reviews-section * {
  box-sizing: border-box;
}

/* Cabeçalho da Seção */
.ba-sp-reviews-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.ba-sp-section-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem) !important;
  font-weight: 800 !important;
  color: #111111 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ba-sp-reviews-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ba-sp-stat-score {
  font-size: 14px;
  font-weight: 800;
  color: #A67C52;
}

.ba-sp-stat-total {
  font-size: 12px;
  color: #666666;
}

/* Grid Principal de 2 Colunas */
.ba-sp-reviews-main-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  margin-bottom: 36px;
  align-items: start;
}

/* Coluna Esquerda: Card de Resumo das Notas */
.ba-sp-reviews-summary-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
}

.ba-sp-score-huge {
  margin-bottom: 6px;
}

.ba-sp-score-huge .num {
  font-size: 48px;
  font-weight: 900;
  color: #111111;
  line-height: 1;
}

.ba-sp-score-huge .max {
  font-size: 16px;
  font-weight: 600;
  color: #888888;
}

.ba-sp-score-stars-center {
  margin-bottom: 12px;
}

.ba-sp-score-subtext {
  font-size: 12.5px;
  color: #666666;
  margin: 0 0 22px 0;
  line-height: 1.5;
}

/* Barras de Progresso das Estrelas */
.ba-sp-bars-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ba-sp-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.ba-sp-bar-item .label {
  width: 32px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #111111;
  font-weight: 700;
  justify-content: flex-end;
}

.ba-sp-bar-item .track {
  flex: 1;
  height: 6px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.ba-sp-bar-item .fill {
  height: 100%;
  background: #A67C52;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.ba-sp-bar-item .pct {
  width: 34px;
  text-align: right;
  color: #888888;
  font-size: 11.5px;
  font-weight: 500;
}

/* Coluna Direita: Lista de Avaliações Aprovadas */
.ba-sp-reviews-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ba-sp-review-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ba-sp-review-card:hover {
  border-color: #A67C52;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(166, 124, 82, 0.08);
}

.ba-sp-rc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.ba-sp-rc-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ba-sp-rc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #A67C52;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.ba-sp-rc-author-name {
  color: #111111 !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  margin: 0 0 3px 0 !important;
}

.ba-sp-rc-buyer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 2px 7px;
  border-radius: 4px;
}

.ba-sp-rc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ba-sp-rc-date {
  font-size: 12px;
  color: #888888;
}

.ba-sp-rc-content {
  font-size: 14px;
  color: #333333;
  line-height: 1.65;
  margin: 0;
  font-style: italic;
}

/* Caixa Vazia: Nenhuma Avaliação Aprovada Ainda */
.ba-sp-empty-reviews-box {
  background: #fafafa;
  border: 1.5px dashed #dcdcdc;
  border-radius: 14px;
  padding: 44px 28px;
  text-align: center;
}

.ba-sp-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(166, 124, 82, 0.08);
  border: 1px solid rgba(166, 124, 82, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.ba-sp-empty-reviews-box h4 {
  color: #111111 !important;
  font-size: 16.5px !important;
  margin: 0 0 8px 0 !important;
  font-weight: 800 !important;
}

.ba-sp-empty-reviews-box p {
  color: #666666 !important;
  font-size: 13.5px !important;
  max-width: 440px;
  margin: 0 auto !important;
  line-height: 1.6;
}

/* Cards de Acesso (Gates: Deslogado, Não Comprou, Pendente) */
.ba-sp-gate-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  flex-wrap: wrap;
}

.ba-sp-gate-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(166, 124, 82, 0.09);
  border: 1px solid rgba(166, 124, 82, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ba-sp-gate-text {
  flex: 1;
  min-width: 260px;
}

.ba-sp-gate-text h4 {
  color: #111111 !important;
  font-size: 15.5px !important;
  margin: 0 0 5px 0 !important;
  font-weight: 800 !important;
}

.ba-sp-gate-text p {
  color: #666666 !important;
  font-size: 13.5px !important;
  margin: 0 !important;
  line-height: 1.55;
}

.ba-sp-btn-gate-login,
.ba-sp-btn-gate-buy {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #A67C52 !important;
  color: #ffffff !important;
  padding: 13px 26px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(166, 124, 82, 0.25) !important;
  white-space: nowrap !important;
}

.ba-sp-btn-gate-login:hover,
.ba-sp-btn-gate-buy:hover {
  background: #8c653f !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(166, 124, 82, 0.35) !important;
}

.ba-sp-badge-in-review {
  display: inline-flex;
  align-items: center;
  background: rgba(166, 124, 82, 0.1);
  color: #A67C52;
  border: 1px solid rgba(166, 124, 82, 0.35);
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
}

/* Formulário de Avaliação (Para Comprador Verificado) */
.ba-sp-review-form-wrapper {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: 34px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}

.ba-sp-form-header {
  margin-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 18px;
}

.ba-sp-fh-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.ba-sp-form-title {
  color: #111111 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  letter-spacing: -0.01em !important;
}

.ba-sp-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.09);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.ba-sp-form-sub {
  color: #666666 !important;
  font-size: 13.5px !important;
  margin: 0 !important;
  line-height: 1.55;
}

/* Seletor Interativo de Estrelas (Limpo, sem caixas brancas ou pretas) */
.ba-sp-star-picker-container {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.ba-sp-picker-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
}

.ba-sp-stars-interactive {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent !important;
}

.ba-sp-star-pick-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 2px !important;
  margin: 0 !important;
  cursor: pointer;
  outline: none !important;
  transition: transform 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ba-sp-star-pick-btn:hover {
  transform: scale(1.15);
}

.ba-sp-picker-score {
  font-size: 13.5px;
  font-weight: 700;
  color: #A67C52;
}

/* Textarea Estilizado no Tema Branco */
.ba-sp-textarea-wrap {
  margin-bottom: 22px;
}

.ba-sp-textarea-wrap textarea {
  width: 100% !important;
  background: #fafafa !important;
  border: 1px solid #eaeaea !important;
  border-radius: 10px !important;
  color: #111111 !important;
  padding: 16px 18px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  line-height: 1.6 !important;
  resize: vertical !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
}

.ba-sp-textarea-wrap textarea::placeholder {
  color: #999999 !important;
}

.ba-sp-textarea-wrap textarea:focus {
  background: #ffffff !important;
  border-color: #A67C52 !important;
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.12) !important;
  outline: none !important;
}

/* Rodapé do Formulário */
.ba-sp-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ba-sp-moderation-notice {
  display: none !important;
}

.ba-sp-submit-btn {
  background: #A67C52 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 14px 30px !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 14px rgba(166, 124, 82, 0.25) !important;
}

.ba-sp-submit-btn:hover {
  background: #8c653f !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(166, 124, 82, 0.35) !important;
}

.ba-sp-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Response Alert */
.ba-sp-response-alert {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
}

.ba-sp-response-alert.success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #065f46;
}

.ba-sp-response-alert.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #991b1b;
}

/* Responsividade */
@media (max-width: 900px) {
  .ba-sp-reviews-main-grid {
    grid-template-columns: 1fr;
  }
  .ba-sp-gate-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .ba-sp-btn-gate-login,
  .ba-sp-btn-gate-buy {
    width: 100%;
  }
  .ba-sp-form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .ba-sp-submit-btn {
    width: 100%;
  }
}
