/* ============================================================
 * PWA 설치 버튼 / 설치 안내 모달
 * ------------------------------------------------------------
 * 기존 상단의 공유·설정 버튼 디자인과 어울리도록 구성합니다.
 * 브라우저에서 설치 가능한 상태일 때만 버튼이 표시됩니다.
 * ============================================================ */

.smart-install-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	min-width: 58px;
	padding: 0 14px;
	border: 1px solid #bfe8d3;
	border-radius: 999px;
	background: #ecfdf5;
	color: #087443;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: -0.03em;
	cursor: pointer;
	box-shadow: 0 6px 14px rgba(8, 116, 67, 0.08);
}

.smart-install-btn:active {
	transform: translateY(1px);
}

.smart-install-btn[hidden] {
	display: none !important;
}

/* 설치 방법 안내 모달 */
.pwa-guide-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.58);
	backdrop-filter: blur(5px);
}

.pwa-guide-modal[hidden] {
	display: none !important;
}

.pwa-guide-dialog {
	width: min(100%, 420px);
	border: 1px solid rgba(219, 229, 241, 0.95);
	border-radius: 24px;
	background: #ffffff;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
	overflow: hidden;
}

.pwa-guide-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 14px;
	border-bottom: 1px solid #edf2f7;
}

.pwa-guide-head h2 {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: #10233f;
}

.pwa-guide-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #52657b;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.pwa-guide-body {
	padding: 18px 20px 22px;
	color: #334155;
	font-size: 15px;
	line-height: 1.65;
	letter-spacing: -0.025em;
}

.pwa-guide-body p {
	margin: 0 0 12px;
}

.pwa-guide-body ol {
	margin: 0;
	padding-left: 22px;
}

.pwa-guide-body li + li {
	margin-top: 8px;
}

.pwa-guide-body strong {
	color: #10233f;
}

.pwa-guide-confirm {
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc(100% - 40px);
	height: 48px;
	margin: 0 20px 20px;
	border: 0;
	border-radius: 15px;
	background: #2563eb;
	color: #ffffff;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
}

@media (max-width: 420px) {
	.smart-install-btn {
		height: 31px;
		min-width: 47px;
		padding: 0 10px;
		font-size: 12px;
	}

	.pwa-guide-modal {
		align-items: flex-end;
		padding: 12px;
	}

	.pwa-guide-dialog {
		border-radius: 22px;
	}
}
