/* The feedback tab and its panel, on every signed-in page, outside the wizard's .wz scope.
   Fixed on the right edge at mid-height so neither the portal header nor the wizard's
   sticky footer is covered. Above the wizard's sticky bars (z-index 20), under its
   dialogs (40 and 50), which dim the whole page. */
.feedback-widget__tab,
.feedback-widget__panel {
  position: fixed;
  z-index: 30;
}

.feedback-widget__tab {
  top: 50%;
  right: 0;
  padding: 1.6rem 0.8rem;
  border: none;
  border-radius: 0 0.4rem 0.4rem 0;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}

.feedback-widget__panel {
  top: 50%;
  right: 16px;
  width: min(420px, 100vw - 32px);
  /* Clear of the wizard's top bar (64px) and footer (96px), whose actions stay usable while it is open. */
  max-height: calc(100vh - 208px);
  overflow-y: auto;
  padding: 1.6rem;
  border-radius: 0.8rem;
  box-shadow: 0 0.4rem 2.4rem rgba(0, 0, 0, 0.2);
  transform: translateY(-50%);
}

.feedback-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.feedback-widget__title {
  margin: 0;
  font-size: 1.8rem;
}

.feedback-widget__reporter {
  margin: 0 0 1.6rem;
  font-size: 1.4rem;
  color: #777;
}

.feedback-widget__choices {
  border: none;
  padding: 0;
  margin-inline: 0;
}

.feedback-widget__choice {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}

.feedback-widget__files {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.feedback-widget__file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  overflow-wrap: anywhere;
}

.feedback-widget__record,
.feedback-widget__retake {
  display: block;
  margin-top: 0.8rem;
}

.feedback-widget__shot {
  display: block;
  max-width: 100%;
  max-height: 200px;
  margin-top: 0.8rem;
  border: 1px solid #ddd;
}

.feedback-widget__shot--left-out {
  opacity: 0.4;
}

.feedback-widget__thanks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* The wizard's 04b fills the screen from 48em with its panel at the right, so the tab
   moves over the document pane's grey margin at the left, as the release footer does. */
@media (min-width: 48em) {
  body:has(.wz.wz-source) .feedback-widget__tab {
    right: auto;
    left: 0;
    border-radius: 0.4rem 0 0 0.4rem;
  }
}

@media (max-width: 47.9em) {
  .feedback-widget__tab {
    padding: 1.2rem 0.4rem;
    font-size: 1.2rem;
  }
}
