.rmq-quiz {
	--rmq-bg: #00e5af1c;
	--rmq-card: #fff;
	--rmq-border: #d9dee2;
	--rmq-shadow: #c4cacf;
	--rmq-text: #2c2c2c;
	--rmq-muted: #6b7378;
	--rmq-bar: #2a9fb8;
	--rmq-ok: #2fbf71;
	margin: 0 auto 1.5em;
	max-width: 760px;
	color: var(--rmq-text);
	font-family: inherit;
	line-height: 1.4;
}

.rmq-tab {
	display: inline-block;
	padding: .55em 1.2em .45em;
	background: var(--rmq-bg);
	border-radius: 12px 12px 0 0;
	font-weight: 700;
	font-size: .95em;
}

.rmq-body {
	padding: 1em 1.1em 1.1em;
	background: var(--rmq-bg);
	border-radius: 0 12px 12px 12px;
}

.rmq-question {
	margin: 0 0 .9em;
	font-size: 1.15em;
	font-weight: 700;
	text-align: center;
}

.rmq-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 1em;
}

.rmq-grid--no-media {
	grid-template-columns: minmax(0, 1fr);
}

.rmq-media {
	display: flex;
	align-items: center;
	justify-content: center;
}

.rmq-media img {
	display: block;
	max-width: 100%;
	max-height: 220px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.rmq-options {
	display: flex;
	flex-direction: column;
	gap: .75em;
}

.rmq-quiz .rmq-option {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: .7em;
	min-height: 3.2em;
	margin: 0;
	padding: .6em 1em;
	overflow: hidden;
	background: var(--rmq-card);
	color: var(--rmq-text);
	border: 1px solid var(--rmq-border);
	border-radius: 8px;
	box-shadow: 0 3px 0 var(--rmq-shadow);
	font: inherit;
	font-size: 1.05em;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.rmq-quiz .rmq-option:hover,
.rmq-quiz .rmq-option:focus-visible {
	background: var(--rmq-card);
	color: var(--rmq-text);
	border-color: #9aa5ad;
	transform: translateY(-1px);
}

.rmq-quiz .rmq-option:focus-visible {
	outline: 2px solid #1b6fd1;
	outline-offset: 2px;
}

.rmq-quiz .rmq-option:active {
	transform: translateY(2px);
	box-shadow: 0 1px 0 var(--rmq-shadow);
}

.rmq-quiz .rmq-flag {
	position: relative;
	display: block;
	flex: none;
	width: 28px;
	height: 21px;
	margin: 0;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
	object-fit: cover;
}

.rmq-label {
	position: relative;
}

.rmq-bar,
.rmq-check,
.rmq-pct {
	display: none;
}

.rmq-status {
	margin: .8em 0 0;
	font-size: .9em;
	color: var(--rmq-muted);
	text-align: center;
}

.rmq-status:empty {
	display: none;
}

/* Loading */
.rmq-quiz.is-loading .rmq-option {
	cursor: progress;
	opacity: .7;
}

/* Results */
.rmq-quiz.is-voted .rmq-option {
	justify-content: flex-start;
	cursor: default;
	transform: none;
	box-shadow: none;
}

.rmq-quiz.is-voted .rmq-option:hover {
	border-color: var(--rmq-border);
}

.rmq-quiz.is-voted .rmq-bar {
	display: block;
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: var(--rmq-bar);
	opacity: .14;
	transition: width .8s cubic-bezier(.2, .8, .2, 1);
}

.rmq-quiz.is-voted .rmq-check {
	display: block;
	position: relative;
	flex: none;
	width: 1.6em;
	height: 1.6em;
	border: 2px solid #b8c7cc;
	border-radius: 50%;
}

.rmq-quiz.is-voted .rmq-option.is-chosen {
	border-color: var(--rmq-ok);
}

.rmq-quiz.is-voted .rmq-option.is-chosen .rmq-label,
.rmq-quiz.is-voted .rmq-option.is-chosen .rmq-pct {
	font-weight: 700;
}

.rmq-quiz.is-voted .rmq-option.is-chosen .rmq-check {
	border-color: var(--rmq-ok);
	background: var(--rmq-ok);
}

.rmq-quiz.is-voted .rmq-option.is-chosen .rmq-check::after {
	content: "";
	position: absolute;
	left: .5em;
	top: .22em;
	width: .35em;
	height: .7em;
	border: solid #fff;
	border-width: 0 .16em .16em 0;
	transform: rotate(45deg);
}

.rmq-quiz.is-voted .rmq-pct {
	display: block;
	position: relative;
	margin-left: auto;
	padding-left: .4em;
	white-space: nowrap;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
	.rmq-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.rmq-body {
		padding: .9em .75em;
	}

	.rmq-question {
		font-size: 1.05em;
	}

	.rmq-media img {
		max-height: 120px;
	}

	.rmq-quiz .rmq-option {
		gap: .5em;
		padding: .55em .7em;
		font-size: 1em;
	}

	.rmq-quiz.is-voted .rmq-check {
		width: 1.4em;
		height: 1.4em;
	}

	.rmq-quiz.is-voted .rmq-option.is-chosen .rmq-check::after {
		left: .42em;
		top: .16em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rmq-quiz .rmq-option,
	.rmq-quiz .rmq-bar {
		transition: none;
	}
}

.rmq-quiz.is-voted .rmq-option.is-chosen .rmq-bar {
	background: var(--rmq-ok);
}

.rmq-editor-notice {
	padding: 1em;
	background: #fcf0f1;
	border-left: 3px solid #d63638;
	color: #50575e;
	font-size: 14px;
}
