/**
 * Site footer: floating CTA, terms/privacy overlays.
 *
 * @package AriawellTheme
 */

.floating-menu-box {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	position: fixed;
	bottom: 25px;
	right: 50px;
	z-index: 40;
}

.floating-menu-box .cta-link {
	overflow: hidden;
	width: 190px;
	height: 75px;
	border-radius: 100px;
	opacity: 0;
	pointer-events: none;
}

.floating-menu-box .cta-link.show {
	opacity: 1;
	pointer-events: auto;
	transition: all ease 0.4s;
}

.floating-menu-box .cta-link img {
	width: 190px;
}

.floating-menu-box .cta-link .hover {
	display: none;
}

.floating-menu-box .cta-link:hover {
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.15);
}

.floating-menu-box .cta-link:hover .normal {
	display: none;
}

.floating-menu-box .cta-link:hover .hover {
	display: block;
}

.floating-menu-box .channel-link-box {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: 13px;
	padding: 10px;
	border-radius: 50px;
	background: rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(15px);
}

.floating-menu-box .channel-link {
	overflow: hidden;
	width: 50px;
	height: 50px;
}

.floating-menu-box .channel-link.tel {
	display: none;
}

.floating-menu-box .channel-link img {
	width: 50px;
}

.floating-menu-box .channel-link img.hover {
	display: none;
}

.floating-menu-box .channel-link:hover .normal {
	display: none;
}

.floating-menu-box .channel-link:hover .hover {
	display: block;
}

.floating-menu-box .footer-top-button {
	overflow: hidden;
	width: 50px;
	height: 50px;
	margin-top: 13px;
	border-radius: 100%;
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.floating-menu-box .footer-top-button.show {
	opacity: 1;
	visibility: visible;
}

.floating-menu-box .footer-top-button .hover {
	display: none;
}

.floating-menu-box .footer-top-button:hover .normal {
	display: none;
}

.floating-menu-box .footer-top-button:hover .hover {
	display: block;
}

.floating-menu-box .footer-top-button img {
	width: 50px;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.terms-popup {
	overflow: hidden;
	position: relative;
	width: 90%;
	max-width: 700px;
	max-height: 80vh;
	background: #fff;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
}

.terms-popup .popup-inner {
	overflow-y: auto;
	padding: 80px 50px 80px;
}

.terms-title {
	font-size: 22px;
	font-weight: bold;
	margin-bottom: 30px;
}

.terms-content {
	flex: 1;
	font-size: 16.8px;
	line-height: 26px;
	letter-spacing: -0.04em;
}

.terms-content strong {
	font-weight: 600;
}

.terms-close {
	position: absolute;
	top: 21px;
	right: 21px;
	z-index: 10;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.terms-close img {
	width: 15px;
	height: 15px;
}

@media (max-width: 1024px) {
	.floating-menu-box {
		right: 20px;
		bottom: 20px;
	}

	.floating-menu-box .cta-link {
		width: 128px;
		height: 51px;
	}

	.floating-menu-box .channel-link.tel {
		display: block;
	}

	.floating-menu-box .channel-link.tel:hover .normal {
		display: none;
	}

	.floating-menu-box .channel-link.tel:hover .hover {
		display: block;
	}

	.floating-menu-box .channel-link.iel {
		display: none;
	}

	.floating-menu-box .channel-link-box {
		gap: 8px;
		margin-top: 11px;
		padding: 8px;
	}

	.floating-menu-box .channel-link {
		width: 38px;
		height: 38px;
	}

	.floating-menu-box .channel-link img {
		width: 38px;
	}

	.floating-menu-box .cta-link img {
		width: 128px;
	}

	.floating-menu-box .footer-top-button {
		width: 38px;
		height: 38px;
		margin-top: 11px;
	}

	.floating-menu-box .footer-top-button img {
		width: 38px;
	}
}

@media (max-width: 768px) {
	.terms-popup {
		padding: 0;
		border-radius: 15px;
	}

	.terms-popup .popup-inner {
		padding: 50px 30px;
	}

	.terms-title {
		font-size: 18px;
	}

	.terms-content {
		font-size: 15px;
		line-height: 25px;
	}

	.terms-close {
		top: 15px;
		right: 15px;
	}

	.terms-close img {
		width: 12px;
		height: 12px;
	}
}
