/* Uber Reviews - frontend styles */

.uber-review-card {
  margin-bottom: 10px;
}

.uber-review-card:last-child {
  margin-bottom: 0;
}

.uber-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  min-height: 20px;
  margin-bottom: -1px;
  padding-left: 0;
}

.uber-badges-empty {
  opacity: 0;
  margin-bottom: 0;
}

.uber-review-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 4px 5px;
  font-size: 11px;
  font-weight: 500;
  line-height: 12px;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.uber-review-table {
  margin-bottom: 0;
}

.uber-review-author-cell,
.uber-review-meta-cell {
  vertical-align: middle;
}

.uber-review-author {
  font-size: 14px;
}

.uber-review-meta-cell {
  width: 1%;
  white-space: nowrap;
  text-align: center !important;
  padding: 0 5px !important;
}

.uber-review-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.uber-review-rating {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.uber-review-star-stack {
  font-size: 8px;
}

.uber-review-rating .fa-stack,
.uber-review-rating span {
  display: inline-block !important;
}

.uber-review-star-full {
  color: #ffd700;
}

.uber-review-rating-journal {
  font-family: FontAwesome, sans-serif;
  font-size: 16px;
  letter-spacing: 0px;
}

.uber-review-star-empty {
  color: #ccc;
}

.uber-review-star-filled {
  color: #ffd700;
}

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

.uber-review-date-wrap {
  white-space: nowrap;
}

.uber-review-text {
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.6;
}

.uber-admin-reply {
  margin-bottom: 15px;
  border-left: 3px solid #2196f3;
  padding: 10px;
  background: #f8f9fa;
  color: #555;
  font-size: 0.9em;
}

.uber-review-helpful {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid #3c4043;
  padding-top: 8px;
  color: #777;
  font-size: 12px;
}

.uber-review-helpful-question {
  margin-right: 15px;
}

.uber-vote-link {
  display: inline-flex;
  align-items: center;
  margin-right: 15px;
  color: #555;
  text-decoration: none;
  cursor: pointer;
}

.uber-vote-link.vote-no {
  margin-right: 10px;
}

.uber-vote-icon {
  margin-right: 4px;
}

.uber-vote-icon-yes {
  color: #28a745;
}

.uber-vote-icon-no {
  color: #dc3545;
}

.uber-vote-pending {
  opacity: 0.5;
}

.uber-vote-msg {
  display: none;
  margin-left: 10px;
  color: #28a745;
  font-weight: bold;
}

.uber-vote-msg-success {
  color: #28a745 !important;
}

.uber-vote-msg-error {
  color: #dc3545 !important;
}

.uber-stars-wrapper {
  display: inline-block;
  vertical-align: middle;
}

.uber-star {
  display: inline-block;
  margin-right: 2px;
  color: #ccc;
  font-family: FontAwesome;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.uber-star.active,
.uber-star.hover {
  color: #ffd700;
}

.uber-rating-label {
  display: inline-block;
  min-width: 100px;
  margin-left: 10px;
  color: #555;
  font-weight: bold;
  vertical-align: middle;
}

.form-group.required .radio-inline,
.form-group.required input[name='rating'] {
  display: none;
}

.uber-hidden-radio {
  display: none !important;
}

.uber-stars-widget {
  display: flex;
  align-items: center;
  padding-top: 7px;
}

.uber-star-icon {
  margin-right: 3px;
  color: #ddd;
  font-family: FontAwesome !important;
  font-size: 24px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.uber-star-icon::before {
  content: "\f005";
}

.uber-star-icon.hover,
.uber-star-icon.active {
  color: #ffd700;
}

.uber-rating-text {
  min-width: 80px;
  margin-left: 10px;
  color: #555;
  font-size: 13px;
  font-weight: bold;
}

@media (max-width: 1024px) {
  .uber-review-meta-cell {
    width: 100px !important;
    min-width: 100px !important;
    padding: 0 !important;
    vertical-align: middle !important;
  }

  .uber-review-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 5px 0 !important;
    gap: 1px !important;
  }

  .uber-review-rating,
  .uber-review-date-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .uber-review-rating {
    margin-bottom: 2px !important;
  }
  
  .uber-review-rating .fa-stack,
  .uber-review-rating span {
    float: none !important;
    margin: 0 1px !important;
    display: inline-block !important;
  }

  .uber-review-helpful {
/*    justify-content: flex-start;	*/
    flex-wrap: wrap;
    gap: 8px;
  }

  .uber-review-helpful-question {
    margin-right: 8px;
  }

  .uber-vote-link {
    margin-right: 8px;
  }

  .uber-vote-msg {
    width: 100%;
    margin-left: 0;
  }
  .uber-review-badge {
  margin-left: 0;
  }
}
