/**
 * Book a Demo - Floating Button
 *
 * Fixed-position CTA button anchored to the right side of the viewport.
 * Distinct pill style that stands out from regular page buttons.
 *
 * @package 3MW_Core_Child
 * @since 1.4.0
 */

/* ==========================================
   FLOATING BUTTON
   ========================================== */

.book-a-demo-btn {
	position: fixed;
	right: 0;
	top: 35%;
	z-index: 99;

	/* Rotated text running vertically along the right edge */
	writing-mode: vertical-rl;
	text-orientation: mixed;

	/* Pill shape */
	padding: var(--space-md) var(--space-sm);
	border-radius: var(--radius-card) 0 0 var(--radius-card);

	/* Colors */
	background: var(--color-primary);
	color: var(--color-white);

	/* Typography */
	font-size: var(--font-size-small);
	font-weight: var(--font-weight-semibold);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1;

	/* Interaction */
	cursor: pointer;
	transition:
		background var(--transition-base),
		transform var(--transition-base),
		box-shadow var(--transition-base);

	/* Elevation */
	box-shadow: var(--shadow-md);
}

.book-a-demo-btn:hover,
.book-a-demo-btn:focus-visible {
	background: var(--color-accent);
	color: var(--color-white);
	transform: translateX(-4px);
	box-shadow: var(--shadow-lg);
	text-decoration: none;
}

.book-a-demo-btn:focus-visible {
	outline: 2px dashed var(--color-white);
	outline-offset: -4px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (width <= 768px) {
	.book-a-demo-btn {
		/* Switch to horizontal bottom bar on mobile */
		writing-mode: horizontal-tb;
		text-orientation: initial;

		/* Reposition to bottom-right */
		top: auto;
		bottom: var(--space-lg);
		right: var(--space-md);

		/* Pill shape */
		border-radius: var(--radius-full);
		padding: var(--space-sm) var(--space-lg);
		font-size: var(--font-size-small);
	}
}
