/* Black Friday BOGOF banner. Every rule is scoped to .bw-bogof-banner. */

.bw-bogof-banner {
	background: #000;
	color: #fff;
	margin: 1.5rem 0 2.5rem;
	padding: 2rem 1.25rem;
	/* Full width inside the theme's container. */
	width: 100vw;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	box-sizing: border-box;
	overflow: hidden;
}

/* Black and white flag at full strength, with a dark fade behind the text so it stays readable. */
.bw-bogof-banner .bw-bogof-flag {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.55;
	pointer-events: none;
}

.bw-bogof-banner .bw-bogof-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 11, 11, 0.85) 0%, rgba(11, 11, 11, 0.45) 60%, rgba(11, 11, 11, 0.25) 100%);
	pointer-events: none;
}

.bw-bogof-banner .bw-bogof-inner {
	position: relative;
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.bw-bogof-banner .bw-bogof-copy {
	flex: 1 1 auto;
	align-self: center;
	text-align: center;
}

/* "Coming Thursday 26 Nov, 4pm" tag above the headline, before the start only. */
.bw-bogof-banner .bw-bogof-soon {
	display: inline-block;
	background: #fff;
	color: #000;
	font-size: 0.85rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.45rem 0.8rem;
	margin: 0 0 0.85rem;
}

.bw-bogof-banner .bw-bogof-soon[hidden],
.bw-bogof-strip .bw-bogof-strip-soon[hidden] {
	display: none;
}

.bw-bogof-banner .bw-bogof-headline {
	color: #fff;
	font-size: 2rem;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: 0 0 0.75rem;
}

.bw-bogof-banner .bw-bogof-text {
	color: #fff;
	font-size: 1.125rem;
	line-height: 1.4;
	margin: 0;
}

.bw-bogof-banner .bw-bogof-clock {
	margin-top: 1.25rem;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	border: 2px solid #fff;
	padding: 0.6rem 1.25rem;
	background: rgba(0, 0, 0, 0.45);
}

.bw-bogof-banner .bw-bogof-clock-label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.bw-bogof-banner .bw-bogof-clock-time {
	font-size: 1.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.bw-bogof-banner .bw-bogof-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 0.75rem;
}

.bw-bogof-banner .bw-bogof-tile {
	margin: 0;
	flex: 1 1 0;
	max-width: 220px;
}

.bw-bogof-banner .bw-bogof-tile-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #fff;
	color: #000;
	text-decoration: none;
	padding: 0.75rem;
	height: 100%;
	box-sizing: border-box;
	position: relative;
}

/* "USA grown" pill: small colour flag, top-left of each tile. */
.bw-bogof-banner .bw-bogof-pill {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: #fff;
	color: #000;
	border: 1px solid #dde1de;
	border-radius: 999px;
	padding: 0.25rem 0.6rem 0.25rem 0.3rem;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.bw-bogof-banner .bw-bogof-pill-flag {
	width: 26px;
	height: auto;
	border-radius: 2px;
	display: block;
}

.bw-bogof-banner .bw-bogof-tile-link:hover,
.bw-bogof-banner .bw-bogof-tile-link:focus {
	color: #000;
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.bw-bogof-banner .bw-bogof-tile-image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.bw-bogof-banner .bw-bogof-tile-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	margin: 0;
}

.bw-bogof-banner .bw-bogof-tile-name {
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	margin-top: 0.6rem;
	text-align: center;
}

.bw-bogof-banner .bw-bogof-tile-price {
	font-size: 0.95rem;
}

@media (max-width: 767px) {
	.bw-bogof-banner .bw-bogof-pill {
		padding: 0.25rem;
	}

	.bw-bogof-banner .bw-bogof-pill span {
		display: none;
	}
}

@media (min-width: 768px) {
	.bw-bogof-banner {
		padding: 2.5rem 1.5rem;
	}

	.bw-bogof-banner .bw-bogof-shade {
		background: linear-gradient(90deg, rgba(11, 11, 11, 0.88) 0%, rgba(11, 11, 11, 0.55) 45%, rgba(11, 11, 11, 0.15) 100%);
	}

	.bw-bogof-banner .bw-bogof-inner {
		flex-direction: row;
		align-items: center;
	}

	.bw-bogof-banner.is-live .bw-bogof-copy {
		text-align: left;
	}

	.bw-bogof-banner .bw-bogof-headline {
		font-size: 2.75rem;
	}

	.bw-bogof-banner .bw-bogof-tiles {
		flex: 0 0 auto;
		width: 55%;
		gap: 1rem;
	}

	.bw-bogof-banner .bw-bogof-tile {
		max-width: 300px;
	}
}

/* ---------- Small banner on other pages (under the green slider) ---------- */

.bw-bogof-strip {
	position: relative;
	overflow: hidden;
	background: #000;
	color: #fff;
}

.bw-bogof-strip .bw-bogof-flag {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.55;
	pointer-events: none;
}

.bw-bogof-strip .bw-bogof-strip-shade {
	position: absolute;
	inset: 0;
	background: rgba(11, 11, 11, 0.55);
	pointer-events: none;
}

.bw-bogof-strip .bw-bogof-strip-inner {
	position: relative;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0.55rem 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 1.25rem;
	text-align: center;
	font-size: 0.95rem;
	line-height: 1.3;
}

.bw-bogof-strip .bw-bogof-strip-text {
	font-weight: 700;
}

.bw-bogof-strip .bw-bogof-strip-soon {
	display: inline-block;
	background: #fff;
	color: #000;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.3rem 0.55rem;
	white-space: nowrap;
}

.bw-bogof-strip .bw-bogof-strip-clock {
	display: inline-flex;
	align-items: baseline;
	gap: 0.4rem;
	white-space: nowrap;
}

.bw-bogof-strip .bw-bogof-strip-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.bw-bogof-strip .bw-bogof-strip-time {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.bw-bogof-strip .bw-bogof-strip-link,
.bw-bogof-strip .bw-bogof-strip-link:visited {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.bw-bogof-strip .bw-bogof-strip-link:hover,
.bw-bogof-strip .bw-bogof-strip-link:focus {
	color: #fff;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 575px) {
	.bw-bogof-strip .bw-bogof-strip-inner {
		font-size: 0.85rem;
		padding: 0.5rem 0.75rem;
	}

	.bw-bogof-strip .bw-bogof-strip-text {
		flex-basis: 100%;
	}
}
