/* Surprise Puzzle order-bump box on the FunnelKit checkout. The pill IS the
   control: it flips "Add to order" (green) ↔ "Remove" (muted red). The image
   fills the full height flush to the right edge. */
.lubiwood-surprise {
	position: relative;
	margin: 34px 0 24px;
	padding: 0; /* the image goes edge-to-edge; text padding lives on __content */
	min-height: 150px; /* give the square image room so it shows in full and fills the height */
	border: 1px solid #cfe6c4;
	border-radius: 12px;
	background: #eef8e9;
	box-shadow: 0 1px 3px rgba(60, 110, 40, 0.08);
	transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.lubiwood-surprise.is-checked {
	border-color: #9fce8a;
	background: #e4f4da;
	box-shadow: 0 2px 10px rgba(60, 110, 40, 0.16);
}

.lubiwood-surprise.is-loading {
	opacity: 0.65;
	pointer-events: none;
}

/* The toggle button, overlapping the top edge like a tab. Styled like the final
   purchase button (solid green, white text, rounded). !important + a compound
   selector beat the checkout theme's <button> styling. */
.lubiwood-surprise .lubiwood-surprise__toggle {
	position: absolute;
	top: -18px;
	left: 22px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	min-width: 120px;
	justify-content: center;
	padding: 11px 24px;
	border: 0 !important;
	border-radius: 10px !important;
	background: #7cb342 !important;
	color: #fff !important;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	box-shadow: 0 2px 6px rgba(60, 110, 40, 0.28);
	cursor: pointer;
	transition: background 0.15s ease, box-shadow 0.15s ease;
	font-family: inherit;
}

.lubiwood-surprise .lubiwood-surprise__toggle .lubiwood-surprise__toggle-label,
.lubiwood-surprise .lubiwood-surprise__toggle .lubiwood-surprise__check,
.lubiwood-surprise .lubiwood-surprise__toggle .lubiwood-surprise__remove {
	color: #fff !important;
}

.lubiwood-surprise .lubiwood-surprise__toggle:hover {
	background: #6ba336 !important;
}

.lubiwood-surprise .lubiwood-surprise__toggle:focus-visible {
	outline: 2px solid #33691e;
	outline-offset: 2px;
}

/* Checkmark + smaller "remove" affordance, shown only in the added state. */
.lubiwood-surprise__check {
	display: none;
	align-items: center;
	margin-right: 6px;
}
.lubiwood-surprise.is-checked .lubiwood-surprise__check {
	display: inline-flex;
}
.lubiwood-surprise__remove {
	display: none;
	margin-left: 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: underline;
	opacity: 0.9;
}
.lubiwood-surprise.is-checked .lubiwood-surprise__remove {
	display: inline;
}

/* Added → stays green (success) with the checkmark; no alarming red. */
.lubiwood-surprise.is-checked .lubiwood-surprise__toggle {
	background: #5f9e34 !important;
	box-shadow: 0 2px 6px rgba(60, 110, 40, 0.24);
}
.lubiwood-surprise.is-checked .lubiwood-surprise__toggle:hover {
	background: #55912e !important;
}

.lubiwood-surprise__inner {
	display: block;
}

.lubiwood-surprise__content {
	/* extra top padding = clear gap below the CTA button; right padding reserves the
	   image column so the box height stays text-driven */
	padding: 46px 172px 22px 22px;
}

.lubiwood-surprise__row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.lubiwood-surprise__title {
	font-weight: 700;
	font-size: 21px;
	color: #23301c;
}

/* Price: solid green pill + white text so it's clearly legible (not green-on-green). */
.lubiwood-surprise__price {
	flex: 0 0 auto;
	padding: 5px 13px;
	border-radius: 7px;
	background: #689f38;
	color: #fff;
	font-weight: 700;
	font-size: 17px;
	white-space: nowrap;
}
.lubiwood-surprise__price .woocommerce-Price-amount,
.lubiwood-surprise__price .woocommerce-Price-currencySymbol {
	color: #fff !important;
}

/* "incl. VAT" note beside the price. */
.lubiwood-surprise__vat {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 500;
	color: #6f8a5f;
}

.lubiwood-surprise__desc {
	margin: 12px 0 0;
	color: #6f8a5f;
	font-size: 18px;
	line-height: 1.5;
}

/* Image column: absolutely pinned to the right so it fills the full box height
   (flush top/right/bottom) WITHOUT growing the box — the box height stays driven
   by the text. */
.lubiwood-surprise__media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 152px;
	overflow: hidden;
	border-radius: 0 11px 11px 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lubiwood-surprise__media .lubiwood-surprise__img {
	width: 100%;
	height: 100%;
	max-width: none;
	display: block;
	object-fit: contain; /* show the whole (square) GIF — full width, not cropped */
}

.lubiwood-surprise__emoji {
	font-size: 60px;
	line-height: 1;
}

@media (max-width: 560px) {
	.lubiwood-surprise__media {
		width: 116px;
	}
	.lubiwood-surprise__content {
		/* top padding must clear the CTA tab (top:-18px, ~41px tall → reaches ~+23px
		   into the box) so it never overlaps the title on mobile — matches the desktop
		   clearance; right padding reserves the narrower mobile image column. */
		padding: 44px 132px 16px 16px;
	}
	/* Nudge the tab in a touch so it lines up with the mobile text inset and never
	   kisses the box's left edge/border. */
	.lubiwood-surprise .lubiwood-surprise__toggle {
		left: 16px;
	}
}
