/* UI cycle 09 — feedback_widget.css
 * Scoped under .fb-widget-* classnames. Per-surface theming overrides
 * the CSS custom properties below from the embedding page.
 *
 * Defaults match the cycle_09 spec FAB shape: 40x40, bottom-right,
 * subtle shadow, z-index one below int32 max so app modals can still
 * cover the widget on demand.
 */

:root {
  --fb-color: #ffffff;
  --fb-bg: #ff3b30;
  --fb-font: Inter, system-ui, -apple-system, sans-serif;
  --fb-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  --fb-radius: 8px;
}

.fb-widget-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--fb-bg);
  color: var(--fb-color);
  font-family: var(--fb-font);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--fb-shadow);
  z-index: 2147483000;
}

.fb-widget-fab:hover {
  filter: brightness(1.1);
}

.fb-widget-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fb-font);
}

.fb-widget-panel {
  background: #fff;
  padding: 16px;
  border-radius: var(--fb-radius);
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  color: #222;
}

.fb-widget-preview {
  position: relative;
  max-width: 800px;
}

.fb-widget-comment {
  display: block;
  width: 100%;
  min-height: 80px;
  margin-top: 12px;
  font-family: var(--fb-font);
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

.fb-widget-submit,
.fb-widget-cancel {
  font-family: var(--fb-font);
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
  background: #fff;
}

.fb-widget-submit {
  background: var(--fb-bg);
  color: var(--fb-color);
  border-color: transparent;
}

.fb-widget-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 2147483002;
  font-family: var(--fb-font);
}
