.ks-poll-wrapper,
.ks-poll-root {
  --ks-poll-accent: #ffd21f;
  --ks-poll-button-bg: #ffd21f;
  --ks-poll-button-text: #222;
  --ks-poll-name-bg: #fff3c4;
  --ks-poll-option-bg: #fff;
  --ks-poll-border: #ddd;
  --ks-poll-text: #222;
  --ks-poll-vote-text: #222;
  --ks-poll-result-bar: #ffd21f;
  --ks-poll-radius: 4px;
  --ks-poll-image-size: 44px;
  background: #fff;
  color: var(--ks-poll-text);
  margin: 16px 0;
  max-width: 100%;
}

.ks-poll-wrapper *,
.ks-poll-root * {
  box-sizing: border-box;
}

.ks-poll-head {
  margin: 0 0 8px;
  padding: 0;
}

.ks-poll-title {
  color: var(--ks-poll-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 4px;
}

.ks-poll-period,
.ks-poll-description,
.ks-poll-total,
.ks-poll-message {
  color: #666;
  font-size: 12px;
  line-height: 1.45;
}

.ks-poll-total {
  font-weight: 700;
  margin: 0 0 8px;
}

.ks-poll-message {
  color: #0f766e;
  font-weight: 700;
  margin: 0 0 8px;
}

.ks-poll-options {
  border: 1px solid var(--ks-poll-border);
  border-bottom: 0;
  border-radius: var(--ks-poll-radius);
  overflow: hidden;
}

.ks-poll-option {
  align-items: center;
  background: var(--ks-poll-option-bg);
  border-bottom: 1px solid var(--ks-poll-border);
  display: flex;
  gap: 7px;
  min-width: 0;
  padding: 6px;
  width: 100%;
}

.ks-poll-rank {
  display: none;
}

.ks-poll-show-rank .ks-poll-rank {
  align-items: center;
  color: #666;
  display: inline-flex;
  flex: 0 0 22px;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
}

.ks-poll-option-image-wrap,
.ks-poll-image {
  background: #f8fafc;
  border: 1px solid var(--ks-poll-border);
  border-radius: var(--ks-poll-radius);
  flex: 0 0 var(--ks-poll-image-size);
  height: var(--ks-poll-image-size);
  overflow: hidden;
  width: var(--ks-poll-image-size);
}

.ks-poll-option-image-wrap img,
.ks-poll-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ks-poll-option-main,
.ks-poll-main {
  align-self: stretch;
  background: var(--ks-poll-name-bg);
  border-radius: var(--ks-poll-radius);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 5px 8px;
}

.ks-poll-option-name,
.ks-poll-label {
  color: var(--ks-poll-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ks-poll-label a {
  color: inherit;
  text-decoration: none;
}

.ks-poll-label a:hover {
  text-decoration: underline;
}

.ks-poll-option-description {
  color: #666;
  font-size: 11px;
  line-height: 1.3;
  margin-top: 2px;
}

.ks-poll-option-votes,
.ks-poll-votes {
  color: var(--ks-poll-vote-text);
  flex: 0 0 auto;
  min-width: 48px;
  text-align: right;
  white-space: nowrap;
}

.ks-poll-option-votes strong,
.ks-poll-votes strong,
.ks-poll-votes span:first-child {
  font-size: 14px;
  font-weight: 900;
}

.ks-poll-option-votes span,
.ks-poll-votes small {
  color: #666;
  font-size: 11px;
  font-weight: 700;
  margin-left: 1px;
}

.ks-poll-vote-button {
  appearance: none;
  background: var(--ks-poll-button-bg);
  border: 1px solid var(--ks-poll-accent);
  border-radius: 999px;
  color: var(--ks-poll-button-text);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  min-height: 34px;
  min-width: 54px;
  padding: 7px 10px;
  white-space: nowrap;
}

.ks-poll-vote-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.ks-poll-result {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 4px;
}

.ks-poll-bar {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}

.ks-poll-bar span {
  background: var(--ks-poll-result-bar);
  display: block;
  height: 100%;
  transition: width 0.25s ease;
}

.ks-poll-percent {
  color: #777;
  font-size: 10px;
  font-weight: 700;
}

.ks-poll-preview-note {
  color: #666;
  font-size: 12px;
  margin: 8px 0 0;
}

@media (max-width: 430px) {
  .ks-poll-wrapper,
  .ks-poll-root {
    margin: 12px 0;
  }

  .ks-poll-option {
    gap: 5px;
    padding: 5px;
  }

  .ks-poll-option-image-wrap,
  .ks-poll-image {
    flex-basis: 40px;
    height: 40px;
    width: 40px;
  }

  .ks-poll-option-main,
  .ks-poll-main {
    padding: 4px 6px;
  }

  .ks-poll-option-name,
  .ks-poll-label {
    font-size: 13px;
  }

  .ks-poll-option-votes,
  .ks-poll-votes {
    min-width: 42px;
  }

  .ks-poll-option-votes strong,
  .ks-poll-votes strong,
  .ks-poll-votes span:first-child {
    font-size: 13px;
  }

  .ks-poll-vote-button {
    font-size: 12px;
    min-height: 31px;
    min-width: 48px;
    padding: 6px 8px;
  }
}
