/* GR Encuestas — widget de votación (frontend). */

.gr-encuesta {
	--gr-enc-accent: #2271b1;
	--gr-enc-track: #eef1f5;
	max-width: 520px;
	margin: 1.5em 0;
	padding: 18px 20px;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	line-height: 1.4;
}

.gr-encuesta__q {
	margin: 0 0 14px;
	font-weight: 700;
	font-size: 1.05em;
	color: #1d2327;
}

.gr-encuesta__form { margin: 0; }

.gr-encuesta__opt {
	display: block;
	margin: 0 0 8px;
	padding: 10px 12px;
	border: 1px solid #d8dbe0;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
	position: relative;
	overflow: hidden;
}

.gr-encuesta__opt:hover { border-color: var(--gr-enc-accent); }

.gr-encuesta__opt-main {
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
	z-index: 1;
}

.gr-encuesta__opt-text { flex: 1; }

.gr-encuesta__opt-img {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	object-fit: cover;
	flex: 0 0 auto;
	display: block;
}

.gr-encuesta__pct {
	font-weight: 700;
	color: #1d2327;
	font-variant-numeric: tabular-nums;
}

/* Barra de resultados */
.gr-encuesta__bar {
	display: block;
	margin-top: 8px;
	height: 8px;
	border-radius: 4px;
	background: var(--gr-enc-track);
	overflow: hidden;
	position: relative;
	z-index: 1;
}

.gr-encuesta__bar-fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 4px;
	background: var(--gr-enc-accent);
	transition: width .6s cubic-bezier(.22,.61,.36,1);
}

/* Estado con resultados */
.gr-encuesta__opt.is-results { cursor: default; }
.gr-encuesta__opt.is-results:hover { border-color: #d8dbe0; }
.gr-encuesta__opt.is-chosen {
	border-color: var(--gr-enc-accent);
	background: #f0f6fc;
}
.gr-encuesta__opt.is-results input[type="radio"] { display: none; }

.gr-encuesta.is-voted .gr-encuesta__opt { cursor: default; }

.gr-encuesta__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.gr-encuesta__vote {
	appearance: none;
	border: none;
	background: var(--gr-enc-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 9px 20px;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}

.gr-encuesta__vote:hover { background: #135e96; }
.gr-encuesta__vote:disabled { opacity: .6; cursor: default; }

.gr-encuesta__total { color: #646970; font-size: 13px; }

.gr-encuesta__msg {
	margin: 10px 0 0;
	font-size: 13px;
	color: #1a7f37;
}
