/* Hide Diplodoc's native feedback (both the top-bar 👍/👎 icons and the bottom
   block) — we render our own, wired to /feedback. */
.dc-feedback,
.dc-doc-page__feedback { display: none !important; }

/* Compact 👍/👎 icons injected into the article control strip (near «Режим чтения»). */
.hd-fb-top { display: inline-flex; gap: 2px; align-items: center; }
.dc-controls_vertical .hd-fb-top { flex-direction: column; }
.hd-fb-icon {
  cursor: pointer;
  border: none;
  background: transparent;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 16px;
  line-height: 1;
  opacity: .75;
}
.hd-fb-icon:hover { background: var(--g-color-base-generic, rgba(0,0,0,.06)); opacity: 1; }

/* Bottom feedback card, styled like the native «Была ли статья полезна?» block. */
.hd-fb-card {
  border: 1px solid var(--g-color-line-generic, #e0e0e0);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}
.hd-fb-card__q {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hd-fb-card--done .hd-fb-card__q { margin-bottom: 0; }
.hd-fb-card__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hd-fb-vote {
  cursor: pointer;
  border: 1px solid var(--g-color-line-generic, #d0d3d9);
  background: var(--g-color-base-generic, #f2f3f5);
  color: inherit;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 14px;
  line-height: 20px;
}
.hd-fb-vote:hover { background: var(--g-color-base-generic-hover, #e6e8eb); }

.hd-fb-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .4);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
}
.hd-fb-modal {
  background: #fff !important; color: #1a1a1a !important;
  color-scheme: light;
  width: 420px; max-width: calc(100vw - 32px);
  border-radius: 12px; padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.hd-fb-modal__title { margin: 0 0 16px; font-size: 18px; font-weight: 600; }
.hd-fb-modal__reason { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }
.hd-fb-modal__reason input { color-scheme: light; }
.hd-fb-modal__comment {
  width: 100%; min-height: 96px; margin-top: 12px;
  background: #fff !important; color: #1a1a1a !important;
  color-scheme: light;
  border: 1px solid #d0d3d9 !important; border-radius: 8px; padding: 10px; resize: vertical;
  box-sizing: border-box; font: inherit;
}
.hd-fb-modal__comment::placeholder { color: #7a7f85; opacity: 1; }
.hd-fb-modal__actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.hd-fb-modal__submit {
  cursor: pointer; border: none; border-radius: 8px;
  background: #2f6feb; color: #fff; padding: 8px 20px; font-size: 14px;
}
.hd-fb-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a1a1a; color: #fff; padding: 10px 18px; border-radius: 8px;
  opacity: 0; transition: opacity .2s, transform .2s; z-index: 10001;
}
.hd-fb-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }
