.bf-pwa-card {
	margin: 28px 0 8px;
}

.bf-pwa-card__frame {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	padding: 22px 24px;
	border: 1px solid rgba(37, 99, 235, 0.22);
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(124, 58, 237, 0.08));
	box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.bf-pwa-card__icon {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.bf-pwa-card__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bf-pwa-card__content {
	flex: 1 1 220px;
	min-width: 0;
}

.bf-pwa-card__title {
	margin: 0 0 6px;
	font-size: 1.08rem;
	line-height: 1.3;
	color: #0f172a;
}

.bf-pwa-card__text {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: #475569;
}

.bf-pwa-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-shrink: 0;
	border: 0;
	border-radius: 12px;
	padding: 12px 18px;
	background: linear-gradient(135deg, #2563eb, #7c3aed);
	color: #fff;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bf-pwa-card__button:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(37, 99, 235, 0.34);
}

.bf-pwa-card.is-installed {
	display: none;
}

.bf-pwa-banner {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 16px;
	background: linear-gradient(135deg, #2563eb, #7c3aed);
	color: #fff;
	box-shadow: 0 16px 40px rgba(37, 99, 235, 0.35);
	animation: bf-pwa-slide-up 0.35s ease;
}

.bf-pwa-banner__content {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.bf-pwa-banner__icon {
	font-size: 1.6rem;
	line-height: 1;
	flex-shrink: 0;
}

.bf-pwa-banner__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.bf-pwa-banner__text strong {
	font-size: 0.95rem;
	line-height: 1.2;
}

.bf-pwa-banner__text span {
	font-size: 0.8rem;
	opacity: 0.92;
}

.bf-pwa-banner__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.bf-pwa-banner__install {
	border: 0;
	border-radius: 999px;
	padding: 10px 14px;
	background: #fff;
	color: #1e40af;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.bf-pwa-banner__dismiss {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

.bf-pwa-install-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(37, 99, 235, 0.25);
	border-radius: 12px;
	padding: 10px 14px;
	background: rgba(37, 99, 235, 0.08);
	color: #1e40af;
	font-weight: 600;
	cursor: pointer;
}

.bf-pwa-install-btn__icon {
	font-size: 1.1rem;
	line-height: 1;
}

.bf-pwa-ios-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
}

.bf-pwa-ios-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.bf-pwa-ios-modal__panel {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	padding: 20px;
	border-radius: 18px;
	background: #fff;
	color: #0f172a;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.bf-pwa-ios-modal__panel h3 {
	margin: 0 0 12px;
	font-size: 1.05rem;
}

.bf-pwa-ios-modal__panel ol {
	margin: 0 0 16px;
	padding-left: 1.2rem;
}

.bf-pwa-ios-modal__panel li {
	margin-bottom: 8px;
}

.bf-pwa-ios-modal__close {
	width: 100%;
	border: 0;
	border-radius: 12px;
	padding: 12px 16px;
	background: linear-gradient(135deg, #2563eb, #7c3aed);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

body.bf-pwa-modal-open {
	overflow: hidden;
}

@keyframes bf-pwa-slide-up {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.bf-pwa-card__frame {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
		padding: 20px 18px;
	}

	.bf-pwa-card__icon {
		margin: 0 auto;
	}

	.bf-pwa-card__button {
		width: 100%;
	}
}

@media (min-width: 769px) {
	.bf-pwa-banner {
		left: auto;
		right: 20px;
		bottom: 20px;
		max-width: 420px;
	}
}
