/* RaiRightNow Bookings: WhatsApp buttons (loaded on every page when the floating button is on). */
.rrnb-float, .rrnb-wa-pill, .rrnb-card__wa {
	--rrnbw-plum: var(--global-palette3, #3E283E);
	--rrnbw-gold: var(--global-palette1, #9A7130);
	--rrnbw-gold-dark: var(--global-palette2, #7E5A22);
	--rrnbw-line: var(--rrn-gold, #B8893A);
	--rrnbw-cream: var(--global-palette8, #FBF6F0);
	--rrnbw-white: var(--global-palette9, #FFFFFF);
	font-family: var(--rrn-sans, "Jost", system-ui, sans-serif);
	-webkit-tap-highlight-color: transparent;
}

/* Floating button */
.rrnb-float {
	position: fixed; right: clamp(16px, 2.4vw, 28px); bottom: calc(clamp(16px, 2.4vw, 28px) + env(safe-area-inset-bottom));
	z-index: 95; display: flex; align-items: center; gap: 0;
	height: 58px; min-width: 58px; padding: 0 17px; margin: 0;
	border: 1px solid rgba(184, 137, 58, .55); border-radius: 50px;
	background: rgba(255, 255, 255, .94); color: var(--rrnbw-gold-dark);
	box-shadow: 0 1px 2px rgba(62, 40, 62, .08), 0 14px 32px -14px rgba(62, 40, 62, .45);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	cursor: pointer; font-size: 15px; letter-spacing: .02em; line-height: 1;
	opacity: 0; transform: translateY(14px) scale(.96);
	transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1), bottom .35s ease, background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.rrnb-float.is-in { opacity: 1; transform: none; }
.rrnb-float svg { flex: 0 0 auto; width: 24px; height: 24px; }
.rrnb-float__label {
	display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
	color: var(--rrnbw-plum);
	transition: max-width .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, margin .45s ease;
}
.rrnb-float:hover, .rrnb-float:focus-visible {
	background: var(--rrnbw-white); border-color: var(--rrnbw-line); color: var(--rrnbw-gold);
	box-shadow: 0 1px 2px rgba(62, 40, 62, .08), 0 20px 40px -16px rgba(62, 40, 62, .5);
}
.rrnb-float:hover .rrnb-float__label, .rrnb-float:focus-visible .rrnb-float__label { max-width: 120px; opacity: 1; margin-left: 10px; }
.rrnb-float:focus-visible { outline: 2px solid var(--rrnbw-line); outline-offset: 3px; }
/* A soft gold ring that breathes once when it first appears. */
.rrnb-float::after {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
	box-shadow: 0 0 0 0 rgba(184, 137, 58, .45);
}
.rrnb-float.is-in::after { animation: rrnbw-breathe 2.4s ease-out 1.2s 1; }
@keyframes rrnbw-breathe { 0% { box-shadow: 0 0 0 0 rgba(184, 137, 58, .45); } 100% { box-shadow: 0 0 0 16px rgba(184, 137, 58, 0); } }

/* Phones: sit above the event booking bar while it shows. */
@media (max-width: 899px) {
	.rrnb-float { height: 54px; min-width: 54px; padding: 0 15px; }
	.rrnb-float.is-raised { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* Pill for [rrn_whatsapp] */
.rrnb-wa-pill {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 12px 26px; margin: 0;
	border: 1px solid #E5D6C6; border-radius: 50px; background: transparent;
	color: var(--rrnbw-plum); font-size: 15px; cursor: pointer;
	transition: border-color .25s ease, background-color .25s ease;
}
.rrnb-wa-pill svg { color: var(--rrnbw-gold); }
.rrnb-wa-pill:hover { border-color: var(--rrnbw-gold); background: var(--rrnbw-cream); }
.rrnb-wa-pill:focus-visible { outline: 2px solid var(--rrnbw-line); outline-offset: 3px; }

/* Small icon on cards (optional) */
.rrnb-card__wa {
	position: absolute; top: 14px; right: 14px; z-index: 2;
	display: grid; place-items: center; width: 40px; height: 40px; padding: 0; margin: 0;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--rrnbw-gold-dark);
	box-shadow: 0 6px 18px -8px rgba(62, 40, 62, .45); cursor: pointer;
	transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.rrnb-card__wa:hover { background: var(--rrnbw-white); color: var(--rrnbw-gold); transform: scale(1.06); }
.rrnb-card__wa:focus-visible { outline: 2px solid var(--rrnbw-line); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	.rrnb-float, .rrnb-float__label, .rrnb-card__wa { transition: none; }
	.rrnb-float { transform: none; }
	.rrnb-float.is-in::after { animation: none; }
}
@media print { .rrnb-float, .rrnb-card__wa { display: none !important; } }
