/* Floating Review Button */
.floating-review-btn {
  /*position: fixed;*/
  /*top: 150px;*/
  /*background: var(--main);*/
  /*width: 40px;*/
  /*height: 40px;*/
  /*border-radius: 4px;*/
  /*display: flex;*/
  /*align-items: center;*/
  /*justify-content: center;*/
  /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);*/
  /*cursor: pointer;*/
  /*transition: all 0.3s ease;*/
  /*z-index: 999;*/
  /*text-decoration: none;*/
  /*overflow: hidden;*/
}

/* RTL positioning (Arabic) */
/*html[dir="rtl"] .floating-review-btn {*/
/*  left: 25px;*/
/*  right: auto;*/
/*}*/

/* LTR positioning (English) */
/*html[dir="ltr"] .floating-review-btn {*/
/*  right: 25px;*/
/*  left: auto;*/
/*}*/

/*.floating-review-btn::before {*/
  /*content: '';*/
/*  position: absolute;*/
/*  bottom: 0;*/
/*  left: 0;*/
/*  right: 0;*/
/*  height: 30%;*/
/*  background: rgba(139, 112, 40, 0.4);*/
/*  z-index: 1;*/
/*}*/

.floating-review-btn .btn-circle {
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.floating-review-btn .btn-circle i {
  color: #B8941E;
  font-size: 18px;
  font-weight: bold;
}

.floating-review-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #DDB944 0%, #C4A028 50%, #957832 100%);
}

.floating-review-btn .review-text {
  display: none;
  position: absolute;
  background: #2a2a2a;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 3;
}

/* Tooltip positioning for RTL */
html[dir="rtl"] .floating-review-btn .review-text {
  right: 80px;
  left: auto;
}

html[dir="rtl"] .floating-review-btn .review-text::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  right: auto;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: #2a2a2a;
  border-left-color: transparent;
}

/* Tooltip positioning for LTR */
html[dir="ltr"] .floating-review-btn .review-text {
  left: 80px;
  right: auto;
}

html[dir="ltr"] .floating-review-btn .review-text::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  left: auto;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: #2a2a2a;
  border-right-color: transparent;
}

.floating-review-btn:hover .review-text {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.review-star {
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
}

.review-star:hover,
.review-star.active {
  color: #FFD700;
}

.review-star.bi-star-fill {
  color: #FFD700;
}

@media (max-width: 768px) {
  .floating-review-btn {
    width: 60px;
    height: 60px;
    top: 120px;
  }
  
  html[dir="rtl"] .floating-review-btn {
    left: 15px;
  }
  
  html[dir="ltr"] .floating-review-btn {
    right: 15px;
  }
  
  .floating-review-btn .btn-circle {
    width: 32px;
    height: 32px;
  }
  
  .floating-review-btn .btn-circle i {
    font-size: 16px;
  }
  
  .floating-review-btn .review-text {
    display: none !important;
  }
}
