#vaali-counter * {
  box-sizing: border-box;
}

#vaali-counter .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
}

@media screen and (min-width: 768px) {
  #vaali-counter .container {
    padding: 24px;
  }
}

#vaali-counter .widget {
  max-width: 600px;
  margin: 0 auto;
}

#vaali-counter .counter {
  background: #f8f9fa;
  padding: 16px;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  min-height: 75px;
}

#vaali-counter .counter.hidden {
  display: none;
}

#vaali-counter .counterTitle {
  color: #000000;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

#vaali-counter .counterText {
  color: #000000;
  font-family: Yle, "Yle Black", "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

#vaali-counter .logo {
  margin: 0 auto;
  max-width: 343px;
  width: 100%;
}

#vaali-counter .logo .wrapper {
  padding-bottom: 58.63%;
  height: 0;
}

#vaali-counter .title {
  color: #1a2b4a;
  font-family: Yle, "Yle Black", "Open Sans", sans-serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  margin-top: 0;
  text-align: center;
}

@media screen and (min-width: 768px) {
  #vaali-counter .title {
    font-size: 48px;
  }
}

#vaali-counter .description {
  color: #000000;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 16px;
  margin-top: 0;
}

#vaali-counter .description.moreSpace {
  margin-bottom: 24px;
}

#vaali-counter .description a {
  color: #000000;
  text-underline-position: under;
  text-decoration: underline;
}

#vaali-counter .description a:hover {
  background: #e8e9eb;
}

#vaali-counter .footer {
  align-items: center;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

#vaali-counter .miscLinks {
  margin-top: 16px;
}

#vaali-counter .footer .imgWrap {
  height: 65px;
  width: 300px;
}

@media screen and (min-width: 768px) {
  #vaali-counter .footer .imgWrap {
    height: 75px;
    width: 343px;
  }
}

#vaali-counter .footer .imgWrap img {
  height: 100%;
  width: 100%;
}

@media screen and (min-width: 768px) {
  #vaali-counter .footer {
    padding: 24px;
  }
  #vaali-counter .miscLinks {
    margin-top: 24px;
  }
}

#vaali-counter .miscLinks a {
  color: #131415;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

/* vaaliteltta live */

#vaali-counter .textFilter {
  background-color: #f1f2f4;
  background-image: url(../img/find.svg);
  background-repeat: no-repeat;
  background-position: 20px 12px;
  background-size: 24px 24px;
  border-radius: 400px;
  display: flex;
  margin: 24px auto 0 auto;
  padding: 12px 60px 12px 60px;
  outline: none;
  max-width: 343px;
  position: relative;
  width: 100%;
}
#vaali-counter .textFilter:focus-within {
  background-color: #ffffff;
  box-shadow: 0 0 0 2px #131415;
}
#vaali-counter .textFilter input {
  background: transparent;
  border: none;
  color: #131415;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding: 0;
  margin: 0;
  width: 100%;
}
#vaali-counter .textFilter input:focus {
  outline: none;
}
#vaali-counter .toggle {
  background-color: transparent;
  background-image: url(../img/chevron.svg);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 24px 24px;
  cursor: pointer;
  display: block;
  outline: 0;
  border: none;
  padding: 0;
  margin: 0;
  width: 24px;
  height: 24px;
  position: absolute;
  transform: rotate(180deg);
  right: 20px;
  top: 12px;
}
#vaali-counter .closed .toggle {
  transform: rotate(0deg);
}
#vaali-counter .button {
  background-color: unset;
  border: 2px solid #131415;
  color: #131415;
  border-radius: 500px;
  display: inline-flex;
  align-self: center;
  align-items: center;
  height: 32px;
  padding: 0 20px;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none !important;
}
#vaali-counter .listWrapper {
  margin: 0 auto 24px auto;
  position: relative;
  width: 100%;
  max-width: 343px;
}
#vaali-counter .listBox {
  border-radius: 8px;
  box-shadow: rgb(0 0 0 / 15%) 0px 2px 4px 0px;
  background: #f8f9fa;
  position: absolute;
  padding: 8px 0;
  width: 100%;
  top: 12px;
}
#vaali-counter .closed .listBox {
  display: none;
}
#vaali-counter .listBox::after {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #f8f9fa;
  position: absolute;
  content: "";
  height: 0;
  width: 0;
  top: -10px;
  left: 50%;
  transform: translateX(-10px);
}
#vaali-counter .list {
  max-height: 400px;
  margin: 0;
  padding: 0;
  list-style-type: none;
  overflow-y: scroll;
  width: 100%;
}
#vaali-counter .listTitle span {
  font-size: 12px;
  font-family: "Open Sans", sans-serif;
  line-height: 18px;
  color: #131415;
  display: block;
  padding: 8px 16px;
  font-weight: 700;
}
#vaali-counter .listItem a {
  font-family: "Open Sans", sans-serif;
  text-decoration: none;
  color: #131415;
  font-size: 16px;
  line-height: 24px;
  display: block;
  padding: 8px 16px;
}
#vaali-counter .listItem a:hover {
  background-color: rgba(0, 0, 0, 0.09);
}
#vaali-counter .listItem a:focus {
  outline: none;
  border: 2px solid #131415;
  padding: 6px 14px;
}
