.reviews-hero-image img,
.review-providers-container img {
  max-width: 100%;
  height: auto;
}

.reviews-container {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.reviews-container > div {
  width: 100%;
}

.review-providers-container {
  position: relative;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  text-align: center;
  background-color: #fff;
}

.review-providers-container > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 352px;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  padding: 18px 20px;
}

.review-providers-container div.middle-rating {
  background-color: white;
  padding: 20px 40px;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.8),
    inset 0 0 15px rgba(0, 0, 0, 0.2);
  justify-content: center;
}

.review-providers-container div.middle-rating::after {
  display: none;
}

.review-providers-container div.rating-holder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.review-providers-container div.last-rating {
  flex-direction: row-reverse;
}

.review-providers-container h3 {
  margin: 0;
  font-weight: 900;
  font-size: 48px;
  color: #0d8ee9;
}

.review-providers-container div.middle-rating h3 {
  font-size: 64px;
  color: #ff9107;
}

.review-providers-container div .accumulated-paragraph {
  color: #ff9107;
  font-size: 8px;
  margin: 0;
}

.review-providers-container div a {
  display: block;
  margin-top: 5px;
  color: #0d8ee9;
  font-size: 8px;
}

.reviews-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem 0;
  padding: 3rem 0;
  width: 95%;
  margin: 0 auto;
}

/* review card */
.review-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  padding-top: 40px;
  border: 2px solid #4a90e2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 100%;
}

.review-card.domestic {
  border: 2px solid #ff9107;
}

.review-card.default {
  border: 2px solid #d8d8d8;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
  margin-bottom: 18px;
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  border-radius: 20px;
}

.review-header > div {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 0 20px 20px 0;
  border: 1.5px solid #4a90e2;
  font-weight: bold;
}

.review-card.domestic .review-header > div {
  border: 1.5px solid #ff9107;
}

.review-card.default .review-header > div {
  border: 1.5px solid #7d7d7d;
}

.customer-badge {
  background-color: #edf7ff;
  border-radius: 20px;
  color: #606060;
  font-size: 12px;
  z-index: 2;
  overflow: hidden;
  border-radius: 20px !important;
}

.review-card.domestic .customer-badge {
  background-color: #fff8e9;
}

.review-card.default .customer-badge {
  background-color: #f4f4f4;
}

.customer-icon {
  width: 20px;
  height: 20px;
  background: #4a90e2;
  border-radius: 50%;
  border: 2px solid #4a90e2;
  border-bottom: none;
}

.review-card.domestic .customer-icon {
  background: #ff9107;
  border: 2px solid #ff9107;
}

.review-card.default .customer-icon {
  background: #acacac;
  border: 2px solid #acacac;
}

.customer-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shipping-type {
  padding-left: 25px !important;
  left: -15px;
  z-index: 1;
  background-image: linear-gradient(to right, #0d47b2, #0d8ee9);
}

.review-stars {
  padding-left: 25px !important;
  left: -30px !important;
  background-image: linear-gradient(to right, #0d47b2, #77c7ff);
  margin-top: 0 !important;
}

.review-card.domestic .shipping-type {
  background-image: linear-gradient(to right, #be6900, #ff9107);
}

.review-card.domestic .review-stars {
  background-image: linear-gradient(to right, #be6900, #ffc57c);
}

.review-card.default .shipping-type {
  background-image: linear-gradient(to right, #7d7d7d, #acacac);
}

.review-card.default .review-stars {
  background-image: linear-gradient(to right, #7d7d7d, #acacac);
}

.star {
  color: white;
  font-size: 14px;
}

.review-content {
  margin-bottom: 16px;
}

.review-text {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 4px;
}

.reply-label {
  display: block;
  color: #0d47b2;
}

.read-more {
  color: #4a90e2;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  margin-left: auto;
  width: 100%;
  text-align: right;
  font-weight: bold;
  text-decoration: underline;
}

.domestic .read-more {
  color: #ff9107;
}

.domestic .reply-label {
  display: block;
  color: #be6900;
}

.default .reply-label {
  display: block;
  color: #000000;
}

.reply-section {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.reply-title {
  color: #4a90e2;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.review-card.domestic .reply-title {
  color: #be6900;
}

.review-card.default .reply-title {
  color: #000000;
}

.reply-text {
  max-width: 95%;
  margin: 0 auto;

  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 4px;
  background-color: #edf7ff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.review-card.domestic .reply-text {
  background-color: #fff8e9;
}

.review-card.default .reply-text {
  background-color: #f4f4f4;
}

.tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1.5px solid #e0e6ed;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  color: #555;
}

.tag-icon {
  width: 14px;
  height: 14px;
  background: #4a90e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 9px;
}

.review-card.domestic .tag-icon {
  background: #be6900;
}

.review-card.default .tag-icon {
  background: #7d7d7d;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.reviews-header .review-btn {
  background: linear-gradient(135deg, #0d8ee9 0%, #0072ff 100%);
  color: #fff;
  border: none !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(13, 142, 233, 0.35);
  transition: all 0.35s ease;
  background-size: 200% 200%;
}

.review-btn:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(13, 142, 233, 0.5),
    0 0 10px rgba(246, 172, 79, 0.3);
}

.review-btn:hover i {
  color: #f6ac4f;
}

/* Admin Reply Styles */
.admin-reply {
  background-color: #f8f9fa;
  border-left: 4px solid #007bff;
  padding: 15px;
  margin-top: 15px;
  border-radius: 4px;
}

.admin-reply-header {
  color: #007bff;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9em;
}

.admin-reply-header i {
  margin-right: 5px;
}

/* Admin Reply Form Styles */
#replyForm {
  margin-top: 15px;
}

#adminReplyForm textarea {
  resize: vertical;
  min-height: 100px;
}

.reply-actions {
  display: flex;
  gap: 10px;
}

.reply-actions button {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.reply-meta {
  font-size: 0.8em;
  color: #6c757d;
  margin-top: 5px;
}

/* ========================================================= */
/* ✅ RESPONSIVE FIXES FOR SMALL SCREENS (KEEP DESKTOP AS IS) */
/* ========================================================= */

@media (min-width: 992px) {
  .review-providers-container > div.last-rating-container {
    flex-direction: row-reverse;
  }

  .review-providers-container div.middle-rating {
    width: fit-content;
  }
}

@media (min-width: 768px) {
  .reviews-grid {
    max-width: 820px;
    width: 100%;
  }
  .review-providers-container {
    flex-direction: row;
  }

  .review-card {
    padding: 24px;
  }

  .review-header > div {
    padding: 8px 20px 8px 8px;
  }
}

@media (max-width: 991px) {
  .review-providers-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 30px 15px;
  }

  .review-providers-container > div {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
    gap: 15px;
  }

  .review-providers-container h3 {
    font-size: 32px;
  }

  .review-providers-container div.middle-rating h3 {
    font-size: 40px;
  }

  .review-providers-container div.rating-holder {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .review-providers-container {
    padding: 20px 10px;
    gap: 1.5rem;
  }

  .review-providers-container > div {
    max-width: 90%;
  }

  .review-providers-container h3 {
    font-size: 28px;
  }

  .review-providers-container div.middle-rating h3 {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .admin-reply {
    margin: 10px 0;
    padding: 10px;
  }

  .reply-actions {
    flex-direction: column;
    gap: 5px;
  }

  .reply-actions button {
    width: 100%;
  }

  .customer-badge {
    font-size: 10px;
  }
}
