.kosher-polls-plugin {
  all: initial;
  --poll-accent: #7a147a;
  --poll-accent-soft: rgba(122, 20, 122, 0.12);
  --poll-ink: #241d20;
  --poll-muted: #6d6568;
  --poll-cream: #faf6ef;
  --poll-line: rgba(36, 29, 32, 0.08);
  box-sizing: border-box;
  isolation: isolate;
  contain: layout style;
  display: block;
  color: #241d20;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.kosher-polls-plugin *,
.kosher-polls-plugin *::before,
.kosher-polls-plugin *::after {
  box-sizing: inherit;
}

.kosher-polls-plugin :where(a, button, input, label, span, strong, p, h2, h3, div, form, article) {
  font-family: inherit;
}

.kosher-polls-plugin :where(button, input) {
  appearance: none;
}

.kosher-polls-plugin :where(button, a, label) {
  -webkit-tap-highlight-color: transparent;
}

.kosher-polls {
  margin: 72px 0;
}

.kosher-polls-plugin__container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  gap: 28px;
}

.kosher-polls__heading {
  display: grid;
  gap: 10px;
  max-width: 680px;
}

.kosher-polls__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--poll-accent-soft);
  color: var(--poll-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kosher-polls__title {
  margin: 0 0 32px;
  color: #07171d;
  font-weight: 600;
  font-size: 32px;
  line-height: 44px;
  letter-spacing: -0.02em;
}

.kosher-polls__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.kosher-poll-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.kosher-poll-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.kosher-poll-card__surface {
  display: grid;
  gap: 22px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--poll-line);
  border-radius: 6px;
}

.kosher-poll-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.kosher-poll-card__intro,
.kosher-poll-card__summary {
  display: grid;
  gap: 10px;
}

.kosher-poll-card__title {
  margin: 0;
  color: var(--poll-ink);
  font-size: 1.5rem;
  line-height: 1.15;
}

.kosher-poll-card__notification {
  margin: 2px 0 0;
  color: #7c7771;
  font-size: 0.96rem;
  line-height: 1.4;
}

.kosher-poll-card__description {
  margin: 0;
  color: var(--poll-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.kosher-poll-card__context-link {
  display: inline-grid;
  gap: 4px;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid rgba(122, 20, 122, 0.16);
  border-radius: 16px;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.kosher-poll-card__context-link span {
  color: var(--poll-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kosher-poll-card__summary {
  min-width: 118px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(36, 29, 32, 0.05);
}

.kosher-poll-card__summary-value {
  color: var(--poll-ink);
  font-size: 1.5rem;
  line-height: 1;
}

.kosher-poll-card__summary-label,
.kosher-poll-card__summary-note {
  color: var(--poll-muted);
}

.kosher-poll-card__summary-note {
  font-size: 0.82rem;
  line-height: 1.5;
}

.kosher-poll-card__empty {
  padding: 18px 20px;
  border: 1px dashed rgba(122, 20, 122, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.kosher-poll-card__empty p {
  margin: 0;
  color: var(--poll-muted);
}

.kosher-poll-card__cta,
.kosher-poll-card__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #7a147a, #c248b0);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 16px 32px rgba(122, 20, 122, 0.24);
}

.kosher-poll-card__cta:hover,
.kosher-poll-card__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(122, 20, 122, 0.28);
}

.kosher-poll-card__submit[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.kosher-poll-card__submit.is-loading span::after {
  content: "...";
}

.kosher-poll-card__form,
.kosher-poll-card__options {
  display: grid;
  gap: 16px;
}

.kosher-poll-option {
  display: grid;
  gap: 14px;
  padding: 24px 22px;
  border: 1px solid rgba(36, 29, 32, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.kosher-poll-option:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 20, 122, 0.28);
  box-shadow: 0 14px 26px rgba(36, 29, 32, 0.08);
}

.kosher-poll-option.is-selected {
  border-color: rgba(122, 20, 122, 0.34);
  background: rgba(122, 20, 122, 0.03);
  box-shadow: none;
}

.kosher-poll-card.has-voted .kosher-poll-option.is-selected {
  border-color: rgba(122, 20, 122, 0.58);
  background:
    linear-gradient(180deg, rgba(122, 20, 122, 0.08), rgba(122, 20, 122, 0.02)),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(122, 20, 122, 0.12);
}

.kosher-poll-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kosher-poll-option__head,
.kosher-poll-option__meta,
.kosher-poll-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kosher-poll-option__copy {
  display: grid;
  gap: 6px;
}

.kosher-poll-option__label-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.kosher-poll-option__icon {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 2px solid #bfbcc0;
  border-radius: 50%;
}

.kosher-poll-option__icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease;
}

.kosher-poll-option.is-selected .kosher-poll-option__icon {
  border-color: var(--poll-accent);
}

.kosher-poll-option.is-selected .kosher-poll-option__icon::after {
  background: var(--poll-accent);
}

.kosher-poll-option__label {
  color: var(--poll-ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.kosher-poll-option__description {
  color: var(--poll-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.kosher-poll-option__status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(122, 20, 122, 0.12);
  color: var(--poll-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.kosher-poll-option__status[hidden] {
  display: none;
}

.kosher-poll-option__percent {
  color: var(--poll-ink);
  font-size: 0.96rem;
  font-weight: 500;
}

.kosher-poll-option__vote-label {
  color: #4e494d;
  font-size: 0.96rem;
  font-weight: 600;
}

.kosher-poll-option__bar {
  position: relative;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e3e0;
}

.kosher-poll-option__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 0;
  background: linear-gradient(90deg, #7a147a, #8f2f98);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.kosher-poll-option__meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.kosher-poll-option__avatars {
  display: flex;
  align-items: center;
  min-width: 0;
}

.kosher-poll-option__avatars img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.kosher-poll-option__avatars img {
  margin-left: -8px;
  border: 2px solid #fff;
}

.kosher-poll-option__avatars img:first-child {
  margin-left: 0;
}

.kosher-poll-card__footer {
  justify-content: flex-start;
}

.kosher-poll-card__submit {
  min-width: 172px;
}

.kosher-poll-card--empty .kosher-poll-card__surface {
  padding: 30px;
  text-align: center;
}

@media (max-width: 900px) {
  .kosher-poll-card__header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .kosher-polls {
    margin: 56px 0;
  }

  .kosher-poll-card__surface {
    padding: 20px;
    border-radius: 24px;
  }

  .kosher-poll-option {
    padding: 18px 16px;
  }

  .kosher-poll-option__head,
  .kosher-poll-option__meta,
  .kosher-poll-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .kosher-poll-option__meta-left {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kosher-poll-card,
  .kosher-poll-card__submit,
  .kosher-poll-option,
  .kosher-poll-option__bar span {
    transition: none;
  }
}
