/** Schneidewind.IT GReview Widget Styles **/
.g-review-widget {
  font-family: sans-serif;
  max-width: 300px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  background-color: #fff;
  color: #393939;
  font-size: 18px;
  cursor: pointer;
}

.g-review-widget .g-review-box {
  display: flex;
  align-items: center;
}

.g-review-widget .glogo {
  min-width: 80px;
  margin-right: 16px;
  padding: 10px;
}

.g-review-widget .glogo img {
  width: 100%;
}

.g-review-widget .grating {
  flex-grow: 1;
  margin-top: 8px;
  margin-bottom: 8px;
}

.g-review-widget .grating .stars {
  font-size: 16px;
  color: #f1c40f;
}

.g-review-widget .stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.g-review-widget .stars svg {
  width: 2rem;
  height: 2rem;
  display: block;
}

.g-review-widget .greviewfooter {
  border-top: 1px solid #aaa;
  background-color: #efefef;
  color: #333;
  padding: 4px;
  padding-left: 10px;
}

/** Top reviews widget **/
.g-review-top-widget {
  max-width: 450px;
  cursor: pointer;
}

.g-review-top-card {
  background: #f7f2ea;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  color: #2b2b2b;
  transform: perspective(800px) translateZ(0);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.g-review-top-widget:hover .g-review-top-card {
  transform: perspective(800px) translateZ(12px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.g-review-top-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.g-review-top-title {
  font-size: 20px;
  font-weight: 700;
}

.g-review-top-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #5b4c3a;
}

.g-review-top-rating .rating-value {
  font-size: 20px;
  font-weight: 700;
  color: #2b2b2b;
}

.g-review-top-rating .rating-max {
  font-size: 14px;
  color: #7a6b5a;
}

.g-review-top-list {
  display: grid;
  gap: 16px;
}

.g-review-top-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
}

.g-review-top-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  font-weight: 700;
  color: #8c6d2e;
  text-transform: uppercase;
}

.g-review-top-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g-review-top-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.g-review-top-text {
  font-size: 14px;
  line-height: 1.5;
  color: #51483d;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.g-review-top-item.is-expanded .g-review-top-text {
  -webkit-line-clamp: unset;
  display: block;
}

.g-review-top-toggle {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #8c6d2e;
  cursor: pointer;
  text-decoration: underline;
}

.g-review-top-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #7a6b5a;
}

.g-review-top-widget .stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.g-review-top-widget .stars svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

@media (max-width: 640px) {
  .g-review-top-card {
    padding: 18px;
  }

  .g-review-top-item {
    grid-template-columns: 48px 1fr;
  }

  .g-review-top-avatar {
    width: 48px;
    height: 48px;
  }
}
