/* YOLO Campaign Popup */

.ycp {
	--ycp-bg: #12121a;
	--ycp-text: #f5f3ee;
	--ycp-accent: #ff4d3d;
	--ycp-accent-text: #ffffff;
	--ycp-overlay: rgba(0, 0, 0, 0.7);
	--ycp-radius: 4px;
	--ycp-z: 2147483000;

	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: var(--ycp-z);
	pointer-events: none;
}

/* !important guards against theme resets that set display on generic
   containers. The [hidden] rule below still wins because it comes later. */
.ycp:not([hidden]) {
	display: flex !important;
}

.ycp[hidden] {
	display: none !important;
}

.ycp__overlay {
	position: absolute;
	inset: 0;
	background: var(--ycp-overlay);
	opacity: 0;
	transition: opacity 220ms ease;
	pointer-events: auto;
}

.ycp__dialog {
	position: relative;
	box-sizing: border-box;
	background: var(--ycp-bg);
	color: var(--ycp-text);
	border-radius: var(--ycp-radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	padding: 40px 36px 32px;
	pointer-events: auto;
	opacity: 0;
	transition: opacity 220ms ease, transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.ycp__dialog * {
	box-sizing: border-box;
}

/* --- Positions ------------------------------------------------------- */

.ycp--center {
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ycp--center .ycp__dialog {
	width: 100%;
	max-width: 460px;
	transform: translateY(12px) scale(0.98);
	text-align: center;
}

.ycp--bottom-right {
	align-items: flex-end;
	justify-content: flex-end;
	padding: 20px;
}

.ycp--bottom-right .ycp__overlay {
	display: none;
}

.ycp--bottom-right .ycp__dialog {
	width: 100%;
	max-width: 360px;
	padding: 28px 26px 24px;
	transform: translateY(16px);
}

.ycp--bottom-bar {
	align-items: flex-end;
}

.ycp--bottom-bar .ycp__overlay {
	display: none;
}

.ycp--bottom-bar .ycp__dialog {
	width: 100%;
	border-radius: 0;
	padding: 20px 60px 20px 28px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	transform: translateY(100%);
	text-align: left;
}

.ycp--bottom-bar .ycp__headline,
.ycp--bottom-bar .ycp__body p {
	margin: 0;
}

.ycp--bottom-bar .ycp__headline {
	font-size: 20px;
}

.ycp--bottom-bar .ycp__cta {
	margin: 0 0 0 auto;
}

.ycp--bottom-bar .ycp__coupon,
.ycp--bottom-bar .ycp__footnote {
	margin: 0;
}

/* --- Open state ------------------------------------------------------ */

.ycp.is-open .ycp__overlay {
	opacity: 1;
}

.ycp.is-open .ycp__dialog {
	opacity: 1;
	transform: none;
}

/* --- Parts ----------------------------------------------------------- */

.ycp__badge {
	display: inline-block;
	margin: 0 0 16px;
	padding: 6px 12px;
	background: var(--ycp-accent);
	color: var(--ycp-accent-text);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
	border-radius: 999px;
}

.ycp__headline {
	margin: 0 0 12px;
	color: var(--ycp-text);
	font-size: 30px;
	line-height: 1.15;
	font-weight: 700;
}

.ycp__body {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.5;
	opacity: 0.85;
}

.ycp__body p {
	margin: 0 0 8px;
	color: inherit;
}

.ycp__body p:last-child {
	margin-bottom: 0;
}

.ycp__coupon {
	display: inline-flex;
	align-items: stretch;
	margin: 0 0 22px;
	border: 1px dashed currentColor;
	border-radius: var(--ycp-radius);
	overflow: hidden;
}

.ycp__code {
	padding: 10px 16px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 16px;
	letter-spacing: 0.12em;
	background: none;
	color: inherit;
}

.ycp__copy {
	margin: 0;
	padding: 10px 16px;
	border: 0;
	border-left: 1px dashed currentColor;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
}

.ycp__copy:hover {
	background: rgba(255, 255, 255, 0.08);
}

.ycp__cta {
	display: inline-block;
	padding: 14px 28px;
	background: var(--ycp-accent);
	color: var(--ycp-accent-text);
	border-radius: var(--ycp-radius);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: filter 150ms ease;
}

.ycp__cta:hover,
.ycp__cta:focus {
	color: var(--ycp-accent-text);
	filter: brightness(1.1);
	text-decoration: none;
}

.ycp__footnote {
	margin: 16px 0 0;
	font-size: 12px;
	opacity: 0.6;
}

.ycp__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	padding: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: none;
	color: inherit;
	opacity: 0.6;
	cursor: pointer;
	border-radius: 50%;
}

.ycp__close:hover {
	opacity: 1;
}

.ycp__close svg {
	width: 100%;
	height: 100%;
	fill: none;
}

.ycp :focus-visible {
	outline: 2px solid var(--ycp-accent);
	outline-offset: 3px;
}

/* --- Mobile ---------------------------------------------------------- */

@media (max-width: 600px) {
	.ycp--bottom-right,
	.ycp--center {
		padding: 12px;
	}

	.ycp--bottom-right .ycp__dialog,
	.ycp--center .ycp__dialog {
		max-width: none;
		padding: 34px 22px 26px;
	}

	.ycp__headline {
		font-size: 24px;
	}

	.ycp--bottom-bar .ycp__dialog {
		padding: 18px 50px 18px 18px;
	}

	.ycp--bottom-bar .ycp__cta {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ycp__overlay,
	.ycp__dialog {
		transition: none;
	}

	.ycp--center .ycp__dialog,
	.ycp--bottom-right .ycp__dialog,
	.ycp--bottom-bar .ycp__dialog {
		transform: none;
	}
}
