.online-poll-iframe {
    display: block;
    width: 100%;
    max-width: 640px;
    min-height: 420px;
    margin: 0 auto 1.5em;
    border: 0;
    background: transparent;
}

.online-poll {
    --poll-accent: #E85A7A;
    max-width: 640px;
    margin: 0 auto 1.5em;
    box-sizing: border-box;
    color: #222;
    font-family: inherit;
}

.online-poll *,
.online-poll *::before,
.online-poll *::after {
    box-sizing: border-box;
}

.online-poll__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
}

.online-poll__icon {
    display: inline-flex;
    color: var(--poll-accent);
    flex-shrink: 0;
    line-height: 0;
}

.online-poll__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
}

.online-poll__teaser {
    text-align: center;
    margin: 0 0 16px;
    color: #555;
}

.online-poll__teaser-lead {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #444;
}

.online-poll__lock {
    display: inline-flex;
    color: #555;
    line-height: 0;
    flex-shrink: 0;
}

.online-poll__teaser-count {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.online-poll__card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 22px 20px 18px;
}

.poll-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.poll-bar-row {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr) 2.8em;
    align-items: center;
    gap: 12px;
}

.poll-bar-label {
    font-size: 13px;
    line-height: 1.35;
    color: #333;
    white-space: normal;
    overflow-wrap: anywhere;
}

.poll-bar-label-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.poll-bar-label-link:hover {
    color: var(--poll-accent);
}

.poll-bar-track {
    height: 12px;
    background: #f1eeec;
    border-radius: 999px;
    overflow: hidden;
}

.poll-bar-fill {
    height: 100%;
    background: var(--poll-accent);
    border-radius: 999px;
    width: 0;
    min-width: 0;
    transition: width 0.7s ease;
}

.poll-bar-fill[data-width]:not([data-width="0"]) {
    min-width: 8px;
}

.poll-bar-pct {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.online-poll__footer {
    display: none;
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: #9a9a9a;
}

.online-poll__results {
    display: none;
}

.online-poll--answered .online-poll__form-card,
.online-poll--answered .online-poll__teaser {
    display: none !important;
}

.online-poll--answered .online-poll__results,
.online-poll--answered .online-poll__footer {
    display: block !important;
}

.online-poll__choices {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.online-poll__choices li {
    margin: 0;
    padding: 0;
    border-bottom: 1px dashed #eee;
}

.online-poll__choices li:last-child {
    border-bottom: none;
}

.online-poll__choices label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 4px;
    min-height: 44px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.06);
    touch-action: manipulation;
}

.online-poll__choices input[type="radio"],
.online-poll__choices input[type="checkbox"] {
    accent-color: var(--poll-accent);
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}

.online-poll[data-question-type="radio"] .online-poll__fallback-submit {
    display: none;
}

.online-poll .submit-button {
    display: inline-block;
    background-color: var(--poll-accent);
    color: #fff;
    border: none;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    margin: 4px 0 0;
}

.online-poll .submit-button:hover {
    filter: brightness(0.92);
}

.online-poll .submit-button:disabled {
    opacity: 0.65;
    cursor: default;
}

.online-poll .chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.online-poll .chart-container canvas {
    width: 100% !important;
    max-width: 320px;
    height: auto !important;
}

.online-poll__share {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 16px;
}

.online-poll__share > summary {
    list-style: none;
}

.online-poll__share > summary::-webkit-details-marker {
    display: none;
}

.online-poll-share__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #333;
    border: 1px solid #e5e2e0;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.online-poll-share__toggle:hover,
.online-poll-share__toggle[aria-expanded="true"] {
    border-color: var(--poll-accent);
    color: var(--poll-accent);
}

.online-poll-share__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 5;
}

.online-poll-share__item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #333;
    text-align: left;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.online-poll-share__item:hover {
    background: #f6f4f3;
    color: var(--poll-accent);
}

.online-poll-share__copied {
    margin: 8px 0 0;
    font-size: 12px;
    color: #888;
}

.online-poll-share__copied[hidden] {
    display: none !important;
}

@media (max-width: 560px) {
    .poll-bar-row {
        grid-template-columns: minmax(0, 34%) minmax(0, 1fr) 2.6em;
        gap: 8px;
    }

    .poll-bar-label {
        font-size: 12px;
    }

    .online-poll__card {
        padding: 18px 14px 14px;
    }
}
