/* ===== FLOATING BADGE (Colț stânga-jos) ===== */
#accent-reviews-floating-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999990; /* Peste conținut dar sub overlay+panel */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.arb-badge {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 220px;
}

.arb-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

/* Buton X pentru ascundere badge */
.arb-badge-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dadce0;
  color: #70757a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  padding: 0;
  font-family: Arial, sans-serif;
  z-index: 10;
}

.arb-badge-close:hover {
  background: #f8f9fa;
  color: #202124;
  transform: scale(1.1);
}

/* Badge ascuns */
.arb-badge.hidden {
  display: none;
}

.arb-badge-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.arb-google-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.arb-badge-label {
  font-size: 14px;
  font-weight: 600;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 4px;
}

.arb-verified-badge {
  width: 14px;
  height: 14px;
}

.arb-badge-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.arb-rating-number {
  font-size: 20px;
  font-weight: 700;
  color: #202124;
}

.arb-rating-stars {
  color: #fbbc04;
  font-size: 14px;
  letter-spacing: 1px;
}

.arb-reviews-count {
  font-size: 13px;
  color: #70757a;
  font-weight: 500;
}

/* ===== PANEL SLIDE-IN (Overlay + Sidebar) ===== */
.arb-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999998; /* Sub panel (9999999) dar peste badge (9999990) */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none; /* ADAUGĂ - nu blochează click când e ascuns */
}

.arb-panel-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* ADAUGĂ - permite click când e activ */
}

.arb-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: #fff;
  z-index: 9999999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0,0,0,0.2);
  visibility: hidden; /* ADAUGĂ */
}

.arb-panel.active {
  transform: translateX(0);
  visibility: visible; /* ADAUGĂ */
}

.arb-panel.active {
  transform: translateX(0);
}

/* Close Button */
.arb-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  z-index: 10;
}

.arb-close-btn:hover {
  background: #f0f0f0;
}

.arb-close-btn svg {
  width: 20px;
  height: 20px;
  fill: #70757a;
}

/* Panel Header */
.arb-panel-header {
  padding: 24px 24px 20px 24px;
  border-bottom: 1px solid #e8e8e8;
  text-align: center;
}

.arb-panel-title {
  font-size: 22px;
  font-weight: 600;
  color: #202124;
  margin: 0 0 20px 0;
}

.arb-panel-google-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
}

.arb-panel-label {
  font-size: 16px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.arb-panel-rating-summary {
  font-size: 14px;
  color: #70757a;
  margin-bottom: 8px;
}

.arb-panel-stars {
  color: #fbbc04;
  font-size: 24px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.arb-review-btn {
  display: inline-block;
  background: #927956;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.arb-review-btn:hover {
  background: #7a6345;
  color: #fff !important;
}

/* Panel Reviews List */
.arb-panel-reviews {
  padding: 16px;
}

.arb-review-card {
  background: #f8f4ee;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.arb-review-stars {
  color: #fbbc04;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.arb-review-text {
  color: #3c4043;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.arb-review-text.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.arb-read-more {
  color: #927956;
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
  font-weight: 500;
}

.arb-read-more:hover {
  text-decoration: underline;
}

.arb-reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #e8e8e8;
}

.arb-reviewer-photo-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.arb-reviewer-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.arb-google-badge-small {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.arb-google-badge-small svg {
  width: 12px;
  height: 12px;
}

.arb-reviewer-info {
  flex: 1;
}

.arb-reviewer-name {
  font-size: 14px;
  font-weight: 600;
  color: #3c4043;
  margin: 0 0 2px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.arb-verified-icon {
  width: 14px;
  height: 14px;
  color: #1a73e8;
  flex-shrink: 0;
}

.arb-review-time {
  font-size: 12px;
  color: #70757a;
}

/* Loading State */
.arb-loading {
  text-align: center;
  padding: 40px 20px;
  color: #70757a;
}

.arb-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid #f0f0f0;
  border-top-color: #927956;
  border-radius: 50%;
  animation: arb-spin 1s linear infinite;
}

@keyframes arb-spin {
  to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Container rămâne pe STÂNGA (nu centrat!) */
  #accent-reviews-floating-badge {
    bottom: 0;
    left: 0; /* ← Container pe stânga */
    right: 0; /* ← Peste tot ecranul */
    transform: none; /* ← Fără transform */
    z-index: 9999990;
    pointer-events: none; /* ← Lasă click-urile să treacă prin */
  }

  /* Badge CENTRAT prin CSS propriu */
  .arb-badge {
    width: auto;
    min-width: 180px;
    padding: 10px 12px;
    position: absolute; /* ← Poziționat absolut în container */
    bottom: 15px;
    left: 50%; /* ← Centrat */
    transform: translateX(-50%); /* ← Centrat perfect */
    pointer-events: auto; /* ← Badge clickable */
  }

  .arb-badge-label {
    font-size: 12px;
  }

  .arb-rating-number {
    font-size: 18px;
  }

  .arb-rating-stars {
    font-size: 12px;
  }

  .arb-reviews-count {
    font-size: 11px;
  }

  /* Overlay - full screen */
  .arb-panel-overlay {
    pointer-events: auto; /* ← Overlay clickable când activ */
  }

  /* Panel - STÂNGA, 75% lățime, FULL HEIGHT */
  .arb-panel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important; /* ← FORȚAT pe stânga */
    right: auto !important;
    bottom: 0 !important;
    width: 75vw !important;
    max-width: 75vw !important;
    height: 100vh !important;
    transform: translateX(-100%) !important; /* ← Ascuns în stânga */
    pointer-events: auto; /* ← Panel clickable */
  }

  .arb-panel.active {
    transform: translateX(0) !important; /* ← Vizibil */
  }

  .arb-panel-header {
    padding: 50px 12px 16px 12px;
  }

  .arb-panel-title {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 15px;
    word-wrap: break-word;
  }

  .arb-panel-google-icon {
    width: 28px;
    height: 28px;
  }

  .arb-panel-label {
    font-size: 14px;
  }

  .arb-panel-rating-summary {
    font-size: 13px;
  }

  .arb-panel-stars {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .arb-review-btn {
    font-size: 13px;
    padding: 9px 20px;
  }

  .arb-panel-reviews {
    padding: 12px;
  }

  .arb-review-card {
    padding: 14px;
    margin-bottom: 10px;
  }

  .arb-review-text {
    font-size: 13px;
  }

  .arb-reviewer-name {
    font-size: 13px;
  }

  .arb-close-btn {
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
  }

  .arb-close-btn svg {
    width: 18px;
    height: 18px;
  }
}