/**
 * #Fixed CTA
 */

.p-fixed-cta {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 15;
	display: flex;
	flex-direction: column;
	gap: 1px;
	width: 80px;
	transform: translateY(-50%);

	.p-fixed-cta__item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		height: 80px;
		padding: 8px 6px;
		border-top: 2px solid transparent;
		background-color: #111;
		color: var(--white);
		text-decoration: none;
		text-align: center;
		font-size: 13px;
		font-weight: 700;
		line-height: 1.2;

		&:nth-child(1) {
			border-top-color: var(--neon-purple, #bf00ff);
		}

		&:nth-child(2) {
			border-top-color: var(--neon-cyan, #00f5ff);
		}

		&:nth-child(3) {
			border-top-color: var(--neon-pink, #ff2d78);
		}

		&:nth-child(4) {
			border-top-color: var(--neon-yellow, #ffff00);
		}

		img {
			width: 22px;
			height: 22px;
			max-width: none;
			object-fit: contain;
		}

		img[src*="info.svg"] {
			filter: brightness(0) invert(1);
		}
	}

	@media (max-width: 1024px) {
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 50;
		flex-direction: row;
		align-items: stretch;
		gap: 0;
		width: 100%;
		height: calc(60px + env(safe-area-inset-bottom, 0px));
		padding-bottom: env(safe-area-inset-bottom, 0px);
		background-color: #111;
		transform: none;

		.p-fixed-cta__item {
			position: relative;
			flex: 1 1 0;
			min-width: 0;
			height: 60px;
			padding: 4px 2px;
			gap: 2px;

			img {
				width: 17px;
				height: 17px;
				max-width: none;
			}

			.p-fixed-cta__audition {
				letter-spacing: -0.12em;
			}

			&:not(:last-child)::after {
				content: "";
				position: absolute;
				top: 50%;
				right: 0;
				width: 1px;
				height: 24px;
				background-color: var(--prolab-border, #2e2e2e);
				transform: translateY(-50%);
			}
		}
	}
}

.theme-edance-open-class .p-fixed-cta .p-fixed-cta__item {
	&:nth-child(1) {
		border-top-color: var(--neon-cyan, #00f5ff);
	}

	&:nth-child(2) {
		border-top-color: var(--neon-pink, #ff2d78);
	}

	&:nth-child(3) {
		border-top-color: var(--neon-purple, #bf00ff);
	}
}

@media (max-width: 1024px) {
	body {
		padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
	}
}
