.hhl-feedback {
  color: #17202a;
  font-family: inherit;
}

.hhl-feedback__trigger {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: #e11d48;
  color: #fff;
  box-shadow: 0 12px 26px rgba(20, 27, 38, 0.24);
  cursor: pointer;
  font: 700 14px/1.2 inherit;
}

.hhl-feedback__trigger:hover,
.hhl-feedback__trigger:focus {
  background: #be123c;
}

.hhl-feedback__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 15, 25, 0.58);
}

.hhl-feedback__modal[hidden] {
  display: none;
}

.hhl-feedback__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  padding: 28px;
}

.hhl-feedback__panel h2 {
  margin: 0 34px 10px 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hhl-feedback__instruction {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.hhl-feedback__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  cursor: pointer;
  font-size: 24px;
  line-height: 34px;
}

.hhl-feedback__form {
  display: grid;
  gap: 16px;
}

.hhl-feedback__form label {
  display: grid;
  gap: 7px;
  margin: 0;
}

.hhl-feedback__form span {
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.hhl-feedback__form input,
.hhl-feedback__form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: 400 16px/1.4 inherit;
  padding: 11px 12px;
}

.hhl-feedback__form textarea {
  resize: vertical;
  min-height: 130px;
}

.hhl-feedback__form input:focus,
.hhl-feedback__form textarea:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, 0.18);
}

.hhl-feedback__trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.hhl-feedback__paste {
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  cursor: text;
  font-size: 14px;
  line-height: 1.35;
  padding: 13px 14px;
}

.hhl-feedback__paste:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, 0.18);
}

.hhl-feedback__upload input[type="file"] {
  padding: 10px;
}

.hhl-feedback__screenshot {
  display: grid;
  gap: 10px;
}

.hhl-feedback__screenshot[hidden] {
  display: none;
}

.hhl-feedback__screenshot img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}

.hhl-feedback__screenshot button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #be123c;
  cursor: pointer;
  font: 700 14px/1.2 inherit;
  padding: 0;
}

.hhl-feedback__status {
  min-height: 20px;
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.35;
}

.hhl-feedback__status[data-type="success"] {
  color: #047857;
}

.hhl-feedback__status[data-type="error"] {
  color: #b91c1c;
}

.hhl-feedback__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.hhl-feedback__primary,
.hhl-feedback__secondary {
  min-height: 44px;
  border-radius: 6px;
  cursor: pointer;
  font: 700 15px/1.2 inherit;
  padding: 0 16px;
}

.hhl-feedback__primary {
  border: 1px solid #e11d48;
  background: #e11d48;
  color: #fff;
}

.hhl-feedback__secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #111827;
}

.hhl-feedback__primary:hover,
.hhl-feedback__primary:focus {
  background: #be123c;
  border-color: #be123c;
}

.hhl-feedback__secondary:hover,
.hhl-feedback__secondary:focus {
  background: #f8fafc;
}

.hhl-feedback__primary:disabled,
.hhl-feedback__secondary:disabled {
  cursor: wait;
  opacity: 0.65;
}

.hhl-feedback-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .hhl-feedback__trigger {
    right: 14px;
    bottom: 14px;
  }

  .hhl-feedback__modal {
    padding: 10px;
  }

  .hhl-feedback__panel {
    padding: 22px;
  }

  .hhl-feedback__panel h2 {
    font-size: 21px;
  }

  .hhl-feedback__actions {
    display: grid;
  }
}
