.lvt-lucky-wheel-section {
	background: var(--lvt-mp-section-alt-bg, #f8fafc);
}

.lvt-lucky-wheel-layout {
	width: 100%;
}

.lvt-lucky-wheel-panel,
.lvt-lucky-wheel-wheel-card {
	width: 100%;
}

.lvt-lucky-wheel-wheel-card .card-body {
	width: 100%;
	min-height: auto;
}

.lvt-lucky-wheel-wheel-card__body {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.lvt-lucky-wheel-wheel-card__visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
}

.lvt-lucky-wheel-spin-mobile {
	position: relative;
	z-index: 5;
	flex-shrink: 0;
	pointer-events: auto;
}

.lvt-lucky-wheel-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.lvt-lucky-wheel-actions .btn {
	flex: 1 1 calc(50% - 0.25rem);
	min-width: 0;
}

.lvt-lucky-wheel-result-image {
	display: block;
	width: 7.5rem;
	height: 7.5rem;
	max-width: 40vw;
	max-height: 40vw;
	margin-left: auto;
	margin-right: auto;
	object-fit: cover;
	border-radius: 1rem;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.lvt-lucky-wheel-templates {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

@media (min-width: 576px) {
	.lvt-lucky-wheel-templates {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}

.lvt-lucky-wheel-template-item {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.9rem 1rem;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: 0.75rem;
	background: var(--bs-body-bg, #fff);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.lvt-lucky-wheel-template-item:hover,
.lvt-lucky-wheel-template-item:focus {
	border-color: var(--bs-primary, #0d6efd);
	background: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.04);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
	outline: 0;
}

.lvt-lucky-wheel-template-item__title {
	font-weight: 600;
	margin-bottom: 0.65rem;
}

.lvt-lucky-wheel-template-item__options {
	columns: 2;
	column-gap: 1rem;
	font-size: 0.8125rem;
	color: var(--bs-secondary-color, #6c757d);
	text-align: left;
}

.lvt-lucky-wheel-template-item__options li {
	break-inside: avoid;
	padding: 0.1rem 0;
}

@media (min-width: 768px) {
	.lvt-lucky-wheel-template-item__options {
		columns: 3;
	}
}

.lvt-lucky-wheel-quick-settings {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.lvt-lucky-wheel-quick-settings__duration {
	min-width: 0;
}

.lvt-lucky-wheel-quick-settings__extras {
	display: flex;
	flex-wrap: nowrap;
	gap: 1rem;
	align-items: stretch;
}

.lvt-lucky-wheel-quick-settings__extras .lvt-lucky-wheel-quick-settings__item {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.lvt-lucky-wheel-quick-settings__extras .lvt-lucky-wheel-quick-settings__item .form-label {
	margin-bottom: 0.5rem;
	line-height: 1.25;
}

.lvt-lucky-wheel-options-input {
	resize: vertical;
	min-height: 180px;
	font-family: inherit;
}

.lvt-lucky-wheel-stage {
	position: relative;
	width: auto;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	aspect-ratio: 1;
	margin: 0 auto;
	overflow: hidden;
	isolation: isolate;
	flex: 1 1 auto;
	min-height: 0;
}

.lvt-lucky-wheel__canvas {
	position: relative;
	width: 100%;
	height: 100%;
}

.lvt-lucky-wheel__svg {
	width: 100%;
	height: 100%;
	display: block;
}

.lvt-lucky-wheel__rotor-wrap {
	width: 100%;
	height: 100%;
	transform-origin: center center;
	will-change: transform;
}

.lvt-lucky-wheel__rotor {
	transform-box: fill-box;
}

.lvt-lucky-wheel__segment {
	cursor: pointer;
	transition: filter 0.2s ease;
}

.lvt-lucky-wheel__segment.is-winner {
	filter: brightness(1.08) drop-shadow(0 0 6px rgba(15, 23, 42, 0.25));
}

.lvt-lucky-wheel__pointer {
	position: absolute;
	top: -4px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 14px solid transparent;
	border-right: 14px solid transparent;
	border-top: 24px solid #0f172a;
	z-index: 3;
	filter: drop-shadow(0 2px 2px rgba(15, 23, 42, 0.2));
}

.lvt-lucky-wheel__empty {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1rem;
}

.lvt-lucky-wheel-confetti {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 2000;
}

@media (min-width: 992px) {
	.lvt-lucky-wheel-layout > [class*="col-lg-"] {
		display: flex;
	}

	.lvt-lucky-wheel-panel,
	.lvt-lucky-wheel-wheel-card {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
	}

	.lvt-lucky-wheel-wheel-card .card-body {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
	}

	.lvt-lucky-wheel-wheel-card__body {
		min-height: 100%;
		flex: 1 1 auto;
	}

	.lvt-lucky-wheel-wheel-card__visual {
		justify-content: center;
	}

	.lvt-lucky-wheel-actions .btn {
		flex: 0 0 auto;
	}

	.lvt-lucky-wheel-wheel-card {
		position: sticky;
		top: 1rem;
	}

	/* Desktop: quay chính dưới vòng quay; ẩn nút Quay trùng ở panel trái */
	.lvt-lucky-wheel-actions__spin {
		display: none !important;
	}
}

@media (max-width: 991.98px) {
	.lvt-lucky-wheel-actions__spin {
		display: none !important;
	}

	.lvt-lucky-wheel-panel {
		margin-bottom: 0.5rem;
	}

	.lvt-lucky-wheel-wheel-card__body {
		height: auto;
	}

	.lvt-lucky-wheel-wheel-card__visual {
		flex: 0 0 auto;
	}

	.lvt-lucky-wheel-stage {
		width: min(100%, 340px);
		max-width: 340px;
		height: auto;
		max-height: none;
		flex: 0 0 auto;
		aspect-ratio: 1;
	}

	.lvt-lucky-wheel-wheel-card .card-body {
		min-height: auto;
		padding-bottom: 1.5rem !important;
	}
}
