/*
 * Cookie settings float button
 * Stacks directly above the accessibility float button.
 * Inherits nav color variables for visual consistency.
 */

.prilinq-cookie-float-btn {
	position: fixed;
	left: var(--prilinq-nav-side-margin, 16px);

	/* Sit above the a11y button: nav-offset + nav-height + 8px gap */
	bottom: calc(
		var(--prilinq-nav-offset-bottom, 34px) +
		var(--prilinq-nav-home-height, 44px) +
		8px
	);

	z-index: 99998; /* just below the a11y button (99999) */

	width: var(--prilinq-nav-home-height, 44px);
	height: var(--prilinq-nav-home-height, 44px);
	padding: 0;

	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;

	background-color: var(--prilinq-nav-bg, #1e293b);
	color: var(--prilinq-nav-text, #ffffff);

	transition: transform 0.15s ease;
}

.prilinq-cookie-float-btn:hover,
.prilinq-cookie-float-btn:focus {
	transform: scale(1.05);
}

.prilinq-cookie-float-btn svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	pointer-events: none;
}

/* ── Mobile (≤ 950px) — match a11y button mobile height (48px) ───────────── */
@media (max-width: 950px) {
	.prilinq-cookie-float-btn {
		width: 48px;
		height: 48px;

		bottom: calc(
			var(--prilinq-nav-offset-bottom, 34px) +
			48px +
			8px
		);
	}

	.prilinq-cookie-float-btn svg {
		width: 20px;
		height: 20px;
	}
}
