.vx-quiz-launch__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border: 0;
	border-radius: 6px;
	background: #111;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: opacity .18s ease, transform .18s ease;
}

.vx-quiz-launch__button:hover {
	opacity: .9;
	transform: translateY(-1px);
}

.vx-quiz-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .22s ease, visibility 0s linear .22s;
}

.vx-quiz-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity .22s ease;
}

.vx-quiz-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .58);
}

.vx-quiz-modal__dialog {
	position: relative;
	width: min(920px, 100%);
	max-height: min(86vh, 820px);
	overflow: auto;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
	opacity: 0;
	transform: translateY(12px) scale(.98);
	transition: opacity .22s ease, transform .22s ease;
}

.vx-quiz-modal.is-open .vx-quiz-modal__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.vx-quiz-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .08);
	color: #111;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
}

.vx-quiz-modal__close:hover {
	background: rgba(0, 0, 0, .14);
	transform: rotate(90deg);
}

body.vx-quiz-modal-open {
	overflow: hidden;
}

.vx-quiz {
	width: 100%;
}

.vx-quiz__panel {
	padding: 32px;
	background: #fff;
	animation: vxQuizPanelFade .22s ease;
}

.vx-quiz__panel--forward {
	animation-name: vxQuizPanelForward;
}

.vx-quiz__panel--back {
	animation-name: vxQuizPanelBack;
}

.vx-quiz__progress {
	height: 6px;
	background: rgba(0, 0, 0, .1);
	margin: 0 48px 12px 0;
	overflow: hidden;
	border-radius: 999px;
}

.vx-quiz__progress span {
	display: block;
	height: 100%;
	background: #f3a140;
	transition: width .2s ease;
}

.vx-quiz__count {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: rgba(0, 0, 0, .68);
}

.vx-quiz__count strong {
	color: #111;
	font-size: 14px;
}

.vx-quiz__panel h3 {
	margin: 10px 48px 0 0;
}

.vx-quiz__answers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin: 22px 0;
}

.vx-quiz__answers button,
.vx-quiz__nav button,
.vx-quiz__more {
	min-height: 44px;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 6px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease, opacity .18s ease;
}

.vx-quiz__answers button {
	padding: 12px 14px;
	text-align: left;
}

.vx-quiz__answers button.is-selected,
.vx-quiz__answers button:hover {
	border-color: #f3a140;
	background: rgba(243, 161, 64, .12);
}

.vx-quiz__nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.vx-quiz__nav-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

.vx-quiz__nav button {
	padding: 0 16px;
}

.vx-quiz__nav button:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.vx-quiz__number,
.vx-quiz__date {
	width: 100%;
	min-height: 44px;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 6px;
	padding: 0 12px;
}

.vx-quiz__answers--date {
	display: flex;
	justify-content: center;
}

.vx-quiz__calendar {
	width: min(420px, 100%);
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 8px;
	padding: 14px;
	background: #fff;
}

.vx-quiz__calendar-head {
	display: grid;
	grid-template-columns: 40px 1fr 40px;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.vx-quiz__calendar-head strong {
	text-align: center;
	text-transform: capitalize;
}

.vx-quiz__calendar-nav {
	width: 40px;
	height: 40px;
	border: 1px solid rgba(0, 0, 0, .14);
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}

.vx-quiz__calendar-nav:disabled {
	opacity: .35;
	cursor: not-allowed;
}

.vx-quiz__calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
}

.vx-quiz__calendar-weekday {
	padding: 6px 0;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: rgba(0, 0, 0, .56);
}

.vx-quiz__calendar-empty {
	min-height: 40px;
}

.vx-quiz__calendar-grid button {
	min-height: 40px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease;
}

.vx-quiz__calendar-grid button:hover,
.vx-quiz__calendar-grid button.is-selected {
	border-color: #f3a140;
	background: rgba(243, 161, 64, .14);
}

.vx-quiz__calendar-grid button.is-disabled,
.vx-quiz__calendar-grid button:disabled {
	color: rgba(0, 0, 0, .28);
	border-color: rgba(0, 0, 0, .08);
	background: rgba(0, 0, 0, .04);
	cursor: not-allowed;
}

.vx-quiz__calendar-grid button.is-disabled:hover,
.vx-quiz__calendar-grid button:disabled:hover {
	border-color: rgba(0, 0, 0, .08);
	background: rgba(0, 0, 0, .04);
}

.vx-quiz__results {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.vx-quiz__result {
	position: relative;
}

.vx-quiz-admin-result-card {
	padding: 14px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 8px;
	background: #fff;
}

.vx-quiz-admin-result-card h3 {
	margin: 0 0 8px;
	font-size: 16px;
}

.vx-quiz-admin-result-card p {
	margin: 0;
	color: rgba(0, 0, 0, .62);
	font-size: 13px;
}

.vx-quiz__score {
	font-weight: 700;
	margin-bottom: 8px;
}

.vx-quiz__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
	margin-top: 20px;
	background: #111;
	color: #fff;
}

.vx-quiz__loading {
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.vx-quiz__loading span {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(0, 0, 0, .16);
	border-top-color: #111;
	border-radius: 50%;
	animation: vxQuizSpin .75s linear infinite;
}

@keyframes vxQuizPanelFade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes vxQuizPanelForward {
	from {
		opacity: 0;
		transform: translateX(12px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes vxQuizPanelBack {
	from {
		opacity: 0;
		transform: translateX(-12px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes vxQuizSpin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 640px) {
	.vx-quiz-modal {
		padding: 12px;
		align-items: flex-start;
	}

	.vx-quiz-modal__dialog {
		max-height: calc(100vh - 24px);
	}

	.vx-quiz__panel {
		padding: 24px 18px;
	}

	.vx-quiz__answers--date {
		width: 100%;
	}

	.vx-quiz__calendar {
		width: 100%;
		padding: 12px;
	}

	.vx-quiz__calendar-nav {
		width: 46px;
		height: 46px;
	}

	.vx-quiz__calendar-grid {
		gap: 5px;
	}

	.vx-quiz__calendar-grid button,
	.vx-quiz__calendar-empty {
		min-height: 48px;
	}
}
