/* Avada PWA — install banner */

.apwa-banner {
	position: fixed;
	z-index: 99999;
	left: 50%;
	bottom: 0;
	width: 100%;
	max-width: 480px;
	box-sizing: border-box;
	padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
	background: #fff;
	color: #23282d;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.18);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	transform: translate(-50%, 110%);
	transition: transform 0.25s ease-out;
}

.apwa-banner.is-visible {
	transform: translate(-50%, 0);
}

/* Desktop: float as a card above the bottom edge. */
@media (min-width: 782px) {
	.apwa-banner {
		bottom: 24px;
		border-radius: 14px;
		transform: translate(-50%, 160%);
	}
	.apwa-banner.is-visible {
		transform: translate(-50%, 0);
	}
}

.apwa-banner__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: #787c82;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
}
.apwa-banner__close:hover {
	background: #f0f0f1;
	color: #1d2327;
}

.apwa-banner__main {
	display: flex;
	align-items: center;
	gap: 14px;
}

.apwa-banner__icon {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: contain;
	background: #f6f7f7;
}

.apwa-banner__copy {
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 18px;
}

.apwa-banner__title {
	margin: 0 0 3px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	color: inherit;
}

.apwa-banner__text {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.4;
	color: #50575e;
}

.apwa-banner__cta {
	flex: 0 0 auto;
	appearance: none;
	border: 0;
	cursor: pointer;
	padding: 10px 18px;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 999px;
	color: #fff;
	background: var(--apwa-theme, #1e73be);
	white-space: nowrap;
}
.apwa-banner__cta:hover {
	filter: brightness(0.92);
}

/* iOS step-by-step instructions */
.apwa-banner__ios,
.apwa-banner__note {
	margin: 14px 0 0;
	padding: 12px 14px;
	background: #f6f7f7;
	border-radius: 10px;
	font-size: 0.85rem;
	line-height: 1.5;
	color: #3c434a;
}

.apwa-banner__ios-step {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}
.apwa-banner__ios-step + .apwa-banner__ios-step {
	margin-top: 8px;
}

.apwa-banner__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--apwa-theme, #1e73be);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
}

.apwa-banner__share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #dcdcde;
	color: #007aff;
	vertical-align: middle;
}

/* Shortcode trigger button */
.apwa-install-trigger {
	appearance: none;
	border: 0;
	cursor: pointer;
	padding: 12px 22px;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 999px;
	color: #fff;
	background: var(--apwa-theme, #1e73be);
}
.apwa-install-trigger:hover {
	filter: brightness(0.92);
}

@media (prefers-color-scheme: dark) {
	.apwa-banner {
		background: #1d2327;
		color: #f0f0f1;
	}
	.apwa-banner__text {
		color: #c3c4c7;
	}
	.apwa-banner__ios,
	.apwa-banner__note {
		background: #2c3338;
		color: #e0e0e0;
	}
	.apwa-banner__share {
		background: #1d2327;
		border-color: #50575e;
	}
	.apwa-banner__icon {
		background: #2c3338;
	}
}

@media (prefers-reduced-motion: reduce) {
	.apwa-banner {
		transition: none;
	}
}
