/* ContextCue — context based call-to-action boxes */

.contextCueBox {
	z-index: 200;
	box-sizing: border-box;
	background: var(--wcfContentContainerBackground, var(--wcfContentBackground));
	border: 1px solid var(--wcfContentContainerBorder, var(--wcfContentBorderInner));
	border-radius: var(--wcfBorderRadius);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	color: var(--wcfContentText);
}

.contextCueBox[hidden] {
	display: none;
}

.contextCueBox__close {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wcfContentDimmedText);
	cursor: pointer;
}

.contextCueBox__close:hover {
	background: var(--wcfContentBackground);
	color: var(--wcfContentText);
}

.contextCueBox__link {
	display: flex;
	gap: 15px;
	align-items: center;
	padding: 18px 20px;
	color: inherit;
	text-decoration: none;
}

.contextCueBox__image img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: var(--wcfBorderRadius);
}

.contextCueBox__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.contextCueBox__title {
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.2;
}

.contextCueBox__text {
	color: var(--wcfContentDimmedText);
	font-size: 0.9rem;
}

.contextCueBox__button {
	align-self: flex-start;
	margin-top: 6px;
	padding: 5px 14px;
	border-radius: var(--wcfBorderRadius);
	background: var(--wcfButtonPrimaryBackground);
	color: var(--wcfButtonPrimaryText);
	font-size: 0.85rem;
	font-weight: 600;
}

/* ---- Slide-in (bottom right) ---- */
.contextCueBox--slidein {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 380px;
	max-width: calc(100vw - 40px);
	transform: translateX(120%);
	opacity: 0;
	transition: transform 0.45s ease, opacity 0.45s ease;
}

.contextCueBox--slidein.contextCueBox--visible {
	transform: translateX(0);
	opacity: 1;
}

.contextCueBox--slidein.contextCueBox--dismissed {
	transform: translateX(120%);
	opacity: 0;
}

/* ---- Top bar (full width) ---- */
.contextCueBox--topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	border-radius: 0;
	transform: translateY(-100%);
	opacity: 0;
	transition: transform 0.45s ease, opacity 0.45s ease;
}

.contextCueBox--topbar .contextCueBox__link {
	max-width: 1200px;
	margin: 0 auto;
}

.contextCueBox--topbar.contextCueBox--visible {
	transform: translateY(0);
	opacity: 1;
}

.contextCueBox--topbar.contextCueBox--dismissed {
	transform: translateY(-100%);
	opacity: 0;
}

/* ---- Inline (static block at the end of the page content) ---- */
.contextCueBox--inline {
	position: relative;
	width: 100%;
	max-width: 680px;
	margin: 20px auto;
	opacity: 0;
	transition: opacity 0.45s ease;
}

.contextCueBox--inline.contextCueBox--visible {
	opacity: 1;
}

.contextCueBox--inline.contextCueBox--dismissed {
	opacity: 0;
}

@media (max-width: 544px) {
	.contextCueBox--slidein {
		right: 10px;
		left: 10px;
		bottom: 10px;
		width: auto;
	}
}
