.tw-lem-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-lem-rating-popup-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.tw-lem-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;
}

.tw-lem-rating-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #1f2937;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.tw-lem-rating-popup-close:hover {
  color: #000;
}

.tw-lem-rating-popup-header h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #111827;
}

.tw-lem-rating-popup-header p {
  margin: 0 0 22px;
  color: #4b5563;
  line-height: 1.6;
}

.tw-lem-rating-star-group {
  margin-bottom: 15px;
}

.tw-lem-rating-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #111827;
}

.tw-lem-rating-stars {
  display: flex;
  gap: 8px;
}

.tw-lem-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-lem-rating-star:hover,
.tw-lem-rating-star.active {
  background: none;
  color: #fcd34d;
  transform: translateY(-2px);
}

.tw-lem-rating-field {
  margin-bottom: 15px;
}

.tw-lem-rating-field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #111827;
}

.tw-lem-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;
}

.tw-lem-rating-error {
  min-height: 20px;
  color: #dc2626;
  margin-bottom: 10px;
  font-size: 13px;
}

.tw-lem-rating-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tw-lem-rating-actions button {
  border-radius: 12px !important;
  padding: 6px 24px !important;
}

.tw-lem-rating-submit {
  background: #1460AC !important;
  color: #fff !important;
  border: 1px solid #1460ac !important;
  transition: 0.3s ease;
}

.tw-lem-rating-submit:hover {
  background: #E8F0FE !important;
  color: #1f2937 !important;
  border: 1px solid #1460ac !important;
}

.tw-lem-rating-cancel {
  background: #E8F0FE !important;
  color: #1f2937 !important;
  border: 1px solid #1460ac !important;
  transition: 0.3s ease;
}

.tw-lem-rating-cancel:hover {
  background: #1460AC !important;
  color: #fff !important;
}

.tw-lem-rating-consent-field .tw-lem-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  cursor: pointer;
  margin-bottom: 15px;
}

.tw-lem-rating-consent-field .tw-lem-consent-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #1460ac;
}
