.rw-showreviews-model {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.rw-showreviews-model-inner {
  background: white;
  width: 90%;
  max-width: 1060px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 35px;
  padding: 24px 60px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 0px;
  left: 0px;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.rw-showreviews-model-content {
  display: flex;
  gap: 62px;
  flex-wrap: wrap;
  max-height: 80vh;
  overflow-y: auto;
  padding-bottom: 30px;
  padding-right: 30px;
  position: relative;
}

.rw-showreviews-model-review-avatar {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 99px;
}

.ratings-panel {
  flex: 1;
  min-width: 250px;
  max-width: 250px;
  height: fit-content;
  position: sticky;
  top: 10px;
}

.overall-score {
  text-align: center;
}

.score {
  font-size: 72px;
  font-weight: bold;
  margin: 0;
}

.label {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0px;
}

.subtitle {
  font-size: 14px;
  color: #666;
}

.sub-ratings {
  margin-top: 12px;
}

.sub-ratings .rating-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}

.reviews-panel {
  flex: 2;
  min-width: 300px;
}

.reviews-panel h3 {
  margin-bottom: 12px;
}

.review {
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.review:last-of-type {
  /* margin-bottom: 0; */
  border-bottom: none;
}

.loading-more {
  text-align: center;
  margin-top: 12px;
  position: sticky;
  bottom: -30px;
  background-color: white;
}

.review-header {
  display: flex;
  gap: 12px;
}

.review-header>div {
  display: flex;
  flex-direction: column;
}

.rw-showreviews-model-review-header {
  font-weight: bold;
  margin-bottom: 4px;
}

.rw-showreviews-model-review-date {
  font-size: 12px;
  color: #666;
}

.rw-showreviews-model-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #777;
}

.rw-criteria-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .rw-showreviews-model-inner {
    padding: 0px;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .rw-showreviews-model-content {
    gap: 30px;
    padding-bottom: 0;
    padding-right: 0;
    padding: 20px;
    max-height: none;
  }
  .ratings-panel {
    position: relative; 
    top: auto;
    margin-inline: auto;
    max-width: 100%;
  }
  .close-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1;
    height: 40px;
    width: 40px;
    background-color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}




/* animation  */

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  /* Default duration if not overridden */
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.duration-300 {
  transition-duration: 400ms;
}

.delay-150 {
  transition-delay: 150ms;
}


.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}


.translate-y-8 {
  --tw-translate-y: 2rem;
  /* Equivalent to 32px */
  transform: translateY(var(--tw-translate-y));
}

.translate-y-0 {
  --tw-translate-y: 0px;
  transform: translateY(var(--tw-translate-y));
}




/* skeleton */

/* Block */
.post-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border-bottom: 1px solid #e1e8ed;
}

/* Element: Header */
.post-skeleton__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Element: Avatar */
.post-skeleton__avatar {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Element: Info container */
.post-skeleton__info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

/* Element: Username */
.post-skeleton__username {
  height: 20px;
  width: 120px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 0.25rem;
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Element: Timestamp */
.post-skeleton__timestamp {
  height: 20px;
  width: 60px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 0.25rem;
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Element: Content */
.post-skeleton__content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Element: Text line */
.post-skeleton__text-line {
  height: 20px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 0.25rem;
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Modifier: Short text line */
.post-skeleton__text-line--short {
  width: 60%;
}

/* Animation */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}