.imp-poll {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.imp-poll *,
.imp-poll *::before,
.imp-poll *::after {
  box-sizing: border-box;
}

.imp-poll--rtl {
  text-align: right;
}

.imp-poll__header h3 {
  margin-bottom: 12px;
  word-break: break-word;
}

.imp-poll__question h4 {
  margin-bottom: 8px;
  word-break: break-word;
}

.imp-poll__answers {
  display: grid;
  gap: 12px;
}

.imp-poll__answer {
  border: 1px solid #dedede;
  border-radius: 6px;
  padding: 12px;
  background: #fafafa;
}

.imp-poll__answer-btn,
.imp-poll__sub-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  background: #1e88e5;
  color: #fff;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
  justify-content: center;
}

.imp-poll__answer-btn--selected,
.imp-poll__sub-btn--selected {
  background: #1565c0;
  box-shadow: inset 0 0 0 2px #0d47a1;
}

.imp-poll__change-btn {
  margin-bottom: 12px;
  padding: 6px 12px;
  border: 1px solid #1e88e5;
  background: #fff;
  color: #1e88e5;
  border-radius: 4px;
  cursor: pointer;
}

.imp-poll__note {
  margin-top: 6px;
  color: #546e7a;
  font-size: 0.9em;
}

.imp-poll__sub-answers {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.imp-poll__results {
  margin-top: 20px;
}

.imp-poll__results-step {
  margin-bottom: 24px;
}

.imp-poll__summary {
  padding-left: 20px;
}

.imp-poll__charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.imp-poll img {
  max-width: 100%;
  height: auto;
  margin-top: 8px;
  border-radius: 4px;
  display: block;
}

@media (max-width: 640px) {
  .imp-poll {
    padding: 16px;
  }

  .imp-poll__answer-btn,
  .imp-poll__sub-btn,
  .imp-poll__change-btn {
    width: 100%;
  }

  .imp-poll__charts {
    grid-template-columns: 1fr;
  }
}
