/* Store promotion: announcement bar and first visit popup. Halloween theme. */
.sp-promo-bar {
	position: relative;
	z-index: 50;
	background: linear-gradient(90deg, #1a1036, #3b1a5a 45%, #e85d04 130%);
	color: #fff;
	font-size: 0.875rem;
}

.sp-promo-bar-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem 1rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.55rem 1rem;
	text-align: center;
}

.sp-promo-bar strong {
	color: #ffd166;
}

.sp-promo-code {
	padding: 0.1rem 0.5rem;
	border: 1px dashed rgba(255, 209, 102, 0.8);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.sp-promo-code:hover,
.sp-promo-code:focus-visible {
	background: rgba(255, 209, 102, 0.2);
}

.sp-promo-bar .sp-promo-count {
	font-variant-numeric: tabular-nums;
	opacity: 0.85;
}

.sp-promo-bar-go {
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	background: #ffa53d;
	color: #1a1036;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.sp-promo-bar-go:hover {
	background: #ffd166;
}

.sp-promo-modal[hidden] {
	display: none;
}

.sp-promo-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.sp-promo-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 6, 24, 0.62);
	backdrop-filter: blur(3px);
}

.sp-promo-card {
	position: relative;
	width: min(440px, 100%);
	max-height: calc(100vh - 2rem);
	overflow: auto;
	padding: 0 1.8rem 1.6rem;
	border-radius: 22px;
	background: radial-gradient(420px 260px at 80% 0%, #4a2380 0%, rgba(74, 35, 128, 0) 70%), linear-gradient(160deg, #1a1036 0%, #241347 60%, #3b1a2a 100%);
	color: #efe8ff;
	text-align: center;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sp-promo-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 16px no-repeat;
	cursor: pointer;
}

.sp-promo-close:hover,
.sp-promo-close:focus-visible {
	background-color: rgba(255, 255, 255, 0.24);
}

.sp-promo-art {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
	margin: 0.4rem auto -0.4rem;
}

.sp-promo-kicker {
	margin: 0 0 0.3rem;
	color: #ffa53d;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.sp-promo-card h2 {
	margin: 0 0 0.6rem;
	color: #fff;
	font-size: clamp(1.6rem, 6vw, 2.1rem);
	line-height: 1.1;
}

.sp-promo-card h2 span {
	display: block;
	color: #ffd166;
	font-size: 1.5em;
	letter-spacing: -0.02em;
}

.sp-promo-lead {
	margin: 0 0 1.1rem;
	color: rgba(239, 232, 255, 0.85);
	font-size: 0.95rem;
	line-height: 1.55;
}

.sp-promo-coupon {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 0.9rem;
	padding: 0.55rem 0.55rem 0.55rem 0.9rem;
	border: 2px dashed rgba(255, 209, 102, 0.7);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.05);
	text-align: left;
}

.sp-promo-coupon span {
	color: rgba(239, 232, 255, 0.7);
	font-size: 0.75rem;
}

.sp-promo-coupon strong {
	flex: 1;
	color: #fff;
	font-size: 1.15rem;
	letter-spacing: 0.08em;
}

.sp-promo-copy {
	padding: 0.5rem 0.9rem;
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: #1a1036;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.sp-promo-copy:hover,
.sp-promo-copy:focus-visible {
	background: #ffd166;
}

.sp-promo-go {
	display: block;
	padding: 0.85rem 1rem;
	border-radius: 12px;
	background: linear-gradient(90deg, #ff9f1c, #e85d04);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(232, 93, 4, 0.35);
}

.sp-promo-go:hover,
.sp-promo-go:focus-visible {
	filter: brightness(1.08);
}

.sp-promo-fine {
	margin: 0.8rem 0 0;
	color: rgba(239, 232, 255, 0.6);
	font-size: 0.78rem;
}

.sp-promo-fine .sp-promo-count {
	color: #ffd166;
	font-weight: 700;
}

/* Sale prices on the plugin pricing cards. */
.spc-sale {
	display: inline-block;
	margin: 0 0 0.4rem;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: #fff1e6;
	color: #c2410c;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: no-preference) {
	.sp-promo-modal:not([hidden]) .sp-promo-card {
		animation: sp-promo-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1.1) both;
	}

	.sp-promo-modal:not([hidden]) .sp-promo-backdrop {
		animation: sp-promo-fade 0.3s ease-out both;
	}

	.sp-bat--1 {
		animation: sp-bat 3.2s ease-in-out infinite;
	}

	.sp-bat--2 {
		animation: sp-bat 2.6s 0.4s ease-in-out infinite;
	}

	.sp-pumpkin {
		transform-origin: 160px 190px;
		animation: sp-wobble 4s ease-in-out infinite;
	}
}

@keyframes sp-promo-in {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes sp-promo-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes sp-bat {
	0%,
	100% {
		transform: translate(0, 0);
	}
	50% {
		transform: translate(6px, -6px);
	}
}

@keyframes sp-wobble {
	0%,
	100% {
		transform: rotate(0);
	}
	50% {
		transform: rotate(2deg);
	}
}

@media (max-width: 600px) {
	.sp-promo-bar-in {
		font-size: 0.8125rem;
	}

	.sp-promo-bar .sp-promo-count {
		display: none;
	}
}
