/* Brands — theme Swiper carousel; brand image in a circle, name below (styles plain / light / pill / tile). */
.syf-coffee-brands {
	--syf-coffee-brand-size: 132px;
	--syf-coffee-brand-radius: 50%;
	--syf-coffee-brand-fit: cover;
	--syf-coffee-brand-pad: 0px;
	--syf-coffee-brand-gap: 12px;
	--syf-coffee-brand-lift: -4px;
	--syf-coffee-brand-gray-op: .62;
	--syf-coffee-brand-pill-bg: var(--bgcolor-white);
	--syf-coffee-brand-pill-brd: var(--syf-coffee-line);
	--syf-coffee-brand-pill-over: -24px;
	--syf-coffee-brand-tile-bg: var(--syf-coffee-bg2);
	--syf-coffee-brand-tile-bg-h: var(--syf-coffee-brand-tile-bg);
	--syf-coffee-brand-tile-r: var(--syf-coffee-r-md);
	--syf-coffee-brand-tile-pb: 18px;
	--syf-coffee-brand-ring: var(--bgcolor-white);
	--syf-coffee-brand-ring-w: 6px;
	--syf-coffee-brand-over: 50;
}

.syf-coffee-brands-rail .wd-carousel {
	padding-block: 12px 18px;
}

.syf-coffee-brands-rail .wd-carousel-item {
	height: auto;
}

/* Item */
.syf-coffee-brands .syf-coffee-brand {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--syf-coffee-brand-gap);
	height: 100%;
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.syf-coffee-brand-ph {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	overflow: hidden;
	width: min(var(--syf-coffee-brand-size), 100%);
	aspect-ratio: 1;
	border-radius: var(--syf-coffee-brand-radius);
	background-color: var(--syf-coffee-tile);
	transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, border-color .3s ease;
}

.syf-coffee-brand-ph img {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: var(--syf-coffee-brand-pad);
	object-fit: var(--syf-coffee-brand-fit);
	transition: filter .3s ease, opacity .3s ease;
}

.syf-coffee-brand-initial {
	color: var(--syf-coffee-accent);
	font-size: calc(var(--syf-coffee-brand-size) * .38);
	font-weight: 900;
	line-height: 1;
}

.syf-coffee-brand:hover .syf-coffee-brand-ph,
.syf-coffee-brand:focus-visible .syf-coffee-brand-ph {
	transform: translateY(var(--syf-coffee-brand-lift));
	box-shadow: 0 14px 34px var(--syf-coffee-shadow);
}

.syf-coffee-brand-name {
	color: var(--syf-coffee-ink);
	font-size: .95rem;
	font-weight: 800;
	line-height: 1.4;
	transition: color .25s ease;
}

.syf-coffee-brand:hover .syf-coffee-brand-name {
	color: var(--syf-coffee-accent);
}

.syf-coffee-brand-count {
	margin-top: calc(var(--syf-coffee-brand-gap) * -.6);
	color: var(--syf-coffee-mute);
	font-size: .8rem;
}

/* Grayscale until hover (default on the light style) */
.syf-coffee-brands-gray .syf-coffee-brand-ph img {
	filter: grayscale(1);
	opacity: var(--syf-coffee-brand-gray-op);
}

.syf-coffee-brands-gray .syf-coffee-brand:hover .syf-coffee-brand-ph img,
.syf-coffee-brands-gray .syf-coffee-brand:focus-visible .syf-coffee-brand-ph img {
	filter: none;
	opacity: 1;
}

/* Light: logo on a white circle, accent border on hover */
.syf-coffee-brands-light {
	--syf-coffee-brand-fit: contain;
	--syf-coffee-brand-pad: 18%;
}

.syf-coffee-brands-light .syf-coffee-brand-ph {
	border: 1px solid var(--syf-coffee-line);
	background-color: var(--bgcolor-white);
}

.syf-coffee-brands-light .syf-coffee-brand:hover .syf-coffee-brand-ph {
	border-color: var(--syf-coffee-accent);
}

/* Pill: name in a pill over the circle's bottom edge */
.syf-coffee-brands-pill .syf-coffee-brand-name {
	position: relative;
	z-index: 1;
	margin-top: calc(var(--syf-coffee-brand-pill-over) - var(--syf-coffee-brand-gap));
	padding: 3px 14px;
	border: 1px solid var(--syf-coffee-brand-pill-brd);
	border-radius: 999px;
	background-color: var(--syf-coffee-brand-pill-bg);
	box-shadow: 0 6px 16px var(--syf-coffee-shadow);
	font-size: .85rem;
}

.syf-coffee-brands-pill .syf-coffee-brand-count {
	margin-top: 0;
}

/* Tile: circle half over a rounded tile */
.syf-coffee-brands-tile .syf-coffee-brand {
	isolation: isolate;
	padding-top: calc(var(--syf-coffee-brand-size) * var(--syf-coffee-brand-over) / 100);
	padding-bottom: var(--syf-coffee-brand-tile-pb);
	padding-inline: 10px;
}

.syf-coffee-brands-tile .syf-coffee-brand::before {
	content: "";
	position: absolute;
	inset: calc(var(--syf-coffee-brand-size) * var(--syf-coffee-brand-over) / 100) 0 0;
	z-index: -1;
	border-radius: var(--syf-coffee-brand-tile-r);
	background-color: var(--syf-coffee-brand-tile-bg);
	transition: background-color .3s ease;
}

.syf-coffee-brands-tile .syf-coffee-brand:hover::before {
	background-color: var(--syf-coffee-brand-tile-bg-h);
}

.syf-coffee-brands-tile .syf-coffee-brand-ph {
	margin-top: calc(var(--syf-coffee-brand-size) * var(--syf-coffee-brand-over) / -100);
	box-shadow: 0 0 0 var(--syf-coffee-brand-ring-w) var(--syf-coffee-brand-ring);
}

.syf-coffee-brands-tile .syf-coffee-brand:hover .syf-coffee-brand-ph {
	box-shadow: 0 0 0 var(--syf-coffee-brand-ring-w) var(--syf-coffee-brand-ring), 0 14px 34px var(--syf-coffee-shadow);
}

@media (max-width: 767px) {
	.syf-coffee-brands {
		--syf-coffee-brand-size: 92px;
		--syf-coffee-brand-gap: 10px;
		--syf-coffee-brand-pill-over: -20px;
	}

	.syf-coffee-brand-name {
		font-size: .85rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.syf-coffee-brand-ph,
	.syf-coffee-brand-ph img {
		transition: none;
	}

	.syf-coffee-brand:hover .syf-coffee-brand-ph {
		transform: none;
	}
}
