/* Activist Blog Polls — front-end styles */

.abp-poll {
	max-width: 480px;
	margin: 24px 0;
	padding: 20px 24px;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	background: #fff;
}

.abp-poll-question {
	margin: 0 0 16px;
	font-size: 1.1rem;
}

.abp-poll-buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.abp-vote-btn {
	flex: 1;
	min-width: 120px;
	padding: 12px 16px;
	border: 2px solid #E4002B;
	background: #fff;
	color: #E4002B;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.abp-vote-btn:hover {
	background: #E4002B;
	color: #fff;
}

.abp-vote-count-preview {
	flex-basis: 100%;
	margin: 4px 0 0;
	font-size: 0.78rem;
	color: #888;
	text-align: center;
}

.abp-preview-count {
	font-weight: 700;
	color: #006A4E;
}

.abp-poll-results {
	display: block;
}

.abp-result-row {
	margin-bottom: 12px;
}

.abp-result-label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 4px;
	color: #333;
}

.abp-bar-track {
	background: #f0f0f0;
	border-radius: 6px;
	height: 12px;
	overflow: hidden;
}

.abp-bar-fill {
	height: 100%;
	border-radius: 6px;
	transition: width 0.4s ease;
}

.abp-bar-a {
	background: #E4002B;
}

.abp-bar-b {
	background: #999;
}

.abp-total-votes {
	font-size: 0.85rem;
	color: #666;
	margin: 12px 0 8px;
}

.abp-your-vote {
	color: #E4002B;
}

.abp-change-vote-link {
	background: none;
	border: none;
	color: #E4002B;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

.abp-closed-note {
	font-size: 0.85rem;
	color: #999;
	font-style: italic;
	margin: 8px 0 0;
}

@media (max-width: 480px) {
	.abp-poll-buttons {
		flex-direction: column;
	}
	.abp-vote-btn {
		width: 100%;
	}
}

/* Compact mode — used by [recent_polls] in sidebars */

.abp-recent-polls {
	max-width: 100%;
}

.abp-recent-polls-heading {
	margin: 0 0 14px;
	font-size: 1.1rem;
}

.abp-poll.abp-compact {
	max-width: 100%;
	padding: 14px 16px;
	margin: 0 0 14px;
}

.abp-poll.abp-compact .abp-poll-question {
	font-size: 0.95rem;
	margin-bottom: 10px;
}

.abp-poll.abp-compact .abp-vote-btn {
	padding: 8px 10px;
	font-size: 0.85rem;
	min-width: 0;
}

.abp-poll.abp-compact .abp-result-label {
	font-size: 0.8rem;
}

.abp-poll.abp-compact .abp-bar-track {
	height: 8px;
}

.abp-poll.abp-compact .abp-total-votes {
	font-size: 0.75rem;
	margin: 8px 0 4px;
}

.abp-poll.abp-compact .abp-change-vote-link {
	font-size: 0.75rem;
}

.abp-poll.abp-compact .abp-vote-count-preview {
	font-size: 0.7rem;
}
