.hp-brand-slider {
	--hp-brand-visible: 6;
	--hp-brand-gap: 24px;
	--hp-brand-index: 0;
	position: relative;
	width: 100%;
	padding: 0 46px;
	box-sizing: border-box;
}

.hp-brand-slider *,
.hp-brand-slider *::before,
.hp-brand-slider *::after {
	box-sizing: border-box;
}

.hp-brand-slider__viewport {
	width: 100%;
	overflow: hidden;
}

.hp-brand-slider__track {
	display: flex;
	align-items: stretch;
	gap: var(--hp-brand-gap);
	transform: translate3d(
		calc(var(--hp-brand-index) * ((100% + var(--hp-brand-gap)) / var(--hp-brand-visible)) * -1),
		0,
		0
	);
	transition: transform 450ms cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
	touch-action: pan-y;
}

.hp-brand-slider__item {
	flex: 0 0 calc(
		(100% - (var(--hp-brand-gap) * (var(--hp-brand-visible) - 1))) /
		var(--hp-brand-visible)
	);
	min-width: 0;
}

.hp-brand-slider__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 116px;
	padding: 10px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-decoration: none;
	transition: transform 180ms ease, opacity 180ms ease;
}

.hp-brand-slider__link:hover,
.hp-brand-slider__link:focus-visible {
	transform: translateY(-3px);
	opacity: 0.84;
}

.hp-brand-slider__link:focus-visible {
	outline: 3px solid rgba(12, 200, 189, 0.45);
	outline-offset: 3px;
}

.hp-brand-slider__logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 92px;
	margin: 0 auto;
	object-fit: contain;
}

.hp-brand-slider__fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	width: 100%;
	padding: 8px;
	color: #3d4151;
	font-family: "Quicksand", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

.hp-brand-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 70px !important;
	min-width: 70px !important;
	max-width: 70px !important;
	height: 70px !important;
	min-height: 70px !important;
	max-height: 70px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(202, 108, 229, 0.18) !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.62) !important;
	background-image: none !important;
	box-shadow: 0 6px 22px rgba(61, 65, 81, 0.04) !important;
	color: #d88bea !important;
	font-size: 0 !important;
	line-height: 1 !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transform: translateY(-50%) scale(0.96) !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	transition:
		opacity 180ms ease,
		visibility 180ms ease,
		color 180ms ease,
		border-color 180ms ease,
		background-color 180ms ease,
		transform 180ms ease !important;
}

.hp-brand-slider__arrow > span {
	position: relative;
	display: block !important;
	width: 17px !important;
	height: 17px !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
}

.hp-brand-slider__arrow > span::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	width: 12px;
	height: 12px;
	border-top: 5px solid #d88bea;
	border-right: 5px solid #d88bea;
	border-radius: 2px;
}

.hp-brand-slider:hover .hp-brand-slider__arrow,
.hp-brand-slider:focus-within .hp-brand-slider__arrow,
.hp-brand-slider__arrow:focus-visible {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transform: translateY(-50%) scale(1) !important;
}

.hp-brand-slider__arrow:hover,
.hp-brand-slider__arrow:focus-visible {
	border-color: rgba(202, 108, 229, 0.34) !important;
	background: rgba(255, 255, 255, 0.9) !important;
	color: #ca6ce5 !important;
	transform: translateY(-50%) scale(1.04) !important;
}

.hp-brand-slider__arrow:focus-visible {
	outline: 3px solid rgba(202, 108, 229, 0.22) !important;
	outline-offset: 2px !important;
}

.hp-brand-slider__arrow--prev {
	left: 2px;
}

.hp-brand-slider__arrow--prev > span::before {
	transform: translate(-34%, -50%) rotate(-135deg);
}

.hp-brand-slider__arrow--next {
	right: 2px;
}

.hp-brand-slider__arrow--next > span::before {
	transform: translate(-66%, -50%) rotate(45deg);
}

.hp-brand-slider.is-static .hp-brand-slider__arrow {
	display: none !important;
}

.hp-brand-slider-notice {
	margin: 0;
	padding: 12px;
	color: #3d4151;
	background: #fff9f2;
	text-align: center;
}

@media (max-width: 1023px) {
	.hp-brand-slider {
		--hp-brand-visible: 4;
		--hp-brand-gap: 18px;
	}
}

@media (max-width: 767px) {
	.hp-brand-slider {
		--hp-brand-visible: 3;
		--hp-brand-gap: 10px;
		padding: 0;
	}

	.hp-brand-slider__link {
		min-height: 78px;
		padding: 6px 3px;
	}

	.hp-brand-slider__logo {
		max-height: 60px;
	}

	.hp-brand-slider__fallback {
		min-height: 52px;
		padding: 4px 2px;
		font-size: 12px;
	}

	.hp-brand-slider__arrow {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hp-brand-slider__track,
	.hp-brand-slider__link,
	.hp-brand-slider__arrow {
		transition: none;
	}
}
