/**
 * Notification permission popup. Self-contained (doesn't depend on the
 * active theme's classes) so the plugin looks right under any theme;
 * uses the STA brand colors directly.
 */

.stapush-popup {
	position: fixed;
	left: 1.25rem;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 100000;
	display: flex;
	justify-content: center;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 400ms ease, transform 400ms ease;
	pointer-events: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (min-width: 480px) {
	.stapush-popup {
		left: auto;
		right: 1.5rem;
		bottom: 1.5rem;
		justify-content: flex-end;
	}
}

.stapush-popup.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.stapush-popup__card {
	width: 100%;
	max-width: 380px;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 20px 55px rgba(31, 36, 48, 0.18);
	padding: 1.5rem;
	border: 1px solid #eee;
}

.stapush-popup__title {
	font-weight: 700;
	font-size: 1.05rem;
	color: #1f2430;
	margin: 0 0 0.5rem;
}

.stapush-popup__text {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #5b5f6e;
	margin: 0 0 1.25rem;
}

.stapush-popup__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.stapush-popup__btn {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.7rem 1.1rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.stapush-popup__btn--primary {
	background: linear-gradient(135deg, #d445bb, #6a1b9a);
	color: #fff;
	box-shadow: 0 8px 20px rgba(106, 27, 154, 0.3);
}

.stapush-popup__btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(106, 27, 154, 0.38);
}

.stapush-popup__btn--primary:disabled {
	opacity: 0.7;
	cursor: default;
	transform: none;
}

.stapush-popup__btn--ghost {
	background: #f4f0f8;
	color: #6a1b9a;
}

.stapush-popup__btn--ghost:hover {
	background: #ebe1f3;
}

.stapush-popup__btn:focus-visible {
	outline: 2px solid #6a1b9a;
	outline-offset: 2px;
}

.stapush-popup__success {
	margin: 0.25rem 0 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1e8e5a;
	animation: stapush-pop-in 350ms ease;
}

.stapush-popup__success span {
	display: block;
	font-size: 0.85rem;
	font-weight: 400;
	color: #5b5f6e;
	margin-top: 0.25rem;
}

@keyframes stapush-pop-in {
	from { opacity: 0; transform: scale(0.9); }
	to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.stapush-popup,
	.stapush-popup__btn,
	.stapush-popup__success {
		transition: none;
		animation: none;
	}
}
