/* In-app "Send Feedback" widget. Uses the design tokens from styles.css. */
.fb-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 18px;
  border: 0; border-radius: 999px; background: var(--green); color: #fff;
  font: inherit; font-weight: 600; box-shadow: var(--shadow); cursor: pointer;
}
.fb-launcher:hover { background: var(--green-dark); }
.fb-launcher[hidden] { display: none; }

.fb-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.3); }
.fb-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  width: min(400px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px;
}
.fb-panel[hidden], .fb-backdrop[hidden] { display: none; }
.fb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fb-head h2 { font-size: 1.15rem; margin: 0; }
.fb-close {
  width: 44px; height: 44px; margin: -8px -8px -8px 0; border: 0; background: none;
  font-size: 1.3rem; color: var(--muted); cursor: pointer; border-radius: 8px;
}
.fb-close:hover { background: var(--cream); }

.fb-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fb-field label { font-weight: 600; font-size: 0.92rem; }
.fb-field .fb-optional { font-weight: 400; color: var(--muted); }
.fb-field select, .fb-field input, .fb-field textarea {
  font: inherit; color: var(--ink); background: #fff; min-height: 44px;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
.fb-field textarea { min-height: 110px; resize: vertical; }
.fb-field :focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }

.fb-actions { display: flex; gap: 10px; justify-content: flex-end; }
.fb-actions .btn { min-width: 110px; }

.fb-message { border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 0.95rem; }
.fb-message[hidden] { display: none; }
.fb-message.fb-success { background: #e6f2eb; color: var(--green-dark); border: 1px solid #b9d8c6; }
.fb-message.fb-error { background: #fdecea; color: #8a2a1f; border: 1px solid #f1c1ba; }

@media (max-width: 720px) {
  .fb-launcher { right: 16px; bottom: 16px; }
  /* Bottom sheet on phones */
  .fb-panel {
    right: 0; left: 0; bottom: 0; width: 100%; max-height: 90vh;
    border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0;
  }
}
