/* The Drawer - Tool feedback widget.
   Loaded on every user-facing tool page after main.css. */

.tool-feedback-host {
  padding: 32px 0 16px;
  border-top: 0.5px solid var(--rule);
  margin-top: 40px;
}

.tf-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.tf-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0.5px solid var(--rule);
  background: transparent;
  color: var(--slate-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
  padding: 0;
}

.tf-circle:hover:not(:disabled) {
  border-color: var(--slate-mid);
  background: var(--off-white);
}

.tf-circle--up.tf-circle--active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}

.tf-circle--down.tf-circle--active {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}

.tf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.tf-icon svg {
  width: 18px;
  height: 18px;
}

@keyframes tf-tap-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.tf-circle--tapped {
  animation: tf-tap-pulse 300ms ease;
}

.tf-circle:disabled {
  cursor: default;
}
