/**
 * Stay22 Sticky CTA Bar – Accommodation review posts
 * Appears on scroll, desktop and mobile.
 */

.stay22-sticky-cta {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9998;
	transform: translateY(-100%);
	transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
	pointer-events: none;
	visibility: hidden;
}

.stay22-sticky-cta--visible {
	transform: translateY(0);
	pointer-events: auto;
	visibility: visible;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.stay22-sticky-cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--site-max-width, 1200px);
	margin: 0 auto;
	padding: 0.75rem var(--global-elements-margin, 1.5rem);
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.stay22-sticky-cta-text {
	flex: 1;
	min-width: 0;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.35;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.stay22-sticky-cta-button {
	flex-shrink: 0;
	display: inline-block;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	color: #fff;
	background: #0fa9a7;
	border-radius: 6px;
	transition: background 0.2s ease, color 0.2s ease;
}

.stay22-sticky-cta-button:hover,
.stay22-sticky-cta-button:focus {
	background: #0d8f8d;
	color: #fff;
}

/* Mobile: compact layout, ensure tap target */
@media (max-width: 640px) {
	.stay22-sticky-cta-inner {
		padding: 0.625rem 1rem;
		gap: 0.75rem;
	}

	.stay22-sticky-cta-text {
		font-size: 0.8125rem;
		max-width: 60%;
	}

	.stay22-sticky-cta-button {
		padding: 0.5rem 0.875rem;
		font-size: 0.8125rem;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}
