/* SexyGuide promo popup */

.sgbp {
	--sgbp-accent: #e1067a;
	--sgbp-accent-dark: #c10569;
	--sgbp-ink: #1a1a1a;
	--sgbp-muted: #4b5563;
	position: fixed;
	inset: 0;
	z-index: 2147482000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	box-sizing: border-box;
}

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

.sgbp__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 12, 22, 0.58);
}

.sgbp__card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: min(36rem, 100%);
	max-height: calc(100vh - 2.5rem);
	overflow: auto;
	padding: 2.4rem 3.2rem 1.6rem 2rem;
	background: #fff;
	color: var(--sgbp-ink);
	border-radius: 1.75rem;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
	animation: sgbp-in 0.28s ease-out;
}

@keyframes sgbp-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sgbp__card {
		animation: none;
	}
}

.sgbp__card .wp-block-image,
.sgbp__card figure {
	margin: 0 0 1rem;
	max-width: 100%;
}

.sgbp__card img {
	display: block;
	width: 100%;
	max-width: 100%;
	max-height: 16rem;
	height: auto;
	object-fit: contain;
	border-radius: 1rem;
}

.sgbp__badge {
	display: inline-block;
	align-self: flex-start;
	margin: 0 0 1rem;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	background: #fff0f7;
	color: var(--sgbp-accent);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}

.sgbp__close {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: #6b7280;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1.45rem;
	line-height: 1;
	cursor: pointer;
	appearance: none;
}

.sgbp__close:hover,
.sgbp__close:focus-visible {
	background: #e5e7eb;
	color: #111827;
}

.sgbp__kicker {
	margin: 0 0 0.7rem;
	color: var(--sgbp-accent);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.sgbp__title,
.sgbp__card h2.sgbp__title {
	margin: 0 0 0.35rem;
	color: var(--sgbp-ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: clamp(1.85rem, 3vw, 2.45rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.sgbp__accent {
	margin: 0 0 1rem;
	color: var(--sgbp-accent);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: clamp(1.45rem, 2.4vw, 1.95rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.sgbp__lead {
	margin: 0 0 1.35rem;
	color: var(--sgbp-muted);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1.02rem;
	font-weight: 400;
	line-height: 1.45;
}

.sgbp__coupon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 11rem;
	margin: 0 0 0.35rem;
	padding: 0.72rem 1.35rem;
	border: 2px dashed var(--sgbp-accent);
	border-radius: 0.9rem;
	background: #fff;
	color: var(--sgbp-accent);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.2;
	cursor: pointer;
	appearance: none;
}

.sgbp__coupon.is-copied {
	background: #fff0f7;
}

.sgbp__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 1rem 0 0;
	padding: 0.95rem 1.25rem;
	border: 0;
	border-radius: 999px;
	background: var(--sgbp-accent);
	color: #fff;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	appearance: none;
}

.sgbp__cta:hover,
.sgbp__cta:focus-visible {
	background: var(--sgbp-accent-dark);
	color: #fff;
}

.sgbp__dismiss {
	display: block;
	width: 100%;
	margin: 1.15rem 0 0;
	padding: 0.25rem;
	border: 0;
	background: transparent;
	color: #6b7280;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	cursor: pointer;
	appearance: none;
}

.sgbp__dismiss:hover,
.sgbp__dismiss:focus-visible {
	color: #111827;
}

.sgbp__close:focus-visible,
.sgbp__coupon:focus-visible,
.sgbp__cta:focus-visible,
.sgbp__dismiss:focus-visible {
	outline: 2px solid var(--sgbp-accent);
	outline-offset: 3px;
}

html.sgbp-open,
html.sgbp-open body {
	overflow: hidden !important;
}

@media (max-width: 760px) {
	.sgbp {
		padding: 0.75rem;
		align-items: flex-end;
	}

	.sgbp__card {
		width: 100%;
		max-height: calc(100vh - 1.5rem);
		padding: 2rem 1.25rem 1.3rem;
		border-radius: 1.35rem;
	}
}
