/* WP-Polls results display */
.wp-poll {
    margin: 1.5rem auto;
    max-width: 80%;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.wp-poll-question {
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #630031;
}

.wp-poll-answers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wp-poll-answer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wp-poll-answer-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.wp-poll-answer-text {
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
}

.wp-poll-bar-container {
    position: relative;
    background: #e0e0e0;
    border-radius: 4px;
    height: 24px;
    overflow: hidden;
}

.wp-poll-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #630031;
    border-radius: 4px;
    min-width: 2px;
    transition: width 0.3s ease;
}


.wp-poll-stats {
    font-size: 0.95rem;
    color: #333;
}

.wp-poll-total {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.95rem;
    color: #333;
    font-style: italic;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .wp-poll {
        margin: 1rem auto;
        max-width: 100%;
        padding: 0.875rem 1rem;
    }
    
    .wp-poll-question {
        font-size: 1rem;
    }
    
    .wp-poll-stats {
        font-size: 0.75rem;
    }
}

/* --- Reader voting (active polls) --- */
.wp-poll-vote-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wp-poll-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
}

.wp-poll-option:hover {
    border-color: #630031;
    background: #faf5f7;
}

.wp-poll-option input[type="radio"] {
    accent-color: #630031;
}

.wp-poll-vote-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.wp-poll-vote-btn {
    background: #630031;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 1.4rem;
    cursor: pointer;
}

.wp-poll-vote-btn:hover { background: #4a0025; }
.wp-poll-vote-btn:disabled { opacity: 0.6; cursor: default; }

.wp-poll-results-link {
    background: none;
    border: none;
    color: #630031;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
}

.wp-poll-msg {
    color: #b32d2e;
    font-size: 0.85rem;
}
