/* Shared by production and development, after the main stylesheet. */
.feedback-modal__overlay {
  overflow: hidden;
  padding: 12px;
  align-items: center;
}

.feedback-modal__dialog {
  box-sizing: border-box;
  width: min(520px, 100%);
  max-width: 100%;
  min-height: 0;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 20px;
}

.feedback-modal__header {
  margin-bottom: 12px;
  padding-right: 28px;
}

.feedback-modal__form {
  gap: 10px;
}

.feedback-modal__field {
  min-width: 0;
  gap: 4px;
  margin-bottom: 0;
}

.feedback-modal__input,
.feedback-modal__textarea {
  width: 100%;
  min-width: 0;
}

.feedback-modal__textarea {
  min-height: 72px;
  height: 72px;
}

.feedback-modal__actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .feedback-modal__overlay {
    padding: 8px;
  }

  .feedback-modal__dialog {
    padding: 14px;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }

  .feedback-modal__header {
    margin-bottom: 8px;
  }

  .feedback-modal__eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .feedback-modal__title {
    margin-bottom: 4px;
    font-size: 18px;
  }

  .feedback-modal__subtitle {
    font-size: 12px;
    line-height: 1.3;
  }

  .feedback-modal__form {
    gap: 7px;
  }

  .feedback-modal__label {
    font-size: 12px;
  }

  .feedback-modal__input,
  .feedback-modal__textarea {
    min-height: 36px;
    padding: 5px 8px;
    /* Avoid automatic zoom when an input receives focus on iOS. */
    font-size: 16px;
  }

  .feedback-modal__textarea {
    min-height: 60px;
    height: 60px;
  }

  .feedback-modal__consent {
    font-size: 12px;
    line-height: 1.3;
  }

  .feedback-modal__submit {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .feedback-modal__details {
    width: 100%;
    justify-content: center;
    margin: 0;
    font-size: 12px;
  }
}
