/* ============================================================
   Refer a Friend — Hello bar + floating popup
   PMS 320U accent (#009CA6)
   ============================================================ */

/* ===== HELLO BAR ===== */

.gg-hellobar {
	background: #009CA6;
	color: #fff;
	font-family: 'sofia-pro', 'Sofia Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 14px;
	line-height: 1.3;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9998;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.gg-hellobar.is-visible { opacity: 1; }

/* When bar is visible, push body content down and offset fixed/sticky Elementor headers */
body.gg-has-hellobar { padding-top: var(--gg-bar-h, 40px); }
body.gg-has-hellobar .elementor-location-header,
body.gg-has-hellobar [data-elementor-type="header"],
body.gg-has-hellobar .elementor-sticky--active {
	top: var(--gg-bar-h, 40px) !important;
}

.gg-hellobar__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	max-width: 90rem;
	margin: 0 auto;
	padding: 10px 20px;
}

.gg-hellobar__link {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: opacity 0.2s ease;
}
.gg-hellobar__link:hover,
.gg-hellobar__link:focus-visible { color: #fff; opacity: 0.92; }

.gg-hellobar__lead {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.gg-hellobar__sep { opacity: 0.55; }
.gg-hellobar__offer { font-weight: 600; }
.gg-hellobar__action { opacity: 0.92; }

.gg-hellobar__arrow {
	display: inline-block;
	margin-left: 2px;
	font-weight: 800;
	transition: transform 0.2s ease;
}
.gg-hellobar__link:hover .gg-hellobar__arrow,
.gg-hellobar__link:focus-visible .gg-hellobar__arrow { transform: translateX(3px); }

@media (max-width: 720px) {
	.gg-hellobar { font-size: 13px; }
	.gg-hellobar__inner { padding: 9px 14px; gap: 6px; }
	.gg-hellobar__lead,
	.gg-hellobar__sep { display: none; }
}

/* ===== FLOATING POPUP ===== */

.gg-promo {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9997;
	font-family: 'sofia-pro', 'Sofia Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}
.gg-promo.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* Collapsed pill */
.gg-promo__pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #009CA6;
	color: #fff;
	border: 0;
	padding: 10px 20px 10px 10px;
	border-radius: 999px;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	box-shadow: 0 10px 25px rgba(0, 156, 166, 0.32), 0 4px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
}
.gg-promo__pill:hover,
.gg-promo__pill:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(0, 156, 166, 0.42), 0 6px 12px rgba(0, 0, 0, 0.12);
	outline: none;
}

.gg-promo__pill-mark {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	background: #fff;
	color: #009CA6;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
}

/* Gentle pulse to draw the eye while collapsed */
@keyframes gg-promo-pulse {
	0%   { box-shadow: 0 10px 25px rgba(0,156,166,0.32), 0 4px 10px rgba(0,0,0,0.1), 0 0 0 0 rgba(0,156,166,0.45); }
	70%  { box-shadow: 0 10px 25px rgba(0,156,166,0.32), 0 4px 10px rgba(0,0,0,0.1), 0 0 0 14px rgba(0,156,166,0); }
	100% { box-shadow: 0 10px 25px rgba(0,156,166,0.32), 0 4px 10px rgba(0,0,0,0.1), 0 0 0 0 rgba(0,156,166,0); }
}
.gg-promo[data-state="collapsed"].is-visible .gg-promo__pill {
	animation: gg-promo-pulse 2.6s ease-out infinite;
}
.gg-promo[data-state="collapsed"].is-visible .gg-promo__pill:hover {
	animation: none;
}

/* Expanded card */
.gg-promo__card {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 320px;
	background: #fff;
	color: #000;
	border-radius: 20px;
	padding: 28px 24px 24px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 8px 16px rgba(0, 0, 0, 0.08);
	opacity: 0;
	transform: translateY(8px) scale(0.96);
	transform-origin: bottom right;
	transition: opacity 0.28s ease, transform 0.28s ease;
	pointer-events: none;
}

.gg-promo[data-state="expanded"] .gg-promo__card {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}
.gg-promo[data-state="expanded"] .gg-promo__pill {
	opacity: 0;
	transform: scale(0.88);
	pointer-events: none;
	animation: none !important;
}

.gg-promo__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent;
	border: 0;
	color: #535353;
	padding: 6px;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}
.gg-promo__close:hover,
.gg-promo__close:focus-visible {
	background: rgba(0, 0, 0, 0.06);
	color: #000;
	outline: none;
}

.gg-promo__heading {
	margin: 0 0 10px;
	font-family: inherit;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.15;
	color: #000;
	padding-right: 28px;
}

.gg-promo__body {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.5;
	color: #2b2b2b;
}

.gg-promo__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 24px;
	background: #009CA6;
	color: #fff;
	border-radius: 100px;
	text-decoration: none;
	font-weight: 800;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: background 0.2s ease, transform 0.2s ease;
}
.gg-promo__cta:hover,
.gg-promo__cta:focus-visible {
	background: #007e87;
	color: #fff;
	transform: translateY(-1px);
	outline: none;
}
.gg-promo__cta span { color: inherit; }

@media (max-width: 480px) {
	.gg-promo { bottom: 16px; right: 16px; }
	.gg-promo__pill { font-size: 12px; padding: 9px 16px 9px 9px; letter-spacing: 0.05em; }
	.gg-promo__pill-mark { width: 24px; height: 24px; font-size: 14px; flex-basis: 24px; }
	.gg-promo__card {
		width: calc(100vw - 32px);
		max-width: 360px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gg-hellobar,
	.gg-promo,
	.gg-promo__pill,
	.gg-promo__card,
	.gg-promo__cta,
	.gg-hellobar__arrow,
	.gg-hellobar__close,
	.gg-promo__close { transition: none; }
	.gg-promo[data-state="collapsed"].is-visible .gg-promo__pill { animation: none; }
}
