.fsp-popups {
	--fsp-plum: #37023c;
	--fsp-magenta: #a3407f;
	--fsp-yellow: #e8d66b;
	--fsp-white: #fff;
	--fsp-radius: 12px;
	--fsp-font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 9990;
	width: 336px;
	max-width: calc(100vw - 32px);
	font-family: var(--fsp-font);
	pointer-events: none;
}

.fsp-popups *,
.fsp-popups *::before,
.fsp-popups *::after {
	box-sizing: border-box;
}

.fsp-popups .fsp-popup {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin: 0;
	border-radius: var(--fsp-radius);
	background: var(--fsp-white);
	box-shadow: 0 12px 32px rgba(55, 2, 60, 0.18), 0 2px 6px rgba(55, 2, 60, 0.08);
	color: var(--fsp-plum);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: auto;
}

.fsp-popups .fsp-popup[hidden] {
	display: none !important;
}

.fsp-popups .fsp-popup.is-visible {
	opacity: 1;
	transform: none;
}

.fsp-popup__media {
	aspect-ratio: 2 / 1;
	overflow: hidden;
	background: var(--fsp-plum);
}

.fsp-popups .fsp-popup__media img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.fsp-popups .fsp-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--fsp-white) !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	color: #1a1a1a !important;
	line-height: 0;
	cursor: pointer;
}

.fsp-popups .fsp-popup__close svg {
	width: 16px;
	height: 16px;
}

.fsp-popups .fsp-popup__close:focus-visible,
.fsp-popups .fsp-popup__cta:focus-visible {
	outline: 2px solid var(--fsp-magenta);
	outline-offset: 2px;
}

.fsp-popup__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 20px 24px;
}

.fsp-popup--no-media .fsp-popup__body {
	padding-right: 56px;
}

.fsp-popup__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
}

.fsp-popup__tag {
	color: var(--fsp-magenta);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}

.fsp-popup__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--fsp-plum);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.fsp-popup__date svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.fsp-popups .fsp-popup__title {
	margin: 0;
	color: var(--fsp-plum);
	font-family: var(--fsp-font);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.fsp-popup__content {
	display: -webkit-box;
	overflow: hidden;
	color: var(--fsp-plum);
	font-size: 14px;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.fsp-popups .fsp-popup__content p {
	margin: 0 0 0.5em;
}

.fsp-popups .fsp-popup__content p:last-child {
	margin-bottom: 0;
}

.fsp-popups .fsp-popup__cta {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--fsp-yellow) !important;
	color: var(--fsp-plum) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
	transition: filter 0.2s ease;
}

.fsp-popups .fsp-popup__cta:hover {
	filter: brightness(0.95);
}

.fsp-popup__cta svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.fsp-popup__cta:hover svg {
	transform: translateX(2px);
}

@media (min-width: 768px) and (max-width: 1024px) {
	.fsp-popups {
		left: 20px;
		bottom: 20px;
		width: 320px;
	}
}

@media (max-width: 767px) {
	.fsp-popups {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
		max-width: 360px;
	}

	.fsp-popup__media {
		aspect-ratio: auto;
		height: 120px;
	}

	.fsp-popup__body {
		gap: 8px;
		padding: 14px 16px 16px;
	}

	.fsp-popup__tag {
		font-size: 15px;
	}

	.fsp-popup__date {
		font-size: 13px;
	}

	.fsp-popups .fsp-popup__title {
		font-size: 17px;
	}

	.fsp-popup__content {
		display: none;
	}

	.fsp-popups .fsp-popup__close {
		top: 8px;
		right: 8px;
		width: 28px;
		height: 28px;
	}
}

@media (max-height: 500px) {
	.fsp-popup__media,
	.fsp-popup__content {
		display: none;
	}

	.fsp-popup__body {
		padding-right: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fsp-popups .fsp-popup,
	.fsp-popup__cta svg {
		transform: none;
		transition: none;
	}
}

@media print {
	.fsp-popups {
		display: none !important;
	}
}
