/* ==========================================================================
 * Black Friday 2026: the pink "Lowest price of the year* / Guaranteed" tape that
 * takes the place of the comic SALE! sticker (css/components.css section 6,
 * ls-gallery frontend.css .lsgal__flash). Markup and the rule for which parts
 * may say it: inc/lsfab-bf26-lpg.php. Loaded only while the sale skin is on,
 * so the sticker is back by itself on Dec 1.
 *
 * Kit: pink #FF0044, panel #171717, the display face, uppercase.
 * The tape wraps by itself on a narrow card (the chip drops to a second
 * line), so there is one rule set for every card width. Its inner spacing is
 * a border, not padding: woocommerce.css zeroes .onsale padding under an
 * #et-boc selector with !important.
 * ======================================================================= */

/* ---- Product cards ------------------------------------------------------- */
.onsale.ls-lpg.ls-lpg,
.woocommerce ul.products li.product .onsale.onsale.ls-lpg,
.et-db #et-boc .et-l li.product .onsale.ls-lpg {
	position: absolute;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: auto !important;
	box-sizing: border-box;
	width: auto !important;
	height: auto !important;
	min-height: 30px !important;
	margin: 0 !important;
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	align-content: center;
	justify-content: center;
	gap: 3px 9px;
	border: solid #ff0044;
	border-width: 5px 6px;
	border-radius: 0 !important;
	background: #ff0044 !important;
	box-shadow: 0 2px 0 rgba(0, 0, 0, .5) !important;
	transform: none !important;
	filter: none !important;
	overflow: hidden;
	color: #fff;
	font-family: var(--ls-font-display, "Barlow Condensed", "Helvetica Neue", Arial, sans-serif);
	font-size: 0;
	line-height: 0;
	text-indent: 0 !important;
	text-transform: uppercase;
	white-space: nowrap;
	z-index: 100;
	pointer-events: none;
}

.onsale.ls-lpg b,
.onsale.ls-lpg i {
	display: block;
	font-style: normal;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

.onsale.ls-lpg b {
	font-size: 16px;
	letter-spacing: .07em;
}

.onsale.ls-lpg i {
	padding: 4px 8px;
	background: #171717;
	font-size: 11px;
	letter-spacing: .15em;
	transform: skewX(-10deg);
}

@media only screen and (max-width: 767px) {
	.onsale.ls-lpg b { font-size: 12px; letter-spacing: .03em; }
	.onsale.ls-lpg i { padding: 3px 6px; font-size: 10px; letter-spacing: .12em; }
}
/* The words are 24 characters now: one more step down so they are never
   clipped on a two-across grid at 320 to 359 px. */
@media only screen and (max-width: 359px) {
	.onsale.ls-lpg b { font-size: 11px; letter-spacing: .02em; }
}

/* ---- Product page gallery ------------------------------------------------
 * The badge is one span of plain text from the plugin; the words are drawn
 * with ::before / ::after and the span's own text is kept for screen readers
 * at font-size 0. body.ls-lpg-pp is only on a marked-down part's page. */
body.ls-lpg-pp .lsgal__flash.onsale.onsale {
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	box-sizing: border-box;
	width: auto !important;
	height: auto !important;
	min-height: 38px;
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	align-content: center;
	justify-content: center;
	gap: 4px 11px;
	border: solid #ff0044;
	border-width: 6px 8px;
	border-radius: 0 !important;
	background: #ff0044 !important;
	box-shadow: 0 2px 0 rgba(0, 0, 0, .5) !important;
	transform: none !important;
	filter: none !important;
	overflow: hidden;
	color: transparent;
	font-family: var(--ls-font-display, "Barlow Condensed", "Helvetica Neue", Arial, sans-serif);
	font-size: 0 !important;
	line-height: 0;
	text-indent: 0 !important;
	text-transform: uppercase;
	white-space: nowrap;
}

body.ls-lpg-pp .lsgal__flash.onsale::before,
body.ls-lpg-pp .lsgal__flash.onsale::after {
	display: block;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

body.ls-lpg-pp .lsgal__flash.onsale::before {
	content: "Lowest price of the year*";
	font-size: 20px;
	letter-spacing: .07em;
}

body.ls-lpg-pp .lsgal__flash.onsale::after {
	content: "Guaranteed";
	padding: 5px 10px;
	background: #171717;
	font-size: 13px;
	letter-spacing: .15em;
	transform: skewX(-10deg);
}

@media only screen and (max-width: 767px) {
	body.ls-lpg-pp .lsgal__flash.onsale.onsale { min-height: 32px; border-width: 5px 6px; }
	body.ls-lpg-pp .lsgal__flash.onsale::before { font-size: 16px; }
	body.ls-lpg-pp .lsgal__flash.onsale::after { padding: 4px 8px; font-size: 11px; }
}

/* ---- Product page price line ---------------------------------------------
 * "Lowest price of the year, guaranteed*" links to the paragraph on the store
 * policies page that says what it means. */
.ls-bf26-pline__txt b { color: #fff; }
.ls-bf26-pline__txt a.ls-lpg-terms,
.et-db #et-boc .et-l .ls-bf26-pline__txt a.ls-lpg-terms {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, .35);
	text-underline-offset: 3px;
}
.ls-bf26-pline__txt a.ls-lpg-terms:hover { text-decoration-color: #ff0044; }
