/* v1.5.2 Feedback and Bug Report button below Export My Notes */
.feedback-report-wrap {
  position: relative;
  display: grid;
  margin-top: 10px;
}

.feedback-report-button {
  width: 100%;
  min-height: 46px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  text-align: center;
  text-decoration: none;
  border-color: #7b5bd6 !important;
  background: #fff7fd !important;
  color: #27324a !important;
}

.feedback-report-button small {
  font-size: 10px;
  font-weight: 900;
  opacity: .78;
  line-height: 1.1;
}

.feedback-report-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  width: min(360px, 86vw);
  z-index: 50;
  background: #fffaf0;
  color: #27324a;
  border: 3px solid #27324a;
  border-radius: 16px;
  box-shadow: 7px 7px 0 rgba(39, 50, 74, .16);
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}

.feedback-report-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #fffaf0;
  border-right: 3px solid #27324a;
  border-bottom: 3px solid #27324a;
}

.feedback-report-tooltip p {
  margin: 0;
}

.feedback-report-tooltip p + p {
  margin-top: 8px;
}

.feedback-report-wrap:hover .feedback-report-tooltip,
.feedback-report-wrap:focus-within .feedback-report-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

body.night-mode .feedback-report-button {
  background: rgba(54, 43, 89, .92) !important;
  color: #f5f0ff !important;
  border-color: #b69cff !important;
}

body.night-mode .feedback-report-tooltip {
  background: #171d2c;
  color: #edf2ff;
  border-color: #b9c6ff;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .32);
}

body.night-mode .feedback-report-tooltip::after {
  background: #171d2c;
  border-color: #b9c6ff;
}

@media (max-width: 720px) {
  .feedback-report-tooltip {
    left: 0;
    right: 0;
    width: min(100%, 88vw);
    transform: translateY(6px);
    margin: 0 auto;
  }

  .feedback-report-wrap:hover .feedback-report-tooltip,
  .feedback-report-wrap:focus-within .feedback-report-tooltip {
    transform: translateY(0);
  }

  .feedback-report-tooltip::after {
    left: 50%;
  }
}
