/* Offline copy helpers: toast + readable signatories list */
#offline-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100000;
  max-width: min(92vw, 560px);
  padding: 12px 18px;
  border-radius: 8px;
  background: rgba(24, 30, 46, 0.95);
  color: #fff;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  text-align: center;
}

#offline-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

a[data-offline] {
  cursor: pointer;
}

.signers_badge {
  display: inline-block;
  min-width: 20px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 10px;
  background: #2f3f60;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
  font-style: normal;
}

.signers_meta {
  margin-top: 6px;
  color: #445;
  font-size: 15px;
  font-style: normal;
}

.signers_notice {
  margin-top: 3px;
  font-size: 13px;
  font-style: normal;
}

.signers_toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.signers_search_label {
  position: relative;
  display: block;
  flex: 1 1 320px;
  max-width: 430px;
  margin: 0;
}

.signers_search_label .fa-search {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a93a3;
  font-size: 14px;
  pointer-events: none;
}

.signers_search {
  width: 100%;
  height: 42px;
  padding: 8px 14px 8px 36px;
  border: 1px solid #cfd4dc;
  border-radius: 4px;
  background: #fff;
  color: #222;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.signers_search:focus {
  border-color: #2f3f60;
  box-shadow: 0 0 0 2px rgba(47, 63, 96, 0.12);
}

.signers_found {
  color: #666;
  font-size: 14px;
}

.signers_scroll {
  max-height: 72vh;
  margin-top: 14px;
  overflow-y: auto;
  border: 1px solid #e1e4ea;
  border-radius: 6px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.signers_table {
  padding-top: 0;
  font-size: 1rem;
}

.signers_table .signers_header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f4f6f9;
  box-shadow: 0 1px 0 #dde1e8;
}

.signers_table .signers_header .table_cell {
  padding: 11px 12px;
  border-bottom: 1px solid #dde1e8;
  color: #2f3f60;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.signers_table .signers_row .table_cell {
  padding: 9px 12px;
}

.signers_table .signers_row:nth-child(even) {
  background: #fafbfc;
}

.signers_table .signers_row:hover {
  background: #f0f3f8;
}

.signers_table .table_cell.number {
  color: #7b8494;
  font-size: 14px;
}

.signers_table .table_cell.name {
  font-size: 15px;
  word-break: break-word;
}

.signers_table .table_cell.date {
  white-space: nowrap;
}

.signers_empty {
  display: none;
  padding: 28px 18px;
  color: #666;
  text-align: center;
  font-size: 15px;
}

.signers_empty.visible {
  display: block;
}

@media (max-width: 767px) {
  .signers_scroll {
    max-height: 62vh;
  }

  .signers_toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .signers_search_label {
    max-width: none;
  }

  .signers_table .table_cell.date {
    font-size: 12px;
    white-space: normal;
  }
}

.signers_offline_note {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid #2f3f60;
  background: #f6f8fb;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.sign_petition_block {
  margin-top: 25px;
  margin-bottom: 16px;
  text-align: center;
}

.btn-sign-petition {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 15px 18px;
  border: 1px solid #ffcc00;
  border-radius: 23px;
  background: #ffcc00;
  color: #2f3f60;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn-sign-petition:hover {
  background: #ffcc00;
  border-color: #ffcc00;
  opacity: 0.8;
}

.btn-sign-petition:active {
  transform: translateY(1px);
}

@media (max-width: 766px) {
  .petition_votes_wijet.mobile-votes-widget {
    margin: 0 0 1.875rem;
    padding: 1.5rem 1.25rem;
  }
}
