/* =========================================================
   AdaBundle Typography
========================================================= */

html body #adabundle-popup *,
html body #adabundle-popup #adabundle-popup-header *,
html body #adabundle-popup #adabundle-popup-footer * {
	font-family: var(--wp--preset--font-family--rubik) !important;
}


/* =========================================================
   Shared Floating Button Styles
========================================================= */

html body #adabundle-trigger-button,
#rlg-scroll-top {
	width: 60px !important;
	height: 60px !important;

	display: flex;
	align-items: center;
	justify-content: center;

	background: rgb(
		from var(--wp--preset--color--custom-absolute-white)
		r g b / 0.12
	);

	border: 1px solid rgb(
		from var(--wp--preset--color--custom-absolute-white)
		r g b / 0.28
	);

	border-radius: 999px;

	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);

	box-shadow:
		0 .5rem 2rem rgb(
			from var(--wp--preset--color--contrast)
			r g b / .18
		),
		inset 0 1px 1px rgb(
			from var(--wp--preset--color--base)
			r g b / .18
		) !important;

	cursor: pointer;
	transition: .25s;
}


/* =========================================================
   Shared Floating Button Icons
========================================================= */

html body #adabundle-trigger-button svg,
html body #adabundle-trigger-button svg *,
#rlg-scroll-top svg {
	fill: var(--wp--preset--color--custom-gray);
}

html body #adabundle-trigger-button svg,
#rlg-scroll-top svg {
	filter:
		drop-shadow(0 0 16px var(--wp--preset--color--base))
		drop-shadow(0 0 1px var(--wp--preset--color--base))
		drop-shadow(0 0 20px var(--wp--preset--color--base))
		drop-shadow(0 0 1px var(--wp--preset--color--base));
}


/* =========================================================
   AdaBundle Button
========================================================= */

html body #adabundle-trigger-button {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 3;

	animation: fadeIn .5s !important;
}

html body .adabundle-trigger-button-icon svg path.b {
	opacity: 0;
}

html body .adabundle-trigger-button-box {
	margin: 0 !important;
}

html body .adabundle-trigger-button-box.adb-entrance-wobble {
	animation: none !important;
}


/* =========================================================
   Back to Top Button
========================================================= */

#rlg-scroll-top {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 99998;

	padding: 5px;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

#rlg-scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#rlg-scroll-top svg {
	display: block;
	width: 40px;
	height: 40px;
}

#rlg-scroll-top:hover {
	transform: scale(1.1);
}


/* =========================================================
   RTL
========================================================= */

html[dir="rtl"] body #adabundle-trigger-button {
	left: unset !important;
	right: 16px;
}

html[dir="rtl"] #rlg-scroll-top {
	right: unset !important;
	left: 16px;
}

html[dir="rtl"] body .adabundle-trigger-button-box.bottom-left {
	left: unset !important;
	right: 0;
}


/* =========================================================
   Animation
========================================================= */

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
	html body #adabundle-trigger-button,
	#rlg-scroll-top,
	#rlg-scroll-top .rlg-scroll-top-icon {
		animation: none !important;
		transition: none !important;
	}
}