:root {
	--hk-pwa-bg: #c5efe0;
	--hk-pwa-bg-hover: #b4e8d4;
	--hk-pwa-text: #111111;
	--hk-pwa-shadow: 0 10px 28px rgba(17, 17, 17, 0.14);
}

.hk-pwa-root {
	position: relative;
	z-index: 99990;
}

.hk-pwa-install-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	border-radius: 999px;
	background: var(--hk-pwa-bg);
	color: var(--hk-pwa-text);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	padding: 12px 22px;
	cursor: pointer;
	box-shadow: var(--hk-pwa-shadow);
	transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
	white-space: nowrap;
}

.hk-pwa-install-btn:hover,
.hk-pwa-install-btn:focus {
	background: var(--hk-pwa-bg-hover);
	transform: translateY(-1px);
	outline: none;
}

.hk-pwa-install-btn:active {
	transform: translateY(0);
}

.hk-pwa-install-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.hk-pwa-install-btn--header {
	padding: 8px 14px;
	font-size: 13px;
	box-shadow: 0 4px 14px rgba(17, 17, 17, 0.12);
}

.hk-pwa-install-btn--header .hk-pwa-install-btn__icon svg {
	width: 16px;
	height: 16px;
}

.hk-pwa-install-btn--float {
	position: fixed;
	left: 16px;
	bottom: 18px;
	z-index: 99991;
	padding: 13px 20px;
	animation: hkPwaFloatIn 0.45s ease;
}

.hk-pwa-install-btn--banner {
	padding: 10px 18px;
	font-size: 14px;
	box-shadow: none;
}

.hk-pwa-install-btn--modal {
	width: 100%;
	margin-top: 8px;
	box-shadow: none;
}

.hk-pwa-chip {
	display: inline-flex;
	align-items: center;
}

.hk-pwa-banner {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 99992;
	animation: hkPwaBannerIn 0.35s ease;
}

.hk-pwa-banner__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 14px 16px;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 16px 40px rgba(17, 17, 17, 0.18);
	border: 1px solid rgba(17, 17, 17, 0.06);
}

.hk-pwa-banner__icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--hk-pwa-bg);
	color: var(--hk-pwa-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hk-pwa-banner__copy strong {
	display: block;
	font-size: 15px;
	line-height: 1.3;
	color: #111;
}

.hk-pwa-banner__copy p {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: #666;
}

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

.hk-pwa-banner__close {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #f2f4f7;
	color: #555;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.hk-pwa-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
}

.hk-pwa-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.45);
}

.hk-pwa-modal__sheet {
	position: relative;
	width: min(100%, 420px);
	background: #fff;
	border-radius: 22px 22px 18px 18px;
	padding: 24px 22px 22px;
	box-shadow: 0 24px 60px rgba(17, 17, 17, 0.24);
	animation: hkPwaSheetIn 0.28s ease;
}

.hk-pwa-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #f2f4f7;
	color: #555;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.hk-pwa-modal__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--hk-pwa-bg);
	color: var(--hk-pwa-text);
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 12px;
}

.hk-pwa-modal__title {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.25;
	color: #111;
}

.hk-pwa-modal__lead {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
	color: #555;
}

.hk-pwa-modal__steps {
	margin: 0 0 18px;
	padding-left: 18px;
	color: #222;
}

.hk-pwa-modal__steps li {
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.5;
}

.hk-pwa-modal__steps li:last-child {
	margin-bottom: 0;
}

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

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

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

@media (min-width: 768px) {
	.hk-pwa-install-btn--float {
		left: 24px;
		bottom: 24px;
	}

	.hk-pwa-banner {
		left: auto;
		right: 24px;
		bottom: 24px;
		width: min(420px, calc(100% - 48px));
	}

	.hk-pwa-modal {
		align-items: center;
	}

	.hk-pwa-modal__sheet {
		border-radius: 22px;
	}
}

@media (max-width: 575px) {
	.hk-pwa-banner__inner {
		grid-template-columns: auto 1fr;
	}

	.hk-pwa-banner__actions {
		grid-column: 1 / -1;
		justify-content: space-between;
	}

	.hk-pwa-install-btn--header .hk-pwa-install-btn__text {
		display: none;
	}

	.hk-pwa-install-btn--header {
		width: 38px;
		height: 38px;
		padding: 0;
		border-radius: 50%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hk-pwa-install-btn--float,
	.hk-pwa-banner,
	.hk-pwa-modal__sheet {
		animation: none;
	}
}
