/* Rating Popup Overlay */
.tw-lat-rating-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tw-lat-rating-popup-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Rating Popup Box */
.tw-lat-rating-popup {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
  position: relative;
  padding: 30px;
  font-family: inherit;
}

/* Close Button */
.tw-lat-rating-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #1f2937;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.tw-lat-rating-popup-close:hover {
  color: #000;
}

/* Header */
.tw-lat-rating-popup-header h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #111827;
}

.tw-lat-rating-popup-header p {
  margin: 0 0 22px;
  color: #4b5563;
  line-height: 1.6;
}

/* Star Rating Group */
.tw-lat-rating-star-group {
  margin-bottom: 15px;
}

.tw-lat-rating-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #111827;
}

.tw-lat-rating-stars {
  display: flex;
  gap: 8px;
}

.tw-lat-rating-star {
  padding: 0;
  background: none;
  border: none;
  color: #b6b6b6;
  font-size: 22px;
  line-height: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.tw-lat-rating-star:hover,
.tw-lat-rating-star.active {
  background: none;
  color: #fcd34d;
  transform: translateY(-2px);
}

/* Message Field */
.tw-lat-rating-field {
  margin-bottom: 15px;
}

.tw-lat-rating-field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #111827;
}

.tw-lat-rating-field textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 14px 16px;
  resize: vertical;
  color: #111827;
  font-size: 14px;
  box-sizing: border-box;
}

/* Error Message */
.tw-lat-rating-error {
  min-height: 20px;
  color: #dc2626;
  margin-bottom: 10px;
  font-size: 13px;
}

/* Action Buttons */
.tw-lat-rating-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tw-lat-rating-actions button {
  border-radius: 12px !important;
  padding: 6px 24px !important;
}

.tw-lat-rating-submit {
  background: #1460AC !important;
  color: #fff !important;
  border: 1px solid #1460ac !important;
  transition: 0.3s ease;
}

.tw-lat-rating-submit:hover {
  background: #E8F0FE !important;
  color: #1f2937 !important;
  border: 1px solid #1460ac !important;
}

.tw-lat-rating-cancel {
  background: #E8F0FE !important;
  color: #1f2937 !important;
  border: 1px solid #1460ac !important;
  transition: 0.3s ease;
}

.tw-lat-rating-cancel:hover {
  background: #1460AC !important;
  color: #fff !important;
}