/* SV Sale Engine — front end.
   Deliberately neutral: black border, white background, so it sits inside the
   site's own styling rather than fighting it. Restyle freely. */

.sv-offer {
	border: 1px solid #000;
	background: #fff;
	padding: 12px 16px;
	margin: 0 0 16px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.4;
}

.sv-offer--won {
	border-width: 2px;
}

/* Headline row: copy on the left, action on the right. */
.sv-offer__main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.sv-offer__copy {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
	min-width: 0;
}

.sv-offer__head {
	font-weight: 700;
	white-space: nowrap;
}

.sv-offer__line {
	opacity: .8;
}

.sv-offer__win {
	font-size: 15px;
}

.sv-offer__win-amount {
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

.sv-offer__action {
	flex: 0 0 auto;
}

.sv-offer__pill {
	display: inline-block;
	border: 1px solid #000;
	border-radius: 20px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	white-space: nowrap;
}

/* Meta row: short facts on one line. */
.sv-offer__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid rgba(0, 0, 0, .12);
	font-size: 12.5px;
	opacity: .9;
}

.sv-offer__meta > span {
	white-space: nowrap;
}

/* Separator as ::after, because .sv-tick already owns ::before. */
.sv-offer__meta > span:not(:last-child)::after {
	content: "\00b7";
	margin-left: 14px;
	opacity: .45;
}

.sv-offer__apply {
	margin: 0;
}

.sv-offer__btn,
.sv-offer__btn:link,
.sv-offer__btn:visited,
.sv-offer__btn:hover,
.sv-offer__btn:focus {
	display: inline-block;
	box-sizing: border-box;
	text-decoration: none;
	background: #000;
	color: #fff;
	border: 1px solid #000;
	border-radius: 3px;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	white-space: nowrap;
	cursor: pointer;
}

.sv-offer__btn:hover {
	background: #fff;
	color: #000;
}

/* Ticks for things already won */
.sv-tick {
	position: relative;
	padding-left: 16px;
}

.sv-tick::before {
	content: "";
	position: absolute;
	left: 1px;
	top: .42em;
	width: 8px;
	height: 4px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
}

/* Free / struck prices */
.sv-free {
	font-weight: 700;
	letter-spacing: .06em;
}

.sv-savings-row th,
.sv-savings-row td {
	border-top: 1px solid #000;
}

.sv-gift-qty {
	font-weight: 600;
	white-space: nowrap;
}

/* Badges and tags */
.sv-badge {
	display: inline-block;
	background: #000;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 6px 9px;
	border-radius: 3px;
	letter-spacing: .04em;
}

.sv-tags {
	display: inline-flex;
	gap: 6px;
	flex-wrap: wrap;
	margin: 6px 0;
}

.sv-tag {
	display: inline-block;
	border: 1px solid #000;
	background: #fff;
	color: #000;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 5px 8px;
	border-radius: 3px;
	letter-spacing: .05em;
}

.sv-tag--gift,
.sv-tag--fast {
	background: #000;
	color: #fff;
}

/* ---------------------------------------------------------------
   Free gift: tilted badge
   --------------------------------------------------------------- */

.sv-gift-row {
	position: relative;
	display: inline-block;
}

.sv-gift-badge {
	display: inline-block;
	position: relative;
	margin-left: 8px;
	vertical-align: middle;
	transform: rotate(-7deg);
	transform-origin: center;
}

.sv-gift-badge__inner {
	display: inline-block;
	background: #000;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .09em;
	padding: 6px 10px;
	border-radius: 3px;
	white-space: nowrap;
	box-shadow: 2px 2px 0 rgba(0, 0, 0, .18);
}

/* Pinned to a product photo: a small gift icon in the top-left corner, kept
   deliberately compact so the product stays visible. */
.sv-gift-badge--icon {
	/* Inside the photo, not overhanging it: a cart card with rounded corners
	   usually clips its overflow, which would slice the icon in half. */
	position: absolute;
	top: 4px;
	left: 4px;
	z-index: 5;
	margin: 0;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	color: #fff;
	border: 2px solid #fff;
	border-radius: 50%;
	transform: none;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
	pointer-events: none;
}

.sv-gift-badge--icon svg {
	width: 13px;
	height: 13px;
	display: block;
}

.sv-gift-host {
	position: relative;
	overflow: visible;
	display: inline-block;
}

/* A quiet highlight on the whole gift row, so the eye lands on it. */
.sv-gift-lit {
	position: relative;
	outline: 1px solid #000;
	outline-offset: 2px;
	border-radius: 3px;
}

@keyframes sv-gift-pop {
	0%   { transform: rotate(-7deg) scale(.4); opacity: 0; }
	60%  { transform: rotate(-7deg) scale(1.12); opacity: 1; }
	100% { transform: rotate(-7deg) scale(1); opacity: 1; }
}

@keyframes sv-gift-pop-icon {
	0%   { transform: scale(.3); opacity: 0; }
	60%  { transform: scale(1.18); opacity: 1; }
	100% { transform: scale(1); opacity: 1; }
}

.sv-gift-badge--new {
	animation: sv-gift-pop .45s cubic-bezier(.2, .9, .3, 1.2) both;
}

.sv-gift-badge--icon.sv-gift-badge--new {
	animation: sv-gift-pop-icon .45s cubic-bezier(.2, .9, .3, 1.2) both;
}

/* ---------------------------------------------------------------
   Free gift: the gift line reads FREE and cannot be changed
   --------------------------------------------------------------- */

.sv-gift-hide {
	display: none !important;
}

.sv-free-tag {
	font-weight: 800;
	letter-spacing: .08em;
	white-space: nowrap;
}

/* ---------------------------------------------------------------
   Free gift: centred announcement
   --------------------------------------------------------------- */

.sv-win {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity .28s ease;
}

.sv-win.is-in {
	opacity: 1;
}

.sv-win.is-out {
	opacity: 0;
}

.sv-win__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 14, 10, .45);
}

.sv-win__card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 330px;
	background: #fff;
	border: 2px solid #000;
	border-radius: 10px;
	padding: 24px 22px 20px;
	text-align: center;
	box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
	transform: translateY(12px) scale(.94);
	transition: transform .34s cubic-bezier(.2, .9, .3, 1.25);
}

.sv-win.is-in .sv-win__card {
	transform: translateY(0) scale(1);
}

.sv-win__img {
	display: block;
	width: 104px;
	height: 104px;
	object-fit: cover;
	margin: 0 auto 14px;
	border: 1px solid #000;
	border-radius: 8px;
	background: #fff;
}

.sv-win__kicker {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: .65;
}

.sv-win__head {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
}

.sv-win__name {
	margin: 0;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
}

.sv-win__worth {
	margin: 4px 0 0;
	font-size: 12.5px;
	opacity: .7;
}

.sv-win__ok {
	margin-top: 16px;
	width: 100%;
	background: #000;
	color: #fff;
	border: 1px solid #000;
	border-radius: 4px;
	padding: 11px 18px;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .03em;
	cursor: pointer;
	box-sizing: border-box;
}

.sv-win__ok:hover {
	background: #fff;
	color: #000;
}

.sv-win__close {
	position: absolute;
	top: 6px;
	right: 8px;
	background: none;
	border: 0;
	font-size: 22px;
	line-height: 1;
	padding: 4px 8px;
	cursor: pointer;
	color: inherit;
	opacity: .5;
}

.sv-win__close:hover {
	opacity: 1;
}

@media (max-width: 400px) {
	.sv-win__card {
		padding: 20px 18px 18px;
	}
	.sv-win__img {
		width: 88px;
		height: 88px;
	}
}

/* ---------------------------------------------------------------
   Celebration
   --------------------------------------------------------------- */

.sv-confetti {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 99998;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.sv-win,
	.sv-win__card,
	.sv-gift-badge--new {
		transition: none;
		animation: none;
	}
	.sv-confetti {
		display: none;
	}
}

/* Rule strip */
.sv-rule-strip {
	border-top: 1px solid #000;
	border-bottom: 1px solid #000;
	background: #fff;
	padding: 12px 16px;
	text-align: center;
	font-weight: 600;
	letter-spacing: .01em;
}

/* Countdown */
.sv-countdown {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 10px 14px;
}

.sv-countdown__label {
	font-weight: 600;
}

.sv-countdown__clock {
	display: inline-flex;
	gap: 8px;
}

.sv-countdown__unit {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	border: 1px solid #000;
	background: #fff;
	border-radius: 3px;
	padding: 6px 9px;
	min-width: 46px;
	justify-content: center;
}

.sv-countdown__unit b {
	font-size: 1.15em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.sv-countdown__unit i {
	font-style: normal;
	font-size: .78em;
	opacity: .7;
}

.sv-countdown.is-ended .sv-countdown__clock {
	display: none;
}

/* Mini cart */
.sv-mini-saved {
	font-weight: 700;
	margin: 6px 0;
}

.sv-mini-nudge {
	margin: 4px 0 10px;
	font-size: .92em;
}

/* FAQ */
.sv-faq__item {
	border-bottom: 1px solid #000;
	padding: 12px 0;
}

.sv-faq__item summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}

.sv-faq__item summary::-webkit-details-marker {
	display: none;
}

.sv-faq__item summary::after {
	content: "+";
	float: right;
	font-weight: 400;
}

.sv-faq__item[open] summary::after {
	content: "\2013";
}

.sv-faq__item p {
	margin: 10px 0 0;
}

@media (max-width: 600px) {
	.sv-offer {
		padding: 12px 14px;
	}
	.sv-offer__main {
		align-items: flex-start;
	}
	.sv-offer__action,
	.sv-offer__apply {
		width: 100%;
	}
	.sv-offer__btn {
		width: 100%;
		text-align: center;
	}
	/* Stack the facts rather than wrapping them, which would leave a
	   separator dot dangling at the end of a line. */
	.sv-offer__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.sv-offer__meta > span:not(:last-child)::after {
		display: none;
	}
}
