.ew-komunikat-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 15px;
  margin: 0 0 30px !important;
}

.ew-komunikat-list .ew-komunikat {
  margin: 0 !important;
}

.ew-komunikat {
  --ew-komunikat-bg: #e7f1ff;
  --ew-komunikat-border: #d9dee5;
  --ew-komunikat-text: #174d87;
  display: flex;
  width: 100%;
  min-height: 52px;
  margin: 0 0 30px !important;
  padding: 10px 12px;
  border: 1px solid var(--ew-komunikat-border);
  border-radius: 3px;
  background-color: var(--ew-komunikat-bg);
  color: var(--ew-komunikat-text) !important;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 800;
  text-decoration: none !important;
  transition: box-shadow .18s ease, color .18s ease;
  cursor: default;
}

.ew-komunikat:hover {
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, .055);
}

.ew-komunikat-type-parliamentary {
  --ew-komunikat-bg: #e7f1ff;
  --ew-komunikat-border: #d9dee5;
  --ew-komunikat-text: #174d87;
}

.ew-komunikat-type-presidential {
  --ew-komunikat-bg: #ffe8e8;
  --ew-komunikat-border: #d9dee5;
  --ew-komunikat-text: #8b2525;
}

.ew-komunikat-type-general {
  --ew-komunikat-bg: #f0e9ff;
  --ew-komunikat-border: #d9dee5;
  --ew-komunikat-text: #59338a;
}

.ew-komunikat-type-referendum {
  --ew-komunikat-bg: #fff3c4;
  --ew-komunikat-border: #d9dee5;
  --ew-komunikat-text: #745700;
}

.ew-komunikat-type-custom {
  background-color: var(--ew-komunikat-bg);
  border-color: var(--ew-komunikat-border);
  color: var(--ew-komunikat-text) !important;
}

.ew-komunikat-is-linked {
  cursor: pointer;
}

.ew-komunikat-message {
  display: block;
  min-width: 0;
  flex: 0 1 auto;
  color: inherit !important;
  text-align: center;
  cursor: default;
}

.ew-komunikat-buttons {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ew-komunikat-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
  font-family: "Sofia Sans Condensed", serif;
  line-height: 1;
  font-weight: 700;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, filter .18s ease;
}

.ew-komunikat-button.is-finished {
  border-color: #16833a;
  background-color: #199447;
  color: #fff !important;
}

.ew-komunikat-button.is-finished:hover,
.ew-komunikat-button.is-finished:focus {
  filter: brightness(.96);
}

.ew-komunikat-button.is-ongoing {
  border-color: #a82020;
  background-color: #d32f2f;
  color: #fff !important;
}

.ew-komunikat-button.is-ongoing:hover,
.ew-komunikat-button.is-ongoing:focus {
  filter: brightness(.96);
}

.ew-komunikat-button.is-counting {
  border-color: #b45f06;
  background-color: #ef8b17;
  color: #fff !important;
}

.ew-komunikat-button.is-counting:hover,
.ew-komunikat-button.is-counting:focus {
  filter: brightness(.96);
}

.ew-komunikat-button-custom {
  border-color: var(--ew-komunikat-button-border, #29323d);
  background-color: var(--ew-komunikat-button-bg, #29323d);
  color: var(--ew-komunikat-button-text, #fff) !important;
}

.ew-komunikat-button-custom:hover,
.ew-komunikat-button-custom:focus {
  color: var(--ew-komunikat-button-text, #fff) !important;
  filter: brightness(.9);
}

.ew-komunikat-button:active {
  transform: translateY(1px);
}

@media (max-width: 767px) {
  .ew-komunikat {
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px;
  }

  .ew-komunikat-buttons {
    flex-wrap: wrap;
  }

  .ew-komunikat-button {
    align-self: center;
  }
}

/* Specjalny przycisk NA ŻYWO — wygląd zgodny z Ewybory - Wybory LIVE. */
.ew-komunikat-live-button {
  appearance: none;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 8px 2px 8px;
  border: 1px solid #980c30 !important;
  background: red !important;
  color: #fff !important;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: default;
	border-radius: 4px !important;
}

a.ew-komunikat-live-button {
  cursor: pointer;
}

.ew-komunikat-live-button:hover,
.ew-komunikat-live-button:focus {
  background: red !important;
  color: #fff !important;
  filter: brightness(.96);
}

.ew-komunikat-live-dot {
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff !important;
  animation: ew-komunikat-live-blink 1.2s ease-in-out infinite;
}

@keyframes ew-komunikat-live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .15; }
}

@media (prefers-reduced-motion: reduce) {
  .ew-komunikat-live-dot { animation: none; }
}
