/* JLS Computers: Refurbished badge.
   Navy ink #15203A. Same pill size as the red sale badge, stacked under it
   on the left so it never covers Sale or the wishlist heart (top-right). */

/* ----- Product cards (shop, category, search, [products] shortcode) ----- */
html body ul.products li.product .jls-refurb-badge--card {
	position: absolute;
	top: 22px;
	left: 22px;
	z-index: 2;
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: #15203A !important;
	color: #fff !important;
	font: 700 11px/1.4 var(--jls-font, "Inter", sans-serif) !important;
	text-transform: none !important;
	letter-spacing: 0;
	pointer-events: none;
	white-space: nowrap;
}
html body ul.products li.product .onsale ~ .jls-refurb-badge--card,
html body ul.products li.product:has(.onsale) .jls-refurb-badge--card {
	top: 50px;
}
@media (max-width: 599px) {
	html body ul.products li.product .jls-refurb-badge--card {
		top: 12px;
		left: 12px;
		padding: 3px 8px;
		font-size: 10px !important;
	}
	html body ul.products li.product .onsale ~ .jls-refurb-badge--card,
	html body ul.products li.product:has(.onsale) .jls-refurb-badge--card {
		top: 40px;
	}
}

/* ----- Single product: gallery overlay, under the authorised-reseller pill ----- */
.jls-pdp__gallery-card .jls-refurb-badge--gallery {
	position: absolute;
	top: 64px;
	left: 28px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	padding: 6px 11px;
	border-radius: 999px;
	background: #15203A;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
	pointer-events: none;
}
.jls-pdp__gallery-card:not(:has(.jls-pdp__auth)) .jls-refurb-badge--gallery {
	top: 28px;
}
@media (max-width: 767px) {
	.jls-pdp__gallery-card .jls-refurb-badge--gallery {
		top: 52px;
		left: 18px;
		padding: 5px 10px;
		font-size: 11px;
	}
	.jls-pdp__gallery-card:not(:has(.jls-pdp__auth)) .jls-refurb-badge--gallery {
		top: 18px;
	}
}

/* ----- Single product: buy-box pill, next to the stock status ----- */
.jls-pdp__stock .jls-refurb-badge--buybox,
.jls-pill.jls-refurb-badge--buybox {
	background: #15203A !important;
	color: #fff !important;
	font-weight: 700;
	text-transform: none;
}

/* Refurbished main-menu highlight (18 Nov 2026).
   Lighter blue than the navy header (#15203A). #2E5AAC on white text
   is about 6.4:1, which meets WCAG AA. Hover #244A91 is about 8.4:1.
   Matches the Black November item: same padding, 4px corners, weight. */
html body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.jls-menu-refurb > a.mega-menu-link,
html body.jls-premium-home #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.jls-menu-refurb > a.mega-menu-link,
.main-navigation .jls-menu-refurb > a,
.main-navigation .menu-item.jls-menu-refurb > a,
li.menu-item.jls-menu-refurb > a,
li.mega-menu-item.jls-menu-refurb > a.mega-menu-link {
	background: #2E5AAC !important;
	background-color: #2E5AAC !important;
	color: #fff !important;
	font-weight: 700 !important;
	border-radius: 4px;
	padding-left: 14px !important;
	padding-right: 14px !important;
	margin: 4px 0 4px 6px !important;
	box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
html body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.jls-menu-refurb > a.mega-menu-link:hover,
html body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.jls-menu-refurb > a.mega-menu-link:focus,
html body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.jls-menu-refurb.mega-toggle-on > a.mega-menu-link,
html body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.jls-menu-refurb.mega-current-menu-item > a.mega-menu-link,
html body.jls-premium-home #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.jls-menu-refurb > a.mega-menu-link:hover,
html body.jls-premium-home #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.jls-menu-refurb > a.mega-menu-link:focus,
html body.jls-premium-home #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.jls-menu-refurb.mega-toggle-on > a.mega-menu-link,
html body.jls-premium-home #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.jls-menu-refurb.mega-current-menu-item > a.mega-menu-link,
.main-navigation .jls-menu-refurb > a:hover,
.main-navigation .jls-menu-refurb > a:focus,
li.menu-item.jls-menu-refurb > a:hover,
li.menu-item.jls-menu-refurb > a:focus {
	background: #244A91 !important;
	background-color: #244A91 !important;
	color: #fff !important;
}
@media (max-width: 959px) {
	html body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.jls-menu-refurb > a.mega-menu-link,
	html body.jls-premium-home #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.jls-menu-refurb > a.mega-menu-link,
	li.menu-item.jls-menu-refurb > a {
		display: flex !important;
		align-items: center;
		min-height: 52px;
		margin: 8px 12px !important;
		padding-left: 14px !important;
		padding-right: 14px !important;
		border-bottom-color: transparent !important;
		color: #fff !important;
		background: #2E5AAC !important;
		background-color: #2E5AAC !important;
	}
}
