
#google-reviews-toggle {
  position: fixed;
  top: clamp(50%, 60%, 70%);
  left: 0;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: top left;
  background: #fff;
  color: #000;
  padding: 4px 8px;
  z-index: 99997;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  border-radius: 0 0 8px 8px;
  cursor: pointer;
  border: 1px solid #ccc;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

#google-reviews-toggle:hover {
  transform: rotate(-90deg) translateX(-100%) scale(1.02);
}

#google-reviews-toggle .label {
  font-size: clamp(12px, 2vw, 16px);
  font-weight: bold;
  white-space: nowrap;
  margin: 0;
  color: #000;
}

#google-reviews-toggle .icon {
  transform: rotate(90deg);
  transform-origin: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-right: -2px;
}

#google-reviews-toggle .icon .top-row {
  display: flex;
  align-items: center;
  margin-left: -5px;
}

#google-reviews-toggle .icon img {
  width: 24px;
  height: 24px;
  margin: 0;
}

#google-reviews-toggle .icon .star {
  font-size: 18px;
  color: #FFD700;
  margin: 0;
}

#google-reviews-toggle .icon .rating {
  font-size: 14px;
  color: #000;
  line-height: 1;
  margin: 0;
}

/* Panel */
#google-reviews-panel {
  position: fixed;
  top: 0;
  left: -350px;
  width: 320px;
  height: 100%;
  background: #fdfdfd;
  box-shadow: 4px 0 12px rgba(0,0,0,0.2);
  overflow-y: auto;
  transition: left 0.3s ease;
  z-index: 99996;
  padding: 15px;
}

#google-reviews-panel.open {
  left: 0;
}

.reviews-header {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  background: #fff8e1;
  padding: 10px;
  border-radius: 8px;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
  text-align: center;
  color: #333;
}

.review {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 12px;
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.review img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.review strong {
  color: #333;
}

.review .text {
  margin-top: 5px;
  color: #555;
  font-size: 14px;
}

.review .date {
  font-size: 12px;
  color: #999;
}

.reviews-footer {
  padding: 10px 0 15px;
  text-align: center;
}

.show-all-btn {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}

.show-all-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,.15);
}



@media (max-width: 600px) {
  #google-reviews-toggle {
    padding: 2px 6px;
    height: 40px;
  }

  #google-reviews-toggle .icon img {
    width: 28px;
    height: 28px;
  }

  #google-reviews-toggle .icon .star {
    font-size: 14px;
  }

  #google-reviews-toggle .icon .rating {
    font-size: 12px;
  }

  #google-reviews-toggle .label {
    font-size: clamp(11px, 2vw, 14px);
    margin: 0;
  }

  #google-reviews-toggle .count {
    font-size: 12px;
    font-weight: normal;
    text-align: left;
    margin-left: 10px;
  }
}


#google-reviews-toggle .label-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* wyrównanie do lewej */

}

#google-reviews-toggle .count {
  font-size: 14px;
  align-self: flex-start;
  text-align: left;
  width: auto;
  padding-left: 10px;
}


#google-reviews-toggle .label,
#google-reviews-toggle .count {
  margin: 0;
  text-align: left;
  width: auto;
}
