/**
 * Path: reach-booster/public/css/reachbooster-public.css
 */

:root {
	--rb-z-index: 999999;
	--rb-card-radius: 12px;
	--rb-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
	--rb-animation-duration: 0.4s;
	--rb-popup-width: 440px;
	--rb-popup-image-max-height: 620px;
}

body.reachbooster-has-topbar {
	padding-top: var(--reachbooster-top-padding, 0) !important;
}

.reachbooster-popup {
	display: none;
	font-family: var(--rb-font, inherit);
	inset: 0;
	position: fixed;
	z-index: var(--rb-z-index);
}

.reachbooster-popup.is-visible {
	align-items: center;
	display: flex;
	justify-content: center;
}

.reachbooster-popup--fade.is-visible .reachbooster-popup__card {
	animation: rbFadeIn var(--rb-animation-duration) ease-out both;
}

.reachbooster-popup--slide-up.is-visible .reachbooster-popup__card {
	animation: rbSlideUp var(--rb-animation-duration) ease-out both;
}

.reachbooster-popup--slide-down.is-visible .reachbooster-popup__card {
	animation: rbSlideDown var(--rb-animation-duration) ease-out both;
}

.reachbooster-popup--zoom.is-visible .reachbooster-popup__card {
	animation: rbZoomIn var(--rb-animation-duration) ease-out both;
}

.reachbooster-popup--bounce.is-visible .reachbooster-popup__card {
	animation: rbSoftBounce 0.55s ease-out both;
}

.reachbooster-popup__overlay {
	background: rgba(0, 0, 0, var(--rb-overlay-opacity, 0.5));
	backdrop-filter: blur(6px);
	inset: 0;
	position: absolute;
}

.reachbooster-popup__card {
	background: var(--rb-card-bg, #fff);
	border-radius: var(--rb-card-radius);
	box-shadow: var(--rb-shadow);
	max-height: calc(100vh - 32px);
	max-width: min(var(--rb-popup-width), calc(100vw - 32px));
	overflow: auto;
	position: relative;
	text-align: center;
	width: calc(100% - 32px);
	z-index: 1;
}

.reachbooster-popup__close {
	align-items: center;
	appearance: none;
	background: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
	color: #111 !important;
	cursor: pointer;
	display: flex !important;
	font-size: 24px !important;
	height: 42px !important;
	justify-content: center;
	line-height: 1 !important;
	min-height: 42px !important;
	min-width: 42px !important;
	padding: 0 !important;
	position: absolute;
	right: 12px;
	top: 12px;
	width: 42px !important;
	z-index: 2;
}

.reachbooster-popup__close:hover,
.reachbooster-popup__close:focus {
	background: var(--rb-cta-bg, #2271b1) !important;
	border-radius: 999px !important;
	color: var(--rb-cta-color, #fff) !important;
	outline: none;
}

.reachbooster-popup__image {
	display: block;
	height: auto;
	max-height: min(var(--rb-popup-image-max-height), 66vh);
	object-fit: contain;
	width: 100%;
}

.reachbooster-popup__content {
	padding: 22px;
}

.reachbooster-popup__headline {
	color: var(--rb-headline-color, #111);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 12px;
}

.reachbooster-popup__body {
	color: var(--rb-body-color, #333);
	font-size: 16px;
	line-height: 1.5;
	margin: 0 0 18px;
}

.reachbooster-popup__cta {
	background: var(--rb-cta-bg, #2271b1);
	border-radius: 7px;
	color: var(--rb-cta-color, #fff);
	display: inline-block;
	font-weight: 700;
	line-height: 1.2;
	padding: 12px 18px;
	text-decoration: none;
}

.reachbooster-infobar {
	background: var(--rb-bar-bg, #111);
	color: var(--rb-bar-color, #fff);
	display: none;
	font-family: var(--rb-font, inherit);
	left: 0;
	position: fixed;
	right: 0;
	z-index: var(--rb-z-index);
}

.reachbooster-infobar.is-visible {
	display: block;
}

.reachbooster-infobar--top {
	top: 0;
}

.reachbooster-infobar--bottom {
	bottom: 0;
}

.reachbooster-infobar--fade.is-visible {
	animation: rbFadeIn var(--rb-animation-duration) ease-out;
}

.reachbooster-infobar--slide-up.is-visible {
	animation: rbSlideUp var(--rb-animation-duration) ease-out;
}

.reachbooster-infobar--slide-down.is-visible {
	animation: rbSlideDown var(--rb-animation-duration) ease-out;
}

.reachbooster-infobar--zoom.is-visible {
	animation: rbZoomIn var(--rb-animation-duration) ease-out;
}

.reachbooster-infobar--bounce.is-visible {
	animation: rbSoftBounce 0.55s ease-out;
}

.reachbooster-infobar__inner {
	align-items: center;
	display: flex;
	gap: 12px;
	min-height: 52px;
	padding: 8px 16px;
}

.reachbooster-infobar__image {
	flex: 0 0 auto;
	height: 40px;
	object-fit: cover;
	width: 40px;
}

.reachbooster-infobar__text {
	flex: 1 1 auto;
	font-family: var(--rb-font, inherit);
	font-size: 16px;
	font-weight: 650;
	letter-spacing: 0;
	line-height: 1.4;
	margin: 0;
	min-width: 0;
	overflow: hidden;
	text-align: center;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.reachbooster-infobar__cta {
	background: var(--rb-cta-bg, #2271b1);
	border-radius: 6px;
	color: var(--rb-cta-color, #fff);
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	padding: 9px 13px;
	text-decoration: none;
	white-space: nowrap;
}

.reachbooster-infobar__close {
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	flex: 0 0 auto;
	font-size: 24px;
	line-height: 1;
	padding: 4px;
}

@keyframes rbFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes rbSlideUp {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes rbSlideDown {
	from { opacity: 0; transform: translateY(-18px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes rbZoomIn {
	from { opacity: 0; transform: scale(0.94); }
	to { opacity: 1; transform: scale(1); }
}

@keyframes rbSoftBounce {
	0% { opacity: 0; transform: scale(0.96) translateY(10px); }
	70% { opacity: 1; transform: scale(1.015) translateY(0); }
	100% { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.reachbooster-popup.is-visible .reachbooster-popup__card,
	.reachbooster-infobar.is-visible {
		animation: none !important;
	}
}

@keyframes rbSlideIn {
	from { transform: translateX(-100%); }
	to { transform: translateX(0); }
}

@media (max-width: 480px) {
	.reachbooster-popup__headline {
		font-size: 21px;
	}

	.reachbooster-popup__content {
		padding: 18px;
	}

	.reachbooster-infobar__inner {
		gap: 8px;
		padding: 8px 10px;
	}

	.reachbooster-infobar__image {
		height: 32px;
		width: 32px;
	}

	.reachbooster-infobar__text {
		font-size: 14px;
		text-align: left;
	}

	.reachbooster-infobar__cta {
		font-size: 13px;
		padding: 8px 10px;
	}
}
