/* Barrier Client Portal — feedback widget styling (Phase 9.3)
 * Matches the BC navy / orange / Carbon palette already in portal.css.
 */

.bc-fb-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-sans, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent, #0f62fe);
  border: 1px solid var(--accent, #0f62fe);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 17, 65, 0.18);
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.bc-fb-launcher:hover,
.bc-fb-launcher:focus {
  background: var(--accent-hover, #0043ce);
  border-color: var(--accent-hover, #0043ce);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 17, 65, 0.22);
  outline: none;
}
.bc-fb-launcher:focus-visible {
  outline: 3px solid #F2A900;
  outline-offset: 2px;
}
.bc-fb-launcher-ico { font-size: 16px; line-height: 1; }
.bc-fb-launcher-lbl { line-height: 1; }
@media (max-width: 540px) {
  .bc-fb-launcher { padding: 12px; }
  .bc-fb-launcher-lbl { display: none; }
}

.bc-fb-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(22, 22, 22, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bc-fb-panel {
  background: #fff;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 24px 56px rgba(0, 17, 65, 0.35);
  padding: 24px 24px 20px;
  color: var(--text-primary, #161616);
}
.bc-fb-hdr {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 8px;
}
.bc-fb-title { font-size: 22px; margin: 0; font-family: var(--font-display, "Inter Tight", sans-serif); }
.bc-fb-close {
  background: transparent; border: 0; cursor: pointer; font-size: 28px;
  line-height: 1; color: var(--text-muted, #6f6f6f); padding: 0 4px;
}
.bc-fb-close:hover, .bc-fb-close:focus { color: var(--text-primary, #161616); outline: none; }
.bc-fb-close:focus-visible { outline: 2px solid var(--accent, #0f62fe); }
.bc-fb-sub { font-size: 14px; color: var(--text-secondary, #525252); margin: 0 0 16px; }

.bc-fb-form { display: flex; flex-direction: column; gap: 14px; }
.bc-fb-row { display: flex; flex-direction: column; gap: 4px; }
.bc-fb-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #525252);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bc-fb-form select,
.bc-fb-form textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--rule, #e0e0e0);
  border-radius: 4px;
  background: #fff;
  color: var(--text-primary, #161616);
}
.bc-fb-form textarea { resize: vertical; min-height: 120px; }
.bc-fb-form select:focus,
.bc-fb-form textarea:focus {
  border-color: var(--accent, #0f62fe);
  outline: 2px solid rgba(15, 98, 254, 0.25);
  outline-offset: 0;
}
.bc-fb-counter-row { display:flex; justify-content: flex-end; }
.bc-fb-counter {
  font-size: 11px;
  color: var(--text-muted, #6f6f6f);
  font-variant-numeric: tabular-nums;
}
.bc-fb-shot-row {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-primary, #161616); cursor: pointer;
}
.bc-fb-shot-row input { transform: translateY(1px); }
.bc-fb-shot-preview { margin-top: 8px; }
.bc-fb-thumb {
  max-width: 100%;
  max-height: 200px;
  border: 1px solid var(--rule, #e0e0e0);
  border-radius: 4px;
  display: block;
}
.bc-fb-status {
  font-size: 13px;
  color: var(--text-secondary, #525252);
  min-height: 18px;
}
.bc-fb-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--rule, #e0e0e0);
}
.bc-fb-submit { min-width: 140px; }
.bc-fb-success { text-align: center; padding: 16px 0 8px; }
.bc-fb-success-h {
  font-size: 18px;
  margin: 0 0 8px;
  color: #0e6027;
  font-family: var(--font-display, "Inter Tight", sans-serif);
}
.bc-fb-success-p {
  font-size: 13px;
  color: var(--text-secondary, #525252);
  margin: 0 0 16px;
}
