.wpia-prompt,
.wpia-prompt * {
	box-sizing: border-box;
}

.wpia-prompt {
	--wpia-text: #172033;
	--wpia-muted: #687386;
	--wpia-surface: rgba(255, 255, 255, .97);
	position: fixed;
	z-index: 2147482000;
	right: 20px;
	bottom: 20px;
	width: min(390px, calc(100vw - 28px));
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	pointer-events: none;
}

.wpia-prompt.is-installed {
	display: none !important;
}

.wpia-card {
	position: relative;
	overflow: hidden;
	padding: 24px;
	color: var(--wpia-text);
	background:
		radial-gradient(circle at 0 0, var(--wpia-accent-soft), transparent 42%),
		var(--wpia-surface);
	border: 1px solid rgba(23, 32, 51, .09);
	border-radius: 24px;
	box-shadow: 0 24px 80px rgba(24, 29, 48, .2), 0 4px 16px rgba(24, 29, 48, .08);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	opacity: 0;
	transform: translateX(calc(100% + 48px)) scale(.96);
	transform-origin: right bottom;
	transition: transform .42s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
	pointer-events: auto;
}

.wpia-prompt.is-open .wpia-card {
	opacity: 1;
	transform: translateX(0) scale(1);
}

.wpia-prompt.is-collapsed .wpia-card {
	opacity: 0;
	transform: translateX(calc(100% + 48px)) scale(.96);
	pointer-events: none;
}

.wpia-close {
	position: absolute;
	z-index: 2;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	color: #70798a;
	background: rgba(255, 255, 255, .72);
	border: 1px solid rgba(23, 32, 51, .08);
	border-radius: 50%;
	cursor: pointer;
	transition: color .2s ease, background .2s ease, transform .2s ease;
}

.wpia-close:hover {
	color: var(--wpia-text);
	background: #fff;
	transform: rotate(6deg);
}

.wpia-close svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.wpia-icon-wrap {
	position: relative;
	width: 68px;
	margin-bottom: 17px;
}

.wpia-icon-wrap img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border: 1px solid rgba(23, 32, 51, .08);
	border-radius: 18px;
	box-shadow: 0 12px 28px rgba(23, 32, 51, .16);
}

.wpia-mini-badge {
	position: absolute;
	right: -2px;
	bottom: -5px;
	display: grid;
	place-items: center;
	width: 27px;
	height: 27px;
	color: #fff;
	background: var(--wpia-accent);
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 5px 12px rgba(23, 32, 51, .22);
}

.wpia-mini-badge svg {
	width: 13px;
	height: 13px;
	fill: currentColor;
}

.wpia-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
	color: var(--wpia-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.wpia-eyebrow::before {
	width: 6px;
	height: 6px;
	background: var(--wpia-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 4px var(--wpia-accent-soft);
	content: "";
}

.wpia-copy h2,
.wpia-instructions h2 {
	margin: 0 38px 8px 0;
	color: var(--wpia-text);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.025em;
}

.wpia-copy p,
.wpia-instruction-text {
	margin: 0 0 18px;
	color: var(--wpia-muted);
	font-size: 14px;
	line-height: 1.52;
}

.wpia-install-button,
.wpia-got-it {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 48px;
	padding: 12px 18px;
	color: #fff;
	background: var(--wpia-accent);
	border: 0;
	border-radius: 14px;
	box-shadow: 0 12px 26px var(--wpia-accent-soft);
	font: 750 14px/1.2 inherit;
	cursor: pointer;
	transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.wpia-install-button:hover,
.wpia-got-it:hover {
	filter: brightness(.95);
	transform: translateY(-1px);
	box-shadow: 0 15px 30px var(--wpia-accent-soft);
}

.wpia-install-button:active,
.wpia-got-it:active {
	transform: translateY(1px);
}

.wpia-install-button:disabled {
	cursor: wait;
	filter: grayscale(.3);
	opacity: .72;
}

.wpia-install-button svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
}

.wpia-note {
	margin: 10px 0 -4px;
	color: #8992a1;
	font-size: 11px;
	font-weight: 600;
	text-align: center;
}

.wpia-tab {
	position: absolute;
	right: -8px;
	bottom: 88px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	min-width: 56px;
	height: 56px;
	padding: 10px;
	color: #fff;
	background: var(--wpia-accent);
	border: 0;
	border-radius: 18px 0 0 18px;
	box-shadow: 0 12px 30px rgba(23, 32, 51, .22);
	cursor: pointer;
	opacity: 0;
	transform: translateX(calc(100% + 24px));
	transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .25s ease, filter .2s ease;
	pointer-events: auto;
}

.wpia-prompt.is-collapsed .wpia-tab {
	opacity: 1;
	transform: translateX(0);
}

.wpia-prompt.is-collapsed .wpia-tab:hover,
.wpia-prompt.is-collapsed .wpia-tab:focus-visible {
	filter: brightness(1.06);
	transform: translateX(-4px);
}

.wpia-tab-icon {
	display: grid;
	flex: 0 0 36px;
	place-items: center;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, .17);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 11px;
}

.wpia-tab svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.wpia-instructions {
	min-height: 258px;
	padding-top: 11px;
	text-align: center;
}

.wpia-instructions[hidden],
.wpia-main-view[hidden] {
	display: none !important;
}

.wpia-back {
	position: absolute;
	top: 13px;
	left: 13px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	color: var(--wpia-text);
	background: rgba(255, 255, 255, .78);
	border: 1px solid rgba(23, 32, 51, .08);
	border-radius: 50%;
	cursor: pointer;
}

.wpia-back svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
}

.wpia-instruction-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 7px auto 17px;
	color: var(--wpia-accent);
	background: var(--wpia-accent-soft);
	border-radius: 20px;
}

.wpia-instruction-icon svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

.wpia-instructions h2 {
	margin-right: 0;
}

.wpia-status {
	position: absolute;
	right: 18px;
	bottom: 13px;
	left: 18px;
	color: var(--wpia-muted);
	font-size: 0;
	text-align: center;
	pointer-events: none;
}

.wpia-status:not(:empty) {
	bottom: 72px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid rgba(23, 32, 51, .08);
	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(23, 32, 51, .1);
	font-size: 11px;
	font-weight: 650;
}

.wpia-prompt button:focus-visible {
	outline: 3px solid var(--wpia-accent-soft);
	outline-offset: 3px;
}

@media (max-width: 520px) {
	.wpia-prompt {
		right: 14px;
		bottom: max(14px, env(safe-area-inset-bottom));
		width: calc(100vw - 28px);
	}

	.wpia-card {
		padding: 21px;
		border-radius: 22px;
	}

	.wpia-tab {
		right: -8px;
		bottom: 84px;
	}

	.wpia-copy h2 {
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpia-prompt *,
	.wpia-prompt *::before,
	.wpia-prompt *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
