.sociallove-pwa-banner[hidden],
.sociallove-pwa-dialog[hidden] {
	display: none !important;
}

.sociallove-pwa-banner {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 999999;
	display: flex;
	align-items: center;
	gap: 12px;
	width: min(540px, calc(100vw - 36px));
	padding: 14px 48px 14px 16px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 18px;
	background: #171717;
	box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
	color: #fff;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.35;
	animation: sociallove-pwa-enter 240ms ease-out;
}

.sociallove-pwa-banner__heart {
	flex: 0 0 auto;
	font-size: 30px;
	line-height: 1;
}

.sociallove-pwa-banner__copy {
	flex: 1 1 auto;
	font-size: 15px;
	font-weight: 700;
}

.sociallove-pwa-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--sociallove-pwa-accent, #d31336);
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	font: 700 15px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-decoration: none;
	transition: filter 160ms ease, transform 160ms ease;
}

.sociallove-pwa-button:hover {
	filter: brightness(1.12);
	transform: translateY(-1px);
	color: #fff;
}

.sociallove-pwa-button:focus-visible,
.sociallove-pwa-banner__close:focus-visible,
.sociallove-pwa-dialog__close:focus-visible {
	outline: 3px solid #ffd54a;
	outline-offset: 3px;
}

.sociallove-pwa-banner__close,
.sociallove-pwa-dialog__close {
	position: absolute;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	font: 400 28px/1 system-ui, sans-serif;
}

.sociallove-pwa-banner__close {
	top: 7px;
	right: 7px;
}

.sociallove-pwa-dialog {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: grid;
	place-items: center;
	padding: 20px;
}

.sociallove-pwa-dialog__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(4px);
}

.sociallove-pwa-dialog__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 480px);
	padding: 34px 28px 28px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 24px;
	background: var(--sociallove-pwa-background, #111);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
	color: #fff;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-align: center;
}

.sociallove-pwa-dialog__panel h2 {
	margin: 8px 0 12px;
	color: #fff;
	font-size: 28px;
	line-height: 1.2;
}

.sociallove-pwa-dialog__panel p {
	margin: 0 0 24px;
	color: #e6e6e6;
	font-size: 16px;
	line-height: 1.55;
}

.sociallove-pwa-dialog__close {
	top: 9px;
	right: 9px;
}

.sociallove-pwa-dialog__icon {
	font-size: 52px;
	line-height: 1;
}

.sociallove-pwa-dialog-open {
	overflow: hidden;
}

.sociallove-pwa-is-installed .sociallove-pwa-shortcode-button {
	display: none;
}

@keyframes sociallove-pwa-enter {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 640px) {
	.sociallove-pwa-banner {
		left: 12px;
		right: 12px;
		bottom: 12px;
		flex-wrap: wrap;
		width: auto;
		padding: 14px 45px 14px 14px;
	}

	.sociallove-pwa-banner__copy {
		min-width: calc(100% - 50px);
	}

	.sociallove-pwa-banner .sociallove-pwa-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sociallove-pwa-banner {
		animation: none;
	}

	.sociallove-pwa-button {
		transition: none;
	}
}
