.wibe-battle-survey-open { overflow: hidden; }
.wibe-battle-survey__open,
.wibe-battle-survey__primary,
.wibe-battle-survey__secondary,
.wibe-battle-survey__filter { border: 0; border-radius: 4px; cursor: pointer; font: inherit; }
.wibe-battle-survey__open { align-self: center; background: #3fa535; color: #fff; font-size: .92rem; font-weight: 700; margin: 14px auto 0; min-height: 38px; padding: 7px 18px; }
.wibe-campaign-card__survey { box-sizing: border-box; margin: 14px 0 28px; width: 100%; }
.wibe-campaign-card__survey .wibe-battle-survey__title { box-sizing: border-box; font-size: 1.05rem; font-weight: 700; line-height: 1.25; margin: 0 0 8px; max-width: none; padding: 0; width: 100%; }
.wibe-campaign-card__survey .wibe-battle-survey__open { display: flex; width: fit-content; }
.wibe-battle-survey__overlay { align-items: center; background: rgba(0,0,0,.62); display: flex; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 100000; }
.wibe-battle-survey__overlay[hidden] { display: none; }
.wibe-battle-survey__dialog { background: #fff; border-radius: 8px; box-shadow: 0 18px 60px rgba(0,0,0,.35); max-height: calc(100vh - 48px); max-width: 720px; overflow-x: hidden; overflow-y: auto; padding: 32px; position: relative; width: 100%; }
.wibe-battle-survey__close { background: transparent; border: 0; cursor: pointer; font-size: 30px; line-height: 1; padding: 8px; position: absolute; right: 8px; top: 6px; }
.wibe-battle-survey__title { margin: 0 42px 18px 0; }
.wibe-battle-survey__question { font-size: 1.08rem; font-weight: 700; }
.wibe-battle-survey__answers { border: 0; display: grid; gap: 8px; grid-template-columns: repeat(5,minmax(0,1fr)); margin: 18px 0; padding: 0; }
.wibe-battle-survey__answer { align-items: center; background: #f1f1f1; border-radius: 5px; cursor: pointer; display: flex; gap: 6px; justify-content: center; min-height: 64px; padding: 8px; text-align: center; }
.wibe-battle-survey__field { display: grid; font-weight: 700; gap: 5px; margin: 12px 0; }
.wibe-battle-survey__field input,
.wibe-battle-survey__field select { border: 1px solid #777; border-radius: 4px; font: inherit; min-height: 44px; padding: 8px 10px; width: 100%; }
.wibe-battle-survey__gender { border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; padding: 0; }
.wibe-battle-survey__gender-label { flex: 0 0 100%; font-weight: 700; margin: 0 0 -3px; }
.wibe-battle-survey__gender-option { align-items: center; background: #f1f1f1; border-radius: 4px; cursor: pointer; display: inline-flex; gap: 7px; min-height: 44px; padding: 7px 12px; }
.wibe-battle-survey__gender-option input { margin: 0; }
.wibe-battle-survey__primary { background: #3fa535; color: #fff; display: inline-flex; font-weight: 700; justify-content: center; margin-top: 12px; padding: 12px 18px; text-decoration: none; }
.wibe-battle-survey__secondary { background: #dfdfdf; color: #111; margin-top: 12px; padding: 12px 18px; }
.wibe-battle-survey__error { color: #b00020; font-weight: 700; }
.wibe-battle-survey__notice { background: #eef7ec; padding: 10px; }
.wibe-battle-survey__filters { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 10px; }
.wibe-battle-survey__filter { background: #dfdfdf; font-size: .82rem; line-height: 1.15; min-height: 34px; padding: 5px 9px; }
.wibe-battle-survey__filter.is-active { background: #222; color: #fff; }
.wibe-battle-survey__chart { border-radius: 5px; display: flex; height: 52px; overflow: hidden; width: 100%; }
.wibe-battle-survey__segment--1 { background: #3fa535; }
.wibe-battle-survey__segment--2 { background: #89c982; }
.wibe-battle-survey__segment--3 { background: #dfdfdf; }
.wibe-battle-survey__segment--4 { background: #ef8b8b; }
.wibe-battle-survey__segment--5 { background: #dc0000; }
.wibe-battle-survey__legend { border: 0; border-collapse: collapse; font-size: .82rem; line-height: 1.25; margin: 0; table-layout: fixed; width: 100%; }
.wibe-battle-survey__legend td,
.wibe-battle-survey__legend th { border: 0; padding: 3px 0; vertical-align: middle; }
.wibe-battle-survey__legend-swatch-cell { width: 38px; }
.wibe-battle-survey__legend-swatch { border-radius: 2px; display: block; height: 9px; width: 30px; }
.wibe-battle-survey__legend-label { font-weight: 400; overflow-wrap: anywhere; padding-right: 8px !important; text-align: left; }
.wibe-battle-survey__legend-count { padding-left: 6px !important; text-align: right; white-space: nowrap; width: 76px; }
.wibe-battle-survey__legend-percent { padding-left: 10px !important; text-align: right; white-space: nowrap; width: 68px; }
.wibe-battle-survey__tolerance { color: #666; font-size: 12px; font-weight: 400; line-height: 1.35; margin: 5px 0 0; position: relative; }
.wibe-battle-survey__tolerance-info { display: inline-block; position: static; }
.wibe-battle-survey__tolerance-trigger { background: transparent; border: 0; color: #555; cursor: help; font: inherit; line-height: 1; margin: 0; padding: 0 2px; }
.wibe-battle-survey__tolerance-tooltip { background: #222; border-radius: 4px; bottom: calc(100% + 7px); box-sizing: border-box; color: #fff; font-size: 12px; left: 50%; line-height: 1.35; max-width: none !important; opacity: 0; padding: 8px 10px; pointer-events: none; position: absolute; right: auto !important; transform: translateX(-50%); visibility: hidden; width: min(360px, calc(100vw - 32px)) !important; z-index: 4; }
.wibe-battle-survey__tolerance-info:hover .wibe-battle-survey__tolerance-tooltip,
.wibe-battle-survey__tolerance-info:focus-within .wibe-battle-survey__tolerance-tooltip { opacity: 1; visibility: visible; }
.wibe-battle-survey__participants { font-size: .86rem; font-weight: 600; margin: 7px 0 4px; }
.wibe-battle-survey__donate-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wibe-battle-survey__sr-only { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
@media (max-width: 760px) {
  .wibe-battle-survey__overlay { padding: 12px; }
  .wibe-battle-survey__dialog { max-height: calc(100vh - 24px); padding: 24px 16px; width: calc(100% - 0px); }
  .wibe-battle-survey__answers { grid-template-columns: 1fr; }
  .wibe-battle-survey__answer { justify-content: flex-start; min-height: 48px; text-align: left; }
  .wibe-battle-survey__gender { display: grid; grid-template-columns: 1fr; }
  .wibe-battle-survey__gender-option { min-height: 44px; }
  .wibe-campaign-card__survey .wibe-battle-survey__open { min-height: 44px; width: 100%; }
  .wibe-battle-survey__filter { min-height: 42px; padding: 5px 8px; }
  .wibe-campaign-card__survey { margin-bottom: 22px; }
  .wibe-battle-survey__legend { font-size: .78rem; }
  .wibe-battle-survey__legend-swatch-cell { width: 29px; }
  .wibe-battle-survey__legend-swatch { height: 8px; width: 23px; }
  .wibe-battle-survey__legend-count { width: 65px; }
  .wibe-battle-survey__legend-percent { padding-left: 6px !important; width: 62px; }
  .wibe-battle-survey__tolerance { font-size: 11px; line-height: 1.35; }
}
