/* BNCO Labs feedback panel — Dear Offsprings tokens aligned with /do.css */

.bnco-fb-tab,
.bnco-fb-fab,
.bnco-fb-panel,
.bnco-fb-backdrop {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bnco-fb-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9000;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 14px 10px;
  border: none;
  border-radius: 8px 0 0 8px;
  background: rgb(0, 100, 230);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
}

.bnco-fb-tab:hover {
  background: rgb(0, 85, 200);
}

.bnco-fb-tab[aria-expanded="true"] {
  background: rgb(0, 70, 170);
}

.bnco-fb-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 9000;
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  border-radius: 50%;
  background: rgb(0, 100, 230);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.bnco-fb-fab:hover {
  background: rgb(0, 85, 200);
}

.bnco-fb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8998;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.bnco-fb-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.bnco-fb-panel {
  position: fixed;
  z-index: 8999;
  background: #fff;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}

.bnco-fb-panel--side {
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100%;
  max-height: 100dvh;
  transform: translateX(100%);
}

.bnco-fb-panel--sheet {
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(85dvh, 640px);
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
}

.bnco-fb-panel.is-open.bnco-fb-panel--side {
  transform: translateX(0);
}

.bnco-fb-panel.is-open.bnco-fb-panel--sheet {
  transform: translateY(0);
}

.bnco-fb-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bnco-fb-panel__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.bnco-fb-panel__close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  color: #666;
}

.bnco-fb-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 24px;
}

.bnco-fb-ribbon {
  font-size: 12px;
  color: #555;
  background: #f4f6f8;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.bnco-fb-ribbon strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(0, 100, 230);
  margin-bottom: 4px;
}

.bnco-fb-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.bnco-fb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.bnco-fb-chip {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  cursor: pointer;
  color: #333;
}

.bnco-fb-chip.is-selected {
  border-color: rgb(0, 100, 230);
  background: rgba(0, 100, 230, 0.1);
  color: rgb(0, 70, 170);
  font-weight: 600;
}

.bnco-fb-field {
  margin-bottom: 14px;
}

.bnco-fb-field select,
.bnco-fb-field input,
.bnco-fb-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
}

.bnco-fb-field textarea {
  min-height: 120px;
  resize: vertical;
}

.bnco-fb-field select:focus,
.bnco-fb-field input:focus,
.bnco-fb-field textarea:focus {
  outline: none;
  border-color: rgb(0, 100, 230);
  box-shadow: 0 0 0 2px rgba(0, 100, 230, 0.15);
}

.bnco-fb-module-wrap {
  display: none;
  margin-bottom: 14px;
}

.bnco-fb-module-wrap.is-visible {
  display: block;
}

.bnco-fb-submit {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: rgb(0, 100, 230);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.bnco-fb-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bnco-fb-msg {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.bnco-fb-msg--ok {
  color: #166534;
}

.bnco-fb-msg--err {
  color: #b91c1c;
}

.bnco-fb-success {
  text-align: center;
  padding: 24px 8px;
}

.bnco-fb-success h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.bnco-fb-ref {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #555;
  word-break: break-all;
}

@media (max-width: 899px) {
  .bnco-fb-tab {
    display: none;
  }

  .bnco-fb-fab {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bnco-fb-panel--side {
    display: none;
  }
}

@media (min-width: 900px) {
  .bnco-fb-fab {
    display: none !important;
  }
}

@media (max-width: 899px) {
  .bnco-fb-panel--sheet {
    display: flex;
  }
}

@media (min-width: 900px) {
  .bnco-fb-panel--side {
    display: flex;
  }
}

@media print {
  .bnco-fb-tab,
  .bnco-fb-fab,
  .bnco-fb-panel,
  .bnco-fb-backdrop {
    display: none !important;
  }
}
