.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: 700;
  text-decoration: none !important;
  transition: box-shadow .18s ease, color .18s ease;
}

.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;
}

.ew-komunikat-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: .03em;
  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 {
  border-color: #106c31;
  background-color: #137d3a;
  color: #fff !important;
}

.ew-komunikat-button.is-ongoing {
  border-color: #c79a00;
  background-color: #f2c94c;
  color: #332700 !important;
}

.ew-komunikat-button.is-ongoing:hover,
.ew-komunikat-button.is-ongoing:focus {
  border-color: #a77f00;
  background-color: #dfb62e;
  color: #261d00 !important;
}

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

.ew-komunikat-button.is-counting:hover,
.ew-komunikat-button.is-counting:focus {
  border-color: #92212a;
  background-color: #bd2d37;
  color: #fff !important;
}

.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-button {
    align-self: center;
  }
}
