.vote-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
  height: auto;
  min-height: 44px;
  padding: 8px 0.35rem 8px 1rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-size: 0.86rem;
  line-height: 1.2;
  color: var(--ink);
}

.vote-banner[hidden],
html.vote-banner-off .vote-banner {
  display: none !important;
}

.vote-banner p {
  margin: 0;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.vote-banner a {
  color: var(--copper-deep);
  font-weight: 600;
  text-underline-offset: 0.12em;
  white-space: nowrap;
}

.vote-banner-dismiss {
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 44px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--copper);
  display: inline-grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.vote-banner-dismiss span {
  font-size: 1.05rem;
  line-height: 1;
  pointer-events: none;
}

.vote-banner-dismiss:hover,
.vote-banner-dismiss:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 640px) {
  .vote-banner {
    gap: 0.25rem;
    padding: 8px 0.35rem 8px 0.55rem;
    font-size: 12px;
  }

  .vote-banner p {
    white-space: normal;
  }
}
