/* The "New" product badge (YITH Badge Management badge 82622, applied by its
   "New / Recent Products Rule" to anything published in the last 45 days).
   Loaded after the plugin's frontend.css by functions/sd-badge-new.php.

   The plugin drew it as a blue box with "NEW!" in Open Sans - the only blue
   on a tile, the only Open Sans on the page, and louder than the promotion it
   isn't. Newness is information, not a deal, so it takes the house's quiet
   voice instead: an ink tag in the Archivo stencil, led by the player from the
   SD logo in the house red (#ec3013) - cut from the 512px site icon
   (cropped-SD-Icon-Colour.png), stored at 3x its 15x16 size and embedded here
   so it costs no request. User's pick, 2026-11-18, over a plain red dash and
   the full red disc.
   It sits where it always has, flush to the photo's bottom-left corner,
   clear of the orange Limited Stock flag and the red sale rosette at the top.

   The plugin's markup is kept: its two shape layers and SVG are hidden, its
   wrap becomes the tag. The badge text lives in the badge's settings
   ("NEW!" with an inline font); font-size 0 hides it and ::after prints
   "New", so nothing in the database changes. Every rule is !important
   because the plugin and the badge's own inline styles set the same
   properties at higher specificity. */

.yith-wcbm-badge.yith-wcbm-badge-82622 {
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	line-height: 1 !important;
}

.yith-wcbm-badge-82622 .yith-wcbm-css-s1,
.yith-wcbm-badge-82622 .yith-wcbm-css-s2,
.yith-wcbm-badge-82622 svg {
	display: none !important;
}

.yith-wcbm-badge-82622 .yith-wcbm-badge__wrap {
	position: static !important;
	display: block !important;
	width: auto !important;
	height: auto !important;
	padding: 0 !important;
	background: #1b1b1a !important;
}

.yith-wcbm-badge-82622 .yith-wcbm-css-text,
.yith-wcbm-badge-82622 .yith-wcbm-badge-text {
	position: static !important;
	display: block !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	transform: none !important;
}

.yith-wcbm-badge-82622 .yith-wcbm-badge-text > div {
	display: flex !important;
	align-items: center;
	gap: 8px;
	height: 24px;
	padding: 0 10px 0 6px;
	font-size: 0 !important;
	line-height: 1;
	white-space: nowrap;
	color: #fff !important;
}

.yith-wcbm-badge-82622 .yith-wcbm-badge-text > div::before {
	content: "";
	flex: none;
	width: 15px;
	height: 16px;
	background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAA2CAYAAABqbKGZAAAG30lEQVR42tWae4hUdRTHP/eh66Oo3IxK0wozo4QtiyKzstgyCRUtLCrKVNKojSSDoIiMInpQWlloD9jAiuhBD8oe9kC0d5Q9NqNC6aG0WxqlrTv33v64358ebjM7M3dmVrswzO7M3N/v9z3ne77nnN/vep0tzfyPrnHA9cBBQBdwLHAT8AQQeA0C4+k9qdM4TcAS4CJgUOY3fwDHARv9Blkw0SuoA5gEOACYKyAREOtVAPYDFgNxmLnRNwMkuiHP5EP0/+8CFOf0kgeEwMUGgF2zr88mA6c4zwSaLBLayAAJctBiJLAWaNVYiSau5vJ1bwtwm8YOSrAgBKa7CSJgf00+G5gOjDHfeWah5ejlA+uBZuB14AZgsIyTh9a/Ap1lQMfATF+oFgEdmvwR4FngS+Aj4FJDO78CMDHwN/CgPrsdWAecVIQmlt5+CS+fKNrGJQzqjLTG62xpXgy0mS/iIi59A7gM+MVYolS8zABG6P8J4nN/YJMos1mAIs1RMGMEZpxAv5kIrDResJdjTQcw2ZdKRAZhaIA4xWgFVklVevOQB+yjfDADmKSxuoEDgRXAERozMUBGA4dnYnaH3o/WfEkJSvvKPRvCXgIL8+Me4EjgMeDcMvHzleIlEPhRZvwzgM+AORKI+cDZwDFa+CvAGll6IDBev8nKvKPzDqBd94VeZ0tzhyxTLiYK8tpE4B1Dg2LB6K6BwOXAVOBkYIBZ1LYiCbDSHOaMOQFY7dbiA0v1ZVzhQFMyXgsEstgY2yUEU4F/MjlnkAwUG4GJzGeRoSOZimI7cKGAOAknBB6SFJ8mt/UvA2aYGSC7+MNEw/HAVqnYUOA8US8x/E+KKFtQYS77C3g1S/dQ6C8A3lSwReYmL6McoSQ7FoUOVj4ar9fxvVDHesDLmXM8rXcosBC40Xh7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EbAUcCtwFUC1c9QKjC7KOO0rXSXuT8g3VhvN/HmaLa9Hvmh0oZrsKR3lik7QlPqB1rk46QnBdnO09ZsozLx4QFPNjpmnEXHkj614c7wXVC7WHF7v9dlBCIxQFx/Mgo439ApAL5j1xll1CiauQl7gK+NAdxiQ9Inl+YISGC6w+xpgZtrHunhlG28VrLrNDppJJiE9BhwGnAm6UmYT/p8zAJ57VFj+ahMLTapyNwdtdCrWml2nlilVyvpqdXHReKilNFi0nPS0cb6EfV7arBiMPbJvljewexlRRUYA9LnBPqZz5r09+Z6AKo2aUbGE1RRsjsVW0d6Eucp1/ysNnkldTgL+hekoREUsHo4hgAAAABJRU5ErkJggg==") center / contain no-repeat;
}

.yith-wcbm-badge-82622 .yith-wcbm-badge-text > div::after {
	content: "New";
	font-family: 'Archivo', Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}


/* ---- Limited stock (badge 162236, Low Stock rule) ------------------------
   Was an orange box, "LIMITED STOCK!" in Open Sans. Now a quiet tab: faint
   see-through white with a hairline green edge, the truck icon (Font Awesome
   "truck", embedded) and words in the house green (#01682b, the in-stock
   band's colour). Square where it meets the photo's edge, rounded where it
   ends. User's picks 2026-11-18 - first a solid green tab, then "a lot more
   invisible ... more subtle"; the white wash keeps it legible on dark photos,
   where a pale green wash lost the words. Text replaced like NEW's:
   font-size 0 on the badge's own text, ::after prints "Limited stock". */

.yith-wcbm-badge.yith-wcbm-badge-162236 {
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	line-height: 1 !important;
	transform: none !important;
}

.yith-wcbm-badge-162236 .yith-wcbm-css-s1,
.yith-wcbm-badge-162236 .yith-wcbm-css-s2,
.yith-wcbm-badge-162236 svg {
	display: none !important;
}

.yith-wcbm-badge-162236 .yith-wcbm-badge__wrap {
	position: static !important;
	display: block !important;
	width: auto !important;
	height: auto !important;
	padding: 0 !important;
	background: rgba(255, 255, 255, 0.82) !important;
	box-shadow: inset 0 0 0 1px rgba(1, 104, 43, 0.25) !important;
	border-radius: 0 999px 999px 0 !important;
}

.yith-wcbm-badge-162236 .yith-wcbm-css-text,
.yith-wcbm-badge-162236 .yith-wcbm-badge-text {
	position: static !important;
	display: block !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	transform: none !important;
}

.yith-wcbm-badge-162236 .yith-wcbm-badge-text > div {
	display: flex !important;
	align-items: center;
	gap: 6px;
	height: 24px;
	padding: 0 13px 0 9px;
	font-size: 0 !important;
	line-height: 1;
	white-space: nowrap;
	color: #01682b !important;
}

.yith-wcbm-badge-162236 .yith-wcbm-badge-text > div::before {
	content: "";
	flex: none;
	width: 16px;
	height: 13px;
	background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20640%20512%27%3E%3Cpath%20fill%3D%27%2301682b%27%20d%3D%27M624%20352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494%20110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5%200%200%2021.5%200%2048v320c0%2026.5%2021.5%2048%2048%2048h16c0%2053%2043%2096%2096%2096s96-43%2096-96h128c0%2053%2043%2096%2096%2096s96-43%2096-96h48c8.8%200%2016-7.2%2016-16v-32c0-8.8-7.2-16-16-16zM160%20464c-26.5%200-48-21.5-48-48s21.5-48%2048-48%2048%2021.5%2048%2048-21.5%2048-48%2048zm320%200c-26.5%200-48-21.5-48-48s21.5-48%2048-48%2048%2021.5%2048%2048-21.5%2048-48%2048zm80-208H416V144h44.1l99.9%2099.9V256z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}

.yith-wcbm-badge-162236 .yith-wcbm-badge-text > div::after {
	content: "Limited stock";
	font-family: 'Archivo', Arial, Helvetica, sans-serif;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ---- Phone-width tiles ---------------------------------------------------
   Tiles are ~150px wide on a phone; the NEW and Limited stock tags drop to
   20px with tighter type. The sale rosette keeps the plugin's own design
   (user, 2026-11-18: "keep the old % off badge"). */
@media (max-width: 600px) {
	.yith-wcbm-badge-82622 .yith-wcbm-badge-text > div,
	.yith-wcbm-badge-162236 .yith-wcbm-badge-text > div {
		height: 20px !important;
		gap: 5px !important;
		padding: 0 6px 0 5px !important;
	}
	.yith-wcbm-badge-162236 .yith-wcbm-badge-text > div {
		padding-right: 9px !important;
	}
	.yith-wcbm-badge-82622 .yith-wcbm-badge-text > div::before {
		width: 12px !important;
		height: 13px !important;
	}
	.yith-wcbm-badge-162236 .yith-wcbm-badge-text > div::before {
		width: 13px !important;
		height: 11px !important;
	}
	.yith-wcbm-badge-82622 .yith-wcbm-badge-text > div::after,
	.yith-wcbm-badge-162236 .yith-wcbm-badge-text > div::after {
		font-size: 9.5px !important;
		letter-spacing: 0.08em !important;
	}
}

/* ---- Product page: the main photo's badges, larger -----------------------
   The tile sizes above read as specks on the ~590px product photo (user,
   2026-11-19: "too small"). Option B of the proof: NEW and Limited stock at
   40px with 16px type, the sale rosette 30% bigger (Clearance sizes itself, below).
   Scoped to .product-images-wrapper, so the related-products tiles on the
   same page keep their tile size. The rosette and Clearance use zoom, not
   scale: Clearance is mirrored by the plugin's own transform, and moving its
   transform-origin swung it off the photo. */
.product-images-wrapper .yith-wcbm-badge-82622 .yith-wcbm-badge-text > div,
.product-images-wrapper .yith-wcbm-badge-162236 .yith-wcbm-badge-text > div {
	height: 40px !important;
	gap: 12px !important;
	padding: 0 17px 0 11px !important;
}
.product-images-wrapper .yith-wcbm-badge-162236 .yith-wcbm-badge-text > div {
	padding-left: 14px !important;
	padding-right: 21px !important;
}
.product-images-wrapper .yith-wcbm-badge-82622 .yith-wcbm-badge-text > div::before {
	width: 25px !important;
	height: 27px !important;
}
.product-images-wrapper .yith-wcbm-badge-162236 .yith-wcbm-badge-text > div::before {
	width: 26px !important;
	height: 21px !important;
}
.product-images-wrapper .yith-wcbm-badge-82622 .yith-wcbm-badge-text > div::after,
.product-images-wrapper .yith-wcbm-badge-162236 .yith-wcbm-badge-text > div::after {
	font-size: 16px !important;
	letter-spacing: 0.13em !important;
}
.product-images-wrapper .yith-wcbm-advanced-display-percentage {
	zoom: 1.3;
}

@media (max-width: 600px) {
	.product-images-wrapper .yith-wcbm-badge-82622 .yith-wcbm-badge-text > div,
	.product-images-wrapper .yith-wcbm-badge-162236 .yith-wcbm-badge-text > div {
		height: 32px !important;
	}
	.product-images-wrapper .yith-wcbm-badge-82622 .yith-wcbm-badge-text > div::after,
	.product-images-wrapper .yith-wcbm-badge-162236 .yith-wcbm-badge-text > div::after {
		font-size: 13.5px !important;
	}
	.product-images-wrapper .yith-wcbm-badge-82622 .yith-wcbm-badge-text > div::before {
		width: 19px !important;
		height: 20px !important;
	}
	.product-images-wrapper .yith-wcbm-badge-162236 .yith-wcbm-badge-text > div::before {
		width: 20px !important;
		height: 16px !important;
	}
	.product-images-wrapper .yith-wcbm-advanced-display-percentage {
		zoom: 1.1;
	}
}

/* ---- Clearance (badge 52398, yellow) --------------------------------------
   Was the plugin's yellow ribbon (css-7, mirrored by its own rotateY), "CLEARANCE"
   in Open Sans. Now the family tab: clearance yellow (#ffd200), ink lettering,
   the Font Awesome "tag" icon, and a short ink/yellow hazard stripe where the tab
   ends - warehouse floor marking for stock that is going. User's pick (option C),
   2026-11-19. Sizes run off custom properties: tile 24px, phone tile 20px,
   product page 40px, phone product page 32px - the same steps as NEW and
   Limited stock. transform:none undoes the plugin's mirror. */

.yith-wcbm-badge.yith-wcbm-badge-52398 { --h:24px; --fs:10.5px; --ic:13px; --pl:8px; --pr:12px; --gap:6px; --st:12px;
 width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;background:none!important;line-height:1!important;transform:none!important; }
.yith-wcbm-badge-52398 .yith-wcbm-css-s1,.yith-wcbm-badge-52398 .yith-wcbm-css-s2,.yith-wcbm-badge-52398 svg { display:none!important; }
.yith-wcbm-badge-52398 .yith-wcbm-badge__wrap { position:static!important;display:flex!important;width:auto!important;height:auto!important;padding:0!important; }
.yith-wcbm-badge-52398 .yith-wcbm-css-text,.yith-wcbm-badge-52398 .yith-wcbm-badge-text { position:static!important;display:block!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;background:none!important;transform:none!important; }
.yith-wcbm-badge-52398 .yith-wcbm-badge-text > div { display:flex!important;align-items:center;gap:var(--gap);height:var(--h);padding:0 var(--pr) 0 var(--pl);font-size:0!important;line-height:1;white-space:nowrap; }
.yith-wcbm-badge-52398 .yith-wcbm-badge-text > div::after { content:"Clearance";font-family:'Archivo',Arial,Helvetica,sans-serif;font-size:var(--fs);font-weight:700;letter-spacing:.1em;text-transform:uppercase; }
@media (max-width:600px) { .yith-wcbm-badge.yith-wcbm-badge-52398 { --h:20px; --fs:9.5px; --ic:11px; --pl:6px; --pr:9px; --gap:5px; --st:9px; } }
.product-images-wrapper .yith-wcbm-badge.yith-wcbm-badge-52398 { --h:40px; --fs:16px; --ic:21px; --pl:14px; --pr:21px; --gap:12px; --st:18px; }
@media (max-width:600px) { .product-images-wrapper .yith-wcbm-badge.yith-wcbm-badge-52398 { --h:32px; --fs:13.5px; --ic:17px; --pl:11px; --pr:16px; --gap:9px; --st:14px; } }

.yith-wcbm-badge-52398 .yith-wcbm-badge__wrap { background:#ffd200!important; }
.yith-wcbm-badge-52398 .yith-wcbm-badge__wrap::after { content:"";flex:none;width:var(--st);background:repeating-linear-gradient(-45deg,#1b1b1a 0 3px,#ffd200 3px 7px); }
.yith-wcbm-badge-52398 .yith-wcbm-badge-text > div { color:#1b1b1a!important; }
.yith-wcbm-badge-52398 .yith-wcbm-badge-text > div::before { content:"";flex:none;width:var(--ic);height:var(--ic);background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%3E%3Cpath%20fill%3D%22%231b1b1a%22%20d%3D%22M0%20252.118V48C0%2021.49%2021.49%200%2048%200h204.118a48%2048%200%200%201%2033.941%2014.059l211.882%20211.882c18.745%2018.745%2018.745%2049.137%200%2067.882L293.823%20497.941c-18.745%2018.745-49.137%2018.745-67.882%200L14.059%20286.059A48%2048%200%200%201%200%20252.118zM112%2064c-26.51%200-48%2021.49-48%2048s21.49%2048%2048%2048%2048-21.49%2048-48-21.49-48-48-48z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat; }

/* ---- Clearance on the product page: bottom-right of the main photo --------
   User 2026-11-19. Top-left is Limited stock's corner, and on multi-image
   products the tab sat over the first thumbnail. Mirrored so the square edge
   meets the photo's right edge and the hazard stripe leads on the left.
   Up to 1024px wide the thumbnail strip sits UNDER the photo inside the same
   box the badge is positioned in; it measures 25% of the gallery width + ~8px
   at every width tested (320-1024), so the tab is lifted by exactly that,
   using container units on the gallery box. Wider, thumbnails go to the side. */
.product-images-wrapper .yith-wcbm-badge.yith-wcbm-badge-52398 {
	top: auto !important;
	left: auto !important;
	right: 0 !important;
	bottom: 0 !important;
}
.product-images-wrapper .yith-wcbm-badge-52398 .yith-wcbm-badge__wrap {
	flex-direction: row-reverse;
}
@media (max-width: 1024px) {
	.product-images-wrapper .container-image-and-badge:has(.flex-control-thumbs) {
		container-type: inline-size;
	}
	.product-images-wrapper .container-image-and-badge:has(.flex-control-thumbs) .yith-wcbm-badge.yith-wcbm-badge-52398 {
		bottom: calc(25cqw + 8px) !important;
	}
}
