.novelty-sales-channels {
	--nsc-ink: #191919;
	--nsc-muted: #707070;
	--nsc-line: rgba(25, 25, 25, .14);
	--nsc-paper: #f7f7f5;
	box-sizing: border-box;
	width: 100%;
	background: var(--nsc-paper);
	border-top: 1px solid var(--nsc-line);
	border-bottom: 1px solid var(--nsc-line);
	color: var(--nsc-ink);
	overflow: hidden;
	padding: 74px 0 82px;
}

/* The homepage container created for this widget inherits Elementor's 1140px
 * boxed width. Match Novelty's other homepage sections on wide screens while
 * keeping the container fluid at tablet and mobile breakpoints. */
@media (min-width: 1200px) {
	.elementor-element-b9370fb {
		position: relative;
		left: 50%;
		width: min(1380px, calc(100vw - 48px)) !important;
		max-width: min(1380px, calc(100vw - 48px)) !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		transform: translateX(-50%);
	}

	.elementor-element-b9370fb > .e-con-inner {
		max-width: min(1380px, calc(100vw - 48px)) !important;
	}
}

.novelty-sales-channels *,
.novelty-sales-channels *::before,
.novelty-sales-channels *::after {
	box-sizing: border-box;
}

.novelty-sales-channels__inner {
	width: 100%;
	max-width: 1380px;
	margin: 0 auto;
	padding: 0 clamp(24px, 6vw, 92px);
}

.novelty-sales-channels__intro {
	max-width: 720px;
}

.novelty-sales-channels__eyebrow {
	margin: 0 0 20px;
	color: var(--nsc-muted);
	font-size: 10px;
	line-height: 1.35;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.novelty-sales-channels h2 {
	margin: 0 0 15px;
	color: var(--nsc-ink);
	font-size: clamp(2rem, 3.5vw, 3.35rem);
	font-weight: 500;
	letter-spacing: -.045em;
	line-height: 1.02;
}

.novelty-sales-channels__description {
	max-width: 660px;
	margin: 0;
	color: #4f4f4f;
	font-size: 16px;
	line-height: 1.75;
}

.novelty-sales-channels__viewport {
	width: calc(100% + 2 * clamp(24px, 6vw, 92px));
	margin-top: 38px;
	margin-left: calc(-1 * clamp(24px, 6vw, 92px));
	overflow: hidden;
}

.novelty-sales-channels__track {
	display: flex;
	width: max-content;
	animation: novelty-sales-channels-scroll var(--nsc-duration, 34s) linear infinite;
	animation-direction: var(--nsc-direction, normal);
	will-change: transform;
}

.novelty-sales-channels[data-pause-on-hover="yes"] .novelty-sales-channels__track:hover {
	animation-play-state: paused;
}

.novelty-sales-channels__group {
	display: flex;
	flex: 0 0 auto;
	gap: 16px;
	padding-right: 16px;
}

.novelty-sales-channel {
	display: flex;
	flex: 0 0 220px;
	min-height: 136px;
	align-items: center;
	justify-content: center;
	gap: 15px;
	padding: 14px 16px;
	border: 1px solid rgba(25, 25, 25, .1);
	background: #fff;
	color: var(--nsc-ink);
	text-decoration: none;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

a.novelty-sales-channel:hover,
a.novelty-sales-channel:focus-visible {
	border-color: rgba(25, 25, 25, .3);
	box-shadow: 0 12px 28px rgba(25, 25, 25, .1);
	color: var(--nsc-ink);
	transform: translateY(-3px);
}

.novelty-sales-channel__logo {
	display: inline-flex;
	width: 100%;
	max-width: 200px;
	height: 96px;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
}

.novelty-sales-channel__logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.novelty-sales-channel__wordmark {
	display: inline-flex;
	min-width: 76px;
	max-width: 94px;
	align-items: center;
	justify-content: center;
	color: var(--nsc-ink);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -.04em;
	line-height: 1.05;
	text-align: center;
}

.novelty-sales-channel__name {
	display: none;
	color: var(--nsc-ink);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .1em;
	line-height: 1.35;
	text-transform: uppercase;
}

@keyframes novelty-sales-channels-scroll {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 700px) {
	.novelty-sales-channels {
		padding: 56px 0 62px;
	}

	.novelty-sales-channels__inner {
		padding: 0 20px;
	}

	.novelty-sales-channels h2 {
		font-size: clamp(2rem, 9vw, 2.65rem);
	}

	.novelty-sales-channels__description {
		font-size: 15px;
	}

	.novelty-sales-channels__viewport {
		width: calc(100% + 40px);
		margin-left: -20px;
		margin-top: 28px;
	}

	.novelty-sales-channel {
		flex-basis: 196px;
		min-height: 112px;
		padding: 12px 14px;
	}

	.novelty-sales-channel__logo {
		width: 100%;
		height: 76px;
		flex-basis: 100%;
	}

	.novelty-sales-channel__wordmark {
		min-width: 64px;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.novelty-sales-channels__track {
		animation-play-state: paused;
	}
}

/* Categorized layout. Legacy marquee rules remain above for safe upgrades. */
.novelty-sales-channels__tabs {
	display: none;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(10px, 2vw, 24px);
	width: 100%;
	max-width: 980px;
	margin: 38px auto 0;
}

.novelty-sales-channels--categorized[data-nsc-ready="1"] .novelty-sales-channels__tabs {
	display: grid;
}

.novelty-sales-channels--categorized .novelty-sales-channels__tab {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	min-height: 48px;
	margin: 0;
	padding: 12px 20px;
	border: 1px solid rgba(25, 25, 25, .2);
	border-radius: 999px;
	background: transparent;
	color: #313b36;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.novelty-sales-channels--categorized .novelty-sales-channels__tab:hover {
	background: #edf0ed;
	border-color: #26332e;
}

.novelty-sales-channels--categorized .novelty-sales-channels__tab[aria-selected="true"] {
	background: #26332e;
	border-color: #26332e;
	color: #fff;
}

.novelty-sales-channels--categorized .novelty-sales-channels__tab:focus-visible,
.novelty-sales-channels--categorized .novelty-sales-channel:focus-visible {
	outline: 2px solid #8b6c32;
	outline-offset: 4px;
}

.novelty-sales-channels__panels {
	min-height: 180px;
	margin-top: 34px;
}

.novelty-sales-channels__panel[hidden] {
	display: none !important;
}

.novelty-sales-channels__panel:focus-visible {
	outline: 2px solid #8b6c32;
	outline-offset: 6px;
}

.novelty-sales-channels__category-heading {
	margin: 32px 0 18px;
	font-size: 22px;
}

.novelty-sales-channels[data-nsc-ready="1"] .novelty-sales-channels__category-heading {
	display: none;
}

.novelty-sales-channels__logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The theme adds margins to widget lists. Keep the logo grid centered. */
.novelty-sales-channels--categorized ul.novelty-sales-channels__logos {
	margin: 0 !important;
	padding: 0 !important;
}

.novelty-sales-channels__item {
	flex: 0 1 calc((100% - 80px) / 5);
	min-width: 0;
	max-width: 230px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.novelty-sales-channels--categorized .novelty-sales-channel {
	width: 100%;
	height: 100%;
	min-height: 146px;
	padding: 22px;
	border-color: rgba(25, 25, 25, .09);
	border-radius: 2px;
}

.novelty-sales-channels--categorized .novelty-sales-channel__logo {
	max-width: 170px;
	height: 86px;
}

.novelty-sales-channels--categorized .novelty-sales-channel__wordmark {
	min-width: 0;
	max-width: 100%;
	font-size: 24px;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.novelty-sales-channels__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 146px;
	margin: 0;
	padding: 24px;
	border: 1px dashed rgba(25, 25, 25, .17);
	color: #707070;
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
}

@media (max-width: 1024px) {
	.novelty-sales-channels__item { flex-basis: calc((100% - 40px) / 3); }
}

@media (max-width: 700px) {
	/* Avoid accumulating the homepage's nested container gutters on phones. */
	.elementor-element-b9370fb {
		position: relative;
		left: 50%;
		width: calc(100vw - 40px) !important;
		max-width: calc(100vw - 40px) !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		transform: translateX(-50%);
	}

	.novelty-sales-channels__tabs { gap: 8px; margin-top: 28px; }
	.novelty-sales-channels--categorized .novelty-sales-channels__tab { min-height: 44px; padding: 10px 5px; font-size: clamp(11px, 3.2vw, 14px); }
	.novelty-sales-channels__panels { margin-top: 24px; min-height: 126px; }
	.novelty-sales-channels__logos { gap: 12px; }
	.novelty-sales-channels__item { flex-basis: calc((100% - 12px) / 2); }
	.novelty-sales-channels--categorized .novelty-sales-channel { min-height: 116px; padding: 12px; }
	.novelty-sales-channels--categorized .novelty-sales-channel__logo { height: 72px; }
	.novelty-sales-channels--categorized .novelty-sales-channel__wordmark { font-size: 20px; }
	.novelty-sales-channels__empty { min-height: 126px; }
}

@media (prefers-reduced-motion: reduce) {
	.novelty-sales-channels--categorized .novelty-sales-channels__tab,
	.novelty-sales-channels--categorized .novelty-sales-channel { transition: none; }
}
