/* Глобальная FAB обратной связи (идея / данные / баг) */

.cabinet-feedback {
  position: fixed;
  z-index: 1080;
  right: 0.85rem;
  bottom: 0.85rem;
  pointer-events: none;
}

.cabinet-feedback > * {
  pointer-events: auto;
}

.cabinet-feedback-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.05rem;
  height: 3.05rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.cabinet-feedback-fab:hover,
.cabinet-feedback-fab.is-open {
  transform: translateY(-2px) scale(1.04);
  background: #1e293b;
  color: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.34);
}

.cabinet-feedback-fab__icon {
  display: block;
  flex-shrink: 0;
}

.cabinet-feedback-fab__tip {
  position: absolute;
  right: calc(100% + 0.55rem);
  top: 50%;
  transform: translateY(-50%);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  transition: opacity 0.12s ease;
}

.cabinet-feedback-fab__tip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  margin-top: -5px;
  border: 5px solid transparent;
  border-left-color: #111827;
}

.cabinet-feedback-fab:hover .cabinet-feedback-fab__tip,
.cabinet-feedback-fab:focus-visible .cabinet-feedback-fab__tip {
  opacity: 1;
}

.cabinet-feedback-fab.is-open .cabinet-feedback-fab__tip {
  opacity: 0;
}

.cabinet-feedback-kinds {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.4rem;
}

.cabinet-feedback-kind {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.45rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.84rem;
  font-weight: 650;
  color: #334155;
  cursor: pointer;
  text-align: center;
  user-select: none;
}

.cabinet-feedback-kind input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cabinet-feedback-kind:has(input:checked),
.cabinet-feedback-kind.is-active {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

@media (max-width: 575.98px) {
  .cabinet-feedback {
    right: 0.65rem;
    bottom: 0.65rem;
  }
  .cabinet-feedback-fab {
    width: 2.85rem;
    height: 2.85rem;
  }
  .cabinet-feedback-fab__tip {
    display: none;
  }
}
