.sx-poll,
.sx-poll-results {
  max-width: 760px;
  margin: 24px auto;
  padding: 22px;
  background: #fff;
  border: 1px solid #e9eaee;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.sx-poll h2,
.sx-poll-results h2 {
  margin: 0 0 10px;
  color: #111;
  font-size: 26px;
  line-height: 1.18;
  font-weight: 800;
}

.sx-poll-description {
  margin: 0 0 18px;
  color: #333;
  font-size: 16px;
  line-height: 1.55;
}

.sx-poll-label,
.sx-candidate-group legend {
  display: block;
  margin: 16px 0 8px;
  color: #111;
  font-size: 15px;
  font-weight: 800;
}

.sx-poll select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #d7d9df;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 16px;
}

.sx-candidate-group {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.sx-candidate-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 12px;
  border: 1px solid #e8e9ee;
  border-radius: 8px;
  background: #f8f9fb;
  color: #111;
  font-size: 16px;
  line-height: 1.35;
}

.sx-candidate-option input,
.sx-poll-consent input {
  flex: 0 0 auto;
}

.sx-poll-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 14px;
  padding: 12px;
  background: #f5f6f8;
  border-left: 4px solid #b00020;
  border-radius: 8px;
  color: #333;
  font-size: 14px;
  line-height: 1.45;
}

.sx-poll-submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: #b00020;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.sx-poll-submit:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.sx-poll-message {
  min-height: 22px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.sx-poll-message-info {
  color: #555;
}

.sx-poll-message-success {
  color: #237a31;
}

.sx-poll-message-error {
  color: #b00020;
}

.sx-result-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.sx-result-row strong {
  color: #111;
}

.sx-result-row span {
  color: #555;
}

.sx-result-party {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.sx-result-row-party {
  border-bottom: 0;
  padding: 0 0 8px;
}

.sx-result-bar {
  height: 9px;
  overflow: hidden;
  background: #eef0f4;
  border-radius: 999px;
}

.sx-result-fill {
  display: block;
  height: 100%;
  background: #b00020;
  border-radius: inherit;
}

.sx-candidate-results {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 3px solid #f0d4da;
}

.sx-candidate-result-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 5px;
  color: #222;
  font-size: 14px;
  line-height: 1.35;
}

.sx-candidate-result-row strong {
  flex: 0 0 auto;
  color: #555;
  font-weight: 800;
}

.sx-result-bar-candidate {
  height: 7px;
}

.sx-result-bar-candidate .sx-result-fill {
  background: #333;
}

.sx-poll-results small {
  display: block;
  margin-top: 10px;
  color: #666;
  line-height: 1.45;
}

.sx-settlement-results {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.sx-settlement-results h3 {
  margin: 0 0 12px;
  color: #111;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
}

.sx-settlement-result {
  margin-top: 12px;
  padding: 12px;
  background: #f8f9fb;
  border: 1px solid #eceef3;
  border-radius: 8px;
}

.sx-settlement-result-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #111;
}

.sx-settlement-result-title span {
  color: #555;
  font-weight: 800;
}

.sx-settlement-breakdown {
  display: grid;
  gap: 12px;
}

.sx-settlement-party strong {
  display: block;
  margin-bottom: 7px;
  color: #222;
}

.sx-settlement-party ul {
  margin: 8px 0 0 18px;
  padding: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.45;
}

.sx-empty-result {
  color: #777;
}

@media (max-width: 768px) {
  .sx-poll,
  .sx-poll-results {
    margin: 16px 0;
    padding: 16px;
    border-radius: 8px;
    box-shadow: none;
  }

  .sx-poll h2,
  .sx-poll-results h2 {
    font-size: 24px;
  }

  .sx-result-row,
  .sx-candidate-result-row {
    flex-direction: column;
    gap: 4px;
  }

  .sx-settlement-result-title {
    flex-direction: column;
    gap: 3px;
  }
}
