/* Public "Send feedback" widget — floating button + modal. Self-contained and
   theme-aware (uses the site's CSS vars with fallbacks so it works on any page).
   No inline styles (CSP: style-src has no 'unsafe-inline'). */

.stfb-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.15));
  border-radius: 999px;
  background: var(--brass, #c9a35a);
  color: #1a1400;
  font: 600 14px/1 var(--font-body, system-ui, sans-serif);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transition: transform .12s ease, box-shadow .12s ease;
}
.stfb-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.34); }

.stfb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}
.stfb-overlay.stfb-open { display: flex; }

.stfb-modal {
  width: 100%;
  max-width: 440px;
  background: var(--surface, #14171c);
  color: var(--text, #e9edf2);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  font-family: var(--font-body, system-ui, sans-serif);
}
.stfb-modal h3 { margin: 0 0 6px; font-size: 20px; }
.stfb-modal p { margin: 0 0 14px; color: var(--muted, #9aa4b2); font-size: 14px; line-height: 1.5; }

.stfb-field {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.16));
  border-radius: 9px;
  background: var(--raised, rgba(255, 255, 255, 0.04));
  color: var(--text, #e9edf2);
  font: 400 14px/1.5 var(--font-body, system-ui, sans-serif);
}
textarea.stfb-field { min-height: 110px; resize: vertical; }
.stfb-field:focus { outline: none; border-color: var(--brass, #c9a35a); }

/* Honeypot — visually removed, kept in the accessibility tree only for bots. */
.stfb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.stfb-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.stfb-cancel, .stfb-send {
  padding: 9px 16px;
  border-radius: 9px;
  font: 600 14px/1 var(--font-body, system-ui, sans-serif);
  cursor: pointer;
}
.stfb-cancel { background: transparent; color: var(--text, #e9edf2); border: 1px solid var(--line, rgba(255, 255, 255, 0.18)); }
.stfb-send { background: var(--brass, #c9a35a); color: #1a1400; border: 1px solid var(--brass, #c9a35a); }
.stfb-send[disabled] { opacity: .6; cursor: default; }

.stfb-err { color: var(--danger, #ef6a6a); font-size: 13px; min-height: 16px; margin-bottom: 8px; }
.stfb-ok { color: var(--profit, #3fbf7f); font-size: 15px; padding: 6px 0; }
