/**
 * Boombox Polls – Estilos (variáveis em Configurações)
 */
.bb-poll {
	--bb-poll-header: #e67e22;
	--bb-poll-header-hover: #d35400;
	--bb-poll-question: #333;
	--bb-poll-question-hover: #111;
	--bb-poll-bg: #f8f9fa;
	--bb-poll-submit: #e67e22;
	--bb-poll-submit-hover: #d35400;
	--bb-poll-option-text: #333;
	--bb-poll-option-hover: #111;
	--bb-poll-bar: #e67e22;
	margin-bottom: 1.5rem;
}

/* Largura maior quando enquete está na barra lateral do single */
.single #secondary .widget_bb_poll .bb-poll,
.single .col-sidebar .widget_bb_poll .bb-poll {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.bb-poll-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.bb-poll-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: var(--bb-poll-header, #e67e22);
	flex-shrink: 0;
	transition: color 0.2s ease;
}

.bb-poll-icon svg {
	width: 100%;
	height: 100%;
}

.bb-poll-title-tag {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--bb-poll-header, #e67e22);
	transition: color 0.2s ease;
}

.bb-poll-header:hover .bb-poll-title-tag {
	color: var(--bb-poll-header-hover, #d35400);
}

.bb-poll-header:hover .bb-poll-icon {
	color: var(--bb-poll-header-hover, #d35400);
}

.bb-poll-card {
	background: var(--bb-poll-bg, #fff);
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
	padding: 20px;
	border: 1px solid rgba(0,0,0,0.06);
}

.bb-poll-question {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--bb-poll-question, #333);
	margin-bottom: 14px;
	line-height: 1.35;
	transition: color 0.2s ease;
}

.bb-poll-card:hover .bb-poll-question {
	color: var(--bb-poll-question-hover, #111);
}

.bb-poll-message {
	color: #6c757d;
	font-size: 0.95rem;
	margin: 0 0 12px;
}

.bb-poll-options {
	margin-bottom: 16px;
}

.bb-poll-option-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	cursor: pointer;
	font-size: 0.9rem;
	color: var(--bb-poll-option-text, #333);
	transition: color 0.2s ease;
}

.bb-poll-option-label:hover,
.bb-poll-option-label span {
	color: var(--bb-poll-option-text, #333);
}

.bb-poll-option-label:hover span {
	color: var(--bb-poll-option-hover, #111);
}

.bb-poll-option-label input[type="radio"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.bb-poll-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(0,0,0,0.08);
}

.bb-poll-view-results {
	font-size: 0.9rem;
	color: var(--bb-poll-option-text, #333);
	text-decoration: underline;
	transition: color 0.2s ease;
}

.bb-poll-view-results:hover {
	color: var(--bb-poll-option-hover, #111);
}

.bb-poll-submit {
	padding: 10px 20px;
	background: var(--bb-poll-submit, #e67e22);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
	box-shadow: none;
}

.bb-poll-submit:hover:not(:disabled) {
	background: var(--bb-poll-submit-hover, #d35400);
	box-shadow: none;
}

.bb-poll-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Resultados */
.bb-poll-results {
	margin-top: 4px;
}

.bb-poll-results .bb-poll-option {
	border-bottom: 1px solid rgba(0,0,0,0.08);
	padding: 12px 0;
}

.bb-poll-results .bb-poll-option:last-child {
	border-bottom: none;
}

.bb-poll-option-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.bb-poll-results .label {
	font-size: 0.82rem;
	color: var(--bb-poll-option-text, #333);
}

.bb-poll-results .percentage {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--bb-poll-option-text, #333);
}

.bb-poll-results .votes {
	display: block;
	font-size: 0.85rem;
	color: #6c757d;
	margin-top: 4px;
	margin-left: auto;
	text-align: right;
}
