/* Flavour Polls v3 */

.fp-poll {
    max-width: 600px;
    margin: 1.5em 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* Question */
.fp-poll__question {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid #e8f0fe;
    color: #1f2937;
}

/* ── Voting Form ── */
.fp-poll__form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fp-poll__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    user-select: none;
}

.fp-poll__option:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
}

.fp-poll__option input[type="radio"] {
    accent-color: #1a73e8;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.fp-poll__option-text {
    font-size: .95rem;
    line-height: 1.35;
    color: #1f2937;
}

/* Selected state */
.fp-poll__option.fp-selected {
    background: #e8f0fe;
    border-color: #1a73e8;
}

/* Actions */
.fp-poll__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.fp-poll__vote-btn {
    padding: 9px 28px;
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    background: #1a73e8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity .15s;
}

.fp-poll__vote-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.fp-poll__vote-btn:not(:disabled):hover {
    opacity: .85;
}

.fp-poll__results-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: .85rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
}

.fp-poll__results-btn:hover {
    color: #1f2937;
}

/* ── Results ── */
.fp-poll__results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fp-poll__result {}

.fp-poll__result-head {
    display: flex;
    justify-content: space-between;
    font-size: .93rem;
    margin-bottom: 4px;
    color: #1f2937;
}

.fp-poll__pct {
    font-weight: 700;
    color: #1a73e8;
    font-variant-numeric: tabular-nums;
}

.fp-poll__bar-track {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.fp-poll__bar-fill {
    height: 100%;
    background: #1a73e8;
    border-radius: 5px;
    transition: width .6s cubic-bezier(.22,1,.36,1);
}

.fp-poll__total {
    font-size: .85rem;
    color: #6b7280;
    text-align: right;
    margin-top: 4px;
}

/* ── Message ── */
.fp-poll__msg {
    margin-top: 10px;
    font-size: .9rem;
    padding: 8px 12px;
    border-radius: 6px;
}

.fp-poll__msg--ok {
    background: #ecfdf5;
    color: #065f46;
}

.fp-poll__msg--err {
    background: #fef2f2;
    color: #991b1b;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .fp-poll {
        padding: 1rem;
    }
    .fp-poll__question {
        font-size: 1.05rem;
    }
}
