/* App Promo Popup - Frontend Styles */

#app-promo-root.app-promo-hidden {
	display: none;
}

/* ---------- Sticky top banner ---------- */
.app-promo-banner {
	display: flex;
	align-items: center;
	gap: 16px;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	box-sizing: border-box;
	padding: 22px 18px;
	background: #c9c9c9;
	border-bottom: 4px solid #b0aeae;
	z-index: 99998;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.app-promo-banner__logo {
	max-height: 40px;
	width: auto;
	display: block;
}

.app-promo-banner__text {
	flex: 1;
	display: flex;
	flex-direction: column;
	line-height: 1.35;
	min-width: 0;
}

.app-promo-banner__text strong {
	font-size: 19px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 2px;
}

.app-promo-banner__text span {
	font-size: 14px;
	font-weight: 400;
	color: #555;
}

.app-promo-banner__btn {
	flex-shrink: 0;
	background: #b8123f;
	color: #fff !important;
	text-decoration: none;
	text-align: center;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.4px;
	padding: 15px 22px;
	border-radius: 10px;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(184, 18, 63, 0.35);
}

/* ---------- Full-screen modal overlay ---------- */
.app-promo-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 9999;
	align-items: flex-end;
	justify-content: center;
}

.app-promo-overlay.app-promo-open {
	display: flex;
}

.app-promo-modal {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: 92vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.2);
	animation: app-promo-slide-up 0.28s ease-out;
}

@keyframes app-promo-slide-up {
	from { transform: translateY(40px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

.app-promo-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	z-index: 2;
}

.app-promo-modal__hero {
	position: relative;
	background: #efe2e5;
	padding: 26px 20px 0;
	text-align: center;
	overflow: hidden;
}

.app-promo-modal__hero-title {
	font-size: 22px;
	font-weight: 800;
	color: #222;
	margin-bottom: 14px;
}

.app-promo-modal__brand {
	color: #b8123f;
}

.app-promo-modal__image {
	width: 100%;
	max-width: 420px;
	display: block;
	margin: 0 auto;
	border-radius: 12px 12px 0 0;
}

.app-promo-modal__body {
	padding: 22px 20px 26px;
	text-align: center;
}

.app-promo-modal__headline {
	font-size: 22px;
	font-weight: 800;
	color: #222;
	margin: 0 0 6px;
	line-height: 1.25;
}

.app-promo-modal__subtext {
	font-size: 14px;
	color: #888;
	margin: 0 0 20px;
}

.app-promo-modal__cta {
	display: block;
	width: 100%;
	box-sizing: border-box;
	background: #b8123f;
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	padding: 15px 20px;
	border-radius: 10px;
	margin-bottom: 14px;
}

.app-promo-modal__continue {
	background: none;
	border: none;
	font-size: 15px;
	font-weight: 600;
	color: #444;
	cursor: pointer;
	padding: 6px;
}

/* ---------- Responsive: hide on larger screens if desired via JS mobile check ---------- */
@media (min-width: 900px) {
	.app-promo-modal {
		max-width: 400px;
		border-radius: 16px;
		margin-bottom: 24px;
	}
	.app-promo-overlay {
		align-items: center;
	}
}
