/* Study annotations keep their scope and recovery text readable in the dialog. */
#report-note-form {
  min-width: 0;
  color: #34415a;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#report-note-form > h3 {
  color: #24334f;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 12px;
}

#report-note-form .form-help,
#report-note-form .script-block small {
  color: #52607a;
  display: block;
  font-size: 13px;
  line-height: 1.7;
}

#report-note-form > .form-help {
  padding: 12px 14px;
  margin: 0 0 18px;
  background: #f5f2fb;
  border: 1px solid #e1d7f1;
  border-radius: 7px;
}

#report-note-form .field {
  min-width: 0;
  color: #34415a;
  font-size: 15px;
  line-height: 1.6;
}

#report-note-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 160px;
  font-size: 16px;
  line-height: 1.65;
  color: #283851;
  background: #fff;
  border-color: #bbc5d5;
}

#report-note-form .script-block {
  padding: 14px 16px;
  color: #49365f;
  font-size: 15px;
  line-height: 1.7;
  background: #f8f5fd;
  border-left-color: #7545ff;
}

#report-note-form .script-block strong {
  color: #49365f;
  font-weight: 600;
}

#report-note-form .script-block p {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}

#report-note-form .form-error {
  color: #a13546;
  font-size: 15px;
  line-height: 1.65;
  margin: 12px 0;
}

#report-note-form .form-error:empty {
  margin: 0;
}

#report-note-form .report-note-recovery {
  margin: 12px 0 18px;
}

#report-note-form [hidden] {
  display: none !important;
}

#report-note-form .button {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

#report-note-form .button.secondary {
  color: #42516c;
}

#report-note-form .form-actions,
#report-note-form .form-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 480px) {
  #report-note-form .form-actions .button,
  #report-note-form .form-footer .button,
  #report-note-form .report-note-recovery .button {
    width: 100%;
    justify-content: center;
  }
}
