/*ExGrowth Polls public poll and results styles.*/

.exgp-polls {
    --exgp-blue: #2563eb;
    --exgp-teal: #14b8a6;
    --exgp-ink: #0f172a;
    --exgp-muted: #64748b;
    --exgp-line: #e2e8f0;
    --exgp-soft: #f8fafc;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,340px),1fr));
    gap: 22px;
    align-items: start;
}

.exgp-poll {
    box-sizing: border-box;
    background: #fff !important;
    border: 1px solid var(--exgp-line) !important;
    border-radius: 16px !important;
    padding: 26px !important;
    margin: 0 !important;
    box-shadow: 0 8px 28px rgba(15,23,42,.06);
    color: var(--exgp-ink);
    font-family: Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.exgp-poll h3 {
    font-size: clamp(20px,2vw,25px);
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: -.025em;
    color: var(--exgp-ink);
    margin: 0 0 10px;
}

.exgp-poll>p:not(.exgp-already-voted) {
    color: var(--exgp-muted);
    line-height: 1.65;
    margin: 0 0 20px;
}

.exgp-vote-form {
    margin: 20px 0 0;
}

.exgp-poll .exgp-option-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    padding: 13px 15px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s,background .15s,box-shadow .15s;
}

.exgp-poll .exgp-option-choice:hover {
    border-color: #93b4f8;
    background: #f8fbff;
}

.exgp-poll .exgp-option-choice:has(input:checked) {
    border-color: var(--exgp-blue);
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(37,99,235,.08);
}

.exgp-poll .exgp-option-choice input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--exgp-blue);
    flex: 0 0 auto;
}

.exgp-poll .exgp-vote-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 46px;
    margin-top: 7px;
    padding: 12px 18px;
    border: 0;
    border-radius: 9px;
    background: var(--exgp-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s,transform .15s;
}

.exgp-poll .exgp-vote-submit:hover {
    background: #1d4ed8;
}

.exgp-poll .exgp-vote-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.exgp-form-message {
    font-size: 13px;
    color: #b42318;
}

.exgp-already-voted {
    padding: 11px 14px;
    border-radius: 9px;
    background: #ecfdf5;
    color: #047857;
    font-size: 14px;
    font-weight: 600;
}

.exgp-results {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--exgp-line);
}

.exgp-results>strong {
    display: block;
    font-size: 15px;
    color: var(--exgp-ink);
    margin-bottom: 15px;
}

.exgp-chart {
    margin-top: 12px;
}

.exgp-chart-row {
    margin: 15px 0;
}

.exgp-chart-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    font-size: 14px;
    color: #334155;
}

.exgp-chart-label strong {
    white-space: nowrap;
    color: var(--exgp-ink);
    font-size: 13px;
}

.exgp-chart-track {
    height: 9px;
    background: #edf2f7;
    border-radius: 999px;
    overflow: hidden;
}

.exgp-chart-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg,#2563eb,#14b8a6);
    border-radius: 999px;
    transition: width .3s ease;
}

.exgp-donut-layout {
    display: flex;
    align-items: center;
    column-gap: 48px;
    row-gap: 20px;
    flex-wrap: wrap;
}

.exgp-donut {
    width: 190px;
    height: 190px;
    flex: 0 0 190px;
    border-radius: 50%;
    background: var(--exgp-donut-background);
    display: grid;
    place-items: center;
}

.exgp-donut-hole {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #0f172a;
}

.exgp-donut-hole strong {
    font-size: 27px;
    line-height: 1.2;
}

.exgp-donut-hole small {
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
}

.exgp-donut-legend {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.exgp-donut-legend-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #334155;
    margin: 0 !important;
    padding: 0 !important;
}

.exgp-donut-swatch {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    background: var(--exgp-option-color);
    flex: 0 0 11px;
}

.exgp-donut-option {
    flex: 1;
    overflow-wrap: anywhere;
}

.exgp-donut-legend-item strong {
    white-space: nowrap;
    color: #0f172a;
    font-size: 12px;
}

.exgp-donut-legend-item small {
    color: #64748b;
    font-weight: 500;
}

.exgp-admin-results-preview {
    max-width: 960px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 26px;
    margin: 0 0 20px;
}

.exgp-admin-results-preview h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

.exgp-poll [role=status]:empty {
    display: none;
}

@media (max-width:600px) {
    .exgp-poll {
        padding: 20px !important;
        border-radius: 13px !important;
    }

    .exgp-polls {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
