#csip {
	--csip-bg: #ffffff;
	--csip-text: #1f4a50;
	--csip-accent: #1f4a50;
	--csip-btn-text: #ffffff;
	--csip-hl: #1fa368;
	--csip-soft: #e3ebf4;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: inherit;
	line-height: 1.45;
}
#csip[hidden] { display: none !important; }

.csip__overlay {
	position: absolute;
	inset: 0;
	background: rgba(31, 74, 80, .45);
	opacity: 0;
	transition: opacity .3s ease;
}
.csip__card {
	position: relative;
	width: 100%;
	max-width: 430px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	box-sizing: border-box;
	background: var(--csip-bg);
	color: var(--csip-text);
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(31, 74, 80, .28);
	text-align: center;
	opacity: 0;
	transform: translateY(16px) scale(.98);
	transition: opacity .3s ease, transform .3s ease;
}
#csip.is-open .csip__overlay { opacity: 1; }
#csip.is-open .csip__card { opacity: 1; transform: none; }

.csip__x {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: var(--csip-text);
	font-size: 24px;
	line-height: 34px;
	cursor: pointer;
}
.csip__x:hover { background: #fff; }

/* ---------- Visuals ---------- */
.csip__visual { position: relative; }
.csip__visual img { display: block; }

/* Icon */
.csip__visual--icon { padding: 30px 0 0; color: var(--csip-hl); }
.csip__icon { width: 72px; height: 72px; display: block; margin: 0 auto; }

/* A — fan of packs */
.csip__visual--packs {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	height: 170px;
	padding-top: 22px;
	box-sizing: border-box;
	background: var(--csip-soft);
	overflow: hidden;
}
.csip__visual--packs img {
	width: 118px;
	height: 118px;
	object-fit: cover;
	border-radius: 12px;
	border: 3px solid #fff;
	box-shadow: 0 10px 24px rgba(31, 74, 80, .22);
	margin: 0 -14px 14px;
}
.csip__visual--packs img:nth-child(1) { transform: rotate(-11deg) translateY(8px); }
.csip__visual--packs img:nth-child(2) { position: relative; z-index: 2; width: 132px; height: 132px; margin-bottom: 22px; }
.csip__visual--packs img:nth-child(3) { transform: rotate(11deg) translateY(8px); }

/* B — banner */
.csip__visual--banner img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	object-position: 40% 35%;
	border-radius: 14px 14px 0 0;
}

/* C — device + pack */
.csip__visual--device {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
	padding: 26px 0 10px;
	background: var(--csip-soft);
}
.csip__visual--device img {
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 14px;
	border: 3px solid #fff;
	box-shadow: 0 10px 24px rgba(31, 74, 80, .2);
}
.csip__visual--device img:nth-child(2) { width: 112px; height: 112px; margin-left: -18px; transform: rotate(6deg) translateY(14px); }

/* ---------- Body ---------- */
.csip__body { padding: 22px 30px 22px; }

.csip__eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--csip-hl);
}
.csip__title {
	margin: 0 0 10px;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--csip-text);
	text-transform: none;
	letter-spacing: -.01em;
}
.csip__hl { color: var(--csip-hl); }
.csip__text {
	margin: 0 0 16px;
	font-size: 15px;
	color: var(--csip-text);
	opacity: .85;
}

.csip__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
.csip__chips li {
	margin: 0;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	background: var(--csip-soft);
	color: var(--csip-text);
	border-radius: 999px;
}
.csip__chips li::before { content: '✓ '; color: var(--csip-hl); }

.csip__btn,
.csip__btn:visited {
	display: block;
	padding: 14px 20px;
	border-radius: 6px;
	background: var(--csip-accent);
	color: var(--csip-btn-text) !important;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background .2s ease, transform .2s ease;
}
.csip__btn:hover { background: var(--csip-hl); transform: translateY(-1px); }

.csip__no {
	display: inline-block;
	margin-top: 10px;
	padding: 6px;
	border: 0;
	background: transparent;
	color: var(--csip-text);
	opacity: .6;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}
.csip__no:hover { opacity: 1; }

/* Phones: bottom sheet */
@media (max-width: 560px) {
	#csip { align-items: flex-end; padding: 0; }
	.csip__card {
		max-width: none;
		max-height: 92vh;
		border-radius: 16px 16px 0 0;
		transform: translateY(100%);
	}
	.csip__body { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); }
	.csip__title { font-size: 22px; }
	.csip__visual--packs { height: 150px; }
	.csip__visual--packs img { width: 100px; height: 100px; }
	.csip__visual--packs img:nth-child(2) { width: 114px; height: 114px; }
	.csip__visual--banner img { height: 160px; border-radius: 16px 16px 0 0; }
	.csip__visual--device img { width: 118px; height: 118px; }
	.csip__visual--device img:nth-child(2) { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
	.csip__overlay, .csip__card { transition: none; }
}
