.goodsol-fortune {
	position: fixed;
	inset: 0;
	z-index: 10;
	opacity: 0;
	pointer-events: none;
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
	background-color: rgb(226 243 255/.7);
	transition: opacity .4s ease-out;
}

.goodsol-fortune.show {
	pointer-events: all;
	opacity: 1;
}

.goodsol-fortune,
.goodsol-fortune-wheel-wrap,
.goodsol-toast-container,
.goodsol-wheel-sector-text,
.goodsol-fortune-box {
	display: flex;
	align-items: center;
}

.goodsol-fortune,
.goodsol-fortune-form-wrap {
	flex-direction: column;
	justify-content: center;
}

.goodsol-fortune__wrap {
	display: flex;
	width: 90%;
	max-width: 900px;
	height: 600px;
	overflow: hidden;
	position: relative;
	border-radius: 25px;
	background: #fff;
	box-shadow: 0 20px 50px rgb(0 0 0/.6);
}

.goodsol-fortune-wheel-wrap {
	width: 45%;
}

.goodsol-wheel-container {
	width: 500px;
	height: 500px;
	position: absolute;
	left: -250px;
}

.goodsol-wheel {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 4px solid #2f3d4c;
	transition: transform 5.5s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.goodsol-wheel::before,
.goodsol-wheel-container::after,
.goodsol-fortune-box::before {
	content: '';
	display: block;
	position: absolute;
	margin: auto;
}

.goodsol-wheel::before {
	width: 100px;
	height: 100px;
	inset: 0;
	background: #fff;
	border-radius: inherit;
	box-shadow: 0 0 15px rgb(0 0 0/.3);
}

.goodsol-wheel-container::after {
	width: 0;
	height: 0;
	top: 0;
	bottom: 0;
	right: -15px;
	pointer-events: none;
	border-top: 15px solid transparent;
	border-bottom: 15px solid transparent;
	border-right: 25px solid #fff;
	filter: drop-shadow(-2px 0 4px rgb(0 0 0/.3));
}

.goodsol-wheel-sector-text {
	justify-content: center;
	width: 50%;
	height: 60px;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.2;
	text-align: center;
	color: #fff;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -30px;
	padding-inline: 55px 15px;
	transform-origin: 0 50%;
}

.goodsol-fortune-form-wrap {
	flex: 1;
	display: flex;
	padding: 50px 45px 45px;
}

.goodsol-form-title {
	margin-bottom: 15px;
}

.goodsol-form-desc {
	letter-spacing: -0.05em;
	color: #878796;
}

.goodsol-form-desc+.goodsol-input,
.goodsol-form-desc+.goodsol-fortune__btns {
	margin-top: 50px;
}

.goodsol-form-desc b {
	color: #47BE47;
}

.goodsol-input+.goodsol-input {
	margin-top: 10px;
}

.goodsol-fortune-box {
	position: relative;
	justify-content: center;
}

.goodsol-fortune-box::before {
	width: 20px;
	height: 20px;
	left: 20px;
	background: no-repeat center / cover url('../assets/copy.svg');
}

.goodsol-fortune-box:hover::before {
	filter: brightness(0) invert(1);
}

.goodsol-agreement {
	display: flex;
	margin-block: 25px 30px;
}

.goodsol-fortune__btns {
	display: flex;
	gap: 15px;
}

.goodsol-fortune__btns .button {
	width: 100%;
}

.goodsol-fortune-form-wrap .button:disabled {
	opacity: .5;
	pointer-events: none;
}

.goodsol-success,
.goodsol-fortune-form-wrap::-webkit-scrollbar {
	display: none;
}

#gs-f-after-form,
#gs-f-success-msg {
	opacity: 0;
	margin-top: 5px;
	transform: translateY(10px);
	animation: fadeInForm .5s ease forwards;
}

@keyframes fadeInForm {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.goodsol-toast-container {
	flex-direction: column;
	gap: 10px;
	max-width: 400px;
	position: absolute;
	top: 20px;
	left: 0;
	right: 0;
	margin: 0 auto;
	pointer-events: none;
}

.goodsol-toast {
	font-size: 13px;
	line-height: 35px;
	color: #fff;
	opacity: 0;
	padding-inline: 15px;
	border-radius: 7px;
	background: #e74c3c;
	box-shadow: 0 4px 12px rgb(0 0 0/.15);
	transform: translateY(-10px);
	transition: opacity .3s ease, transform .3s ease;
}

.goodsol-toast.show {
	opacity: 1;
	transform: translateY(0);
}

.goodsol-toast.goodsol-toast-success {
	background: #2ecc71;
}

@media (max-width:768px) {
	.goodsol-fortune__wrap {
		align-items: center;
		flex-direction: column;
		width: 95%;
		max-width: 400px;
		height: auto;
		max-height: 95vh;
		border-radius: 20px;
	}

	.goodsol-fortune-wheel-wrap {
		width: 100%;
		height: 200px;
		justify-content: center;
	}

	.goodsol-form-desc+.goodsol-input,
	.goodsol-form-desc+.goodsol-fortune__btns {
		margin-top: 30px;
	}

	.goodsol-wheel-container {
		width: 360px;
		height: 360px;
		left: unset;
		top: -180px;
	}

	.goodsol-wheel::before {
		width: 70px;
		height: 70px;
	}

	.goodsol-wheel-container::after {
		top: unset;
		left: 0;
		right: 0;
		bottom: -15px;
		transform: rotate(90deg);
	}

	.goodsol-wheel-sector-text {
		height: 40px;
		font-size: 13px;
		margin-top: -20px;
		padding-inline: 45px 15px;
	}

	.goodsol-fortune-form-wrap {
		width: 100%;
		text-align: center;
		overflow-y: auto;
		justify-content: unset;
		padding: 20px 20px 30px;
	}

	.goodsol-fortune-close,
	.goodsol-hide-mobile {
		display: none;
	}

	.goodsol-agreement {
		text-align: left;
	}

	.goodsol-fortune__btns {
		gap: 10px;
	}

	.goodsol-fortune-form-wrap>div[style*="display: flex"] {
		flex-direction: column;
	}
}