.wr71-feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 8, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wr71-feedback-overlay[hidden] {
  display: none !important;
}

.wr71-feedback-modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  color: #f7f7f7;
  background:
    linear-gradient(145deg, rgba(34, 37, 43, 0.98), rgba(20, 22, 27, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.wr71-feedback-modal h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.1;
}

.wr71-feedback-intro {
  margin: 0 0 8px;
  color: #e5e7eb;
  line-height: 1.55;
}

.wr71-feedback-hint {
  margin: 0 0 22px;
  color: #aeb5c0;
  font-size: 0.93rem;
  line-height: 1.5;
}

.wr71-feedback-field {
  display: block;
  margin-top: 18px;
  font-weight: 750;
}

.wr71-feedback-field input,
.wr71-feedback-field textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  color: #ffffff;
  background: #0f1115;
  border: 1px solid #454b55;
  border-radius: 10px;
  font: inherit;
  outline: none;
}

.wr71-feedback-field input:focus,
.wr71-feedback-field textarea:focus {
  border-color: #77e88c;
  box-shadow: 0 0 0 3px rgba(119, 232, 140, 0.14);
}

.wr71-feedback-field textarea {
  min-height: 105px;
  resize: vertical;
}

.wr71-feedback-rating {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.wr71-feedback-rating label {
  position: relative;
  margin: 0;
}

.wr71-feedback-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wr71-feedback-rating span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px;
  color: #d5d8de;
  background: #101216;
  border: 1px solid #444a54;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.wr71-feedback-rating span:hover {
  transform: translateY(-1px);
  border-color: #737b88;
}

.wr71-feedback-rating input:checked + span {
  color: #101410;
  background: #77e88c;
  border-color: #77e88c;
}

.wr71-feedback-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 25px;
}

.wr71-feedback-actions button {
  min-height: 46px;
  padding: 12px 17px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.wr71-feedback-cancel {
  color: #f1f1f1;
  background: #343840;
}

.wr71-feedback-submit {
  color: #101410;
  background: #77e88c;
}

.wr71-feedback-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.wr71-feedback-error {
  margin: 17px 0 0;
  padding: 12px;
  color: #ffdcdc;
  background: rgba(129, 32, 32, 0.55);
  border: 1px solid rgba(255, 130, 130, 0.35);
  border-radius: 9px;
}

body.wr71-feedback-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .wr71-feedback-overlay {
    align-items: flex-start;
    padding: 10px;
  }

  .wr71-feedback-modal {
    max-height: calc(100vh - 20px);
    padding: 22px 17px;
    border-radius: 16px;
  }

  .wr71-feedback-actions {
    flex-direction: column-reverse;
  }

  .wr71-feedback-actions button {
    width: 100%;
  }
}
