/* Shared horizontal strip for the homepage shortcodes ([sg_home_skin_types],
   [sg_home_brands]): the scrolling track, the edge-to-edge bleed and the
   arrows. Each shortcode adds its own tile styles and item widths in its
   own file, loaded after this one.

   Every selector is scoped under .sg-strip so it outranks the theme's
   .entry-content ul / li rules, which load after this file. */

/* No outer spacing of its own: the Spectra container around the shortcode
   sets the section gaps, as it does for every other homepage section.
   align-self: Spectra overrides width with width:auto !important, so in a
   container set to Align Items: center the section would shrink to its
   widest piece (the brands "show more" link) and the row would start mid
   page. Stretch fills the container whatever its alignment setting. */
.sg-strip {
	align-self: stretch;
	width: 100%;
	min-width: 0;
	margin: 0;
}

/* Spectra forces width:auto and min-width:auto on children of its flex
   container, so the section would grow to the track's full width. Inline
   size containment keeps the track out of that calculation. */
.sg-strip .sg-strip__slider {
	position: relative;
	contain: inline-size;
}

/* The track bleeds to the screen edges; the first tile stays on the page
   gutter. 50% is the section width, so the maths holds for any container
   padding. The JS sets --sg-strip-gutter so snapping lands on the gutter. */
.sg-strip ul.sg-strip__list {
	display: flex;
	gap: 12px;
	margin: 0 calc(50% - 50vw);
	padding: 4px calc(50vw - 50%) 8px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--sg-strip-gutter, 15px);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.sg-strip .sg-strip__list::-webkit-scrollbar {
	display: none;
}

.sg-strip .sg-strip__item {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
}

/* Arrows: same look as the Spectra brands slider. They render with the
   hidden attribute and JS removes it when the track overflows, so the
   state works without a class that Perfmatters' used CSS could drop. */
.sg-strip .sg-strip__nav {
	display: flex;
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 36px;
	height: 36px;
	margin: -18px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #efefef;
	color: #333333;
	line-height: 1;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease, background-color 0.3s ease;
}

.sg-strip .sg-strip__nav[hidden] {
	display: none;
}

.sg-strip .sg-strip__nav--prev {
	left: calc(50% - 50vw + 8px);
}

.sg-strip .sg-strip__nav--next {
	right: calc(50% - 50vw + 8px);
}

.sg-strip .sg-strip__nav svg {
	display: block;
	width: 16px;
	height: 16px;
}

.sg-strip .sg-strip__nav:hover:not(:disabled),
.sg-strip .sg-strip__nav:focus-visible {
	background: #e4e4e4;
	color: #333333;
}

.sg-strip .sg-strip__nav:focus-visible {
	outline: 2px solid #71043d;
	outline-offset: 2px;
}

.sg-strip .sg-strip__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

@media (min-width: 768px) {
	.sg-strip ul.sg-strip__list {
		gap: 16px;
	}

	.sg-strip .sg-strip__nav {
		width: 46px;
		height: 46px;
		margin-top: -23px;
	}
}