.cbc-shorts {
	--cbc-shorts-accent: #4f1140;
	--cbc-shorts-arrow-color: #8e7187;
	--cbc-shorts-card-width: 305px;
	--cbc-shorts-color: #4f1140;
	--cbc-shorts-page-pad: 80px;
	box-sizing: border-box;
	color: var(--cbc-shorts-color);
	display: block;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	overflow-x: hidden;
	overflow-y: visible;
	padding: var(--space-l) var(--cbc-shorts-page-pad);
	width: 100vw;
}

.cbc-shorts *,
.cbc-shorts *::before,
.cbc-shorts *::after {
	box-sizing: border-box;
}

/* When placed inside a Bricks container, drop the full-bleed so the component respects container width. */
.brxe-container .cbc-shorts {
	margin-left: 0;
	margin-right: 0;
	max-width: 100%;
	width: 100%;
}

/* Allow viewport/track to overflow the container to the right edge of the section */
.cbc-shorts>.brxe-container {
	overflow: visible;
}

.cbc-shorts__bar {
	align-items: flex-start;
	display: flex !important;
	flex-direction: row !important;
	gap: 24px;
	justify-content: space-between;
	margin-bottom: 40px;
	position: relative;
	width: 100%;
	z-index: 10;
}

.cbc-shorts__copy {
	flex: 1 1 auto;
	max-width: 720px;
	min-width: 0;
}

.cbc-shorts__filter {
	align-self: flex-start;
	color: var(--cbc-shorts-accent);
	display: flex;
	flex: 0 0 200px;
	justify-content: flex-end;
	margin-left: auto;
	max-width: 200px;
	min-height: 36px;
	position: relative;
	width: 200px;
	z-index: 60;
}

.cbc-shorts__filter-trigger {
	align-items: center;
	appearance: none;
	background: #ffffff;
	border: 1px solid currentColor;
	border-radius: 8px;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	display: flex;
	font-family: "Bw Gradual DEMO", inherit;
	font-size: 14px;
	font-weight: 500;
	height: 36px;
	justify-content: center;
	line-height: 20px;
	margin: 0;
	min-width: 150px;
	padding: 0 14px;
	text-transform: none;
	width: auto;
}

.cbc-shorts__filter-label {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cbc-shorts__filter-trigger:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.cbc-shorts__filter-chevron {
	border-bottom: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	display: inline-block;
	height: 11px;
	margin-left: 10px;
	transform: translateY(-1px) rotate(45deg);
	transition: transform 0.2s ease;
	width: 11px;
}

.cbc-shorts__filter-trigger[aria-expanded="true"] .cbc-shorts__filter-chevron {
	transform: translateY(1px) rotate(-135deg);
}

.cbc-shorts__filter-menu {
	background: #ffffff;
	border: 1px solid rgba(79, 17, 64, 0.12);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	color: var(--cbc-shorts-accent);
	display: block;
	list-style: none;
	margin: 7px 0 0;
	max-height: 320px;
	min-width: 200px;
	overflow-y: auto;
	padding: 0;
	position: absolute;
	right: 0;
	top: 100%;
	width: 200px;
	z-index: 70;
}

.cbc-shorts__filter-menu[hidden] {
	display: none;
}

.cbc-shorts__filter-menu::before {
	content: '';
	height: 7px;
	left: 0;
	position: absolute;
	right: 0;
	top: -7px;
}

.cbc-shorts__filter-option {
	align-items: center;
	background: #ffffff;
	border-bottom: 1px solid rgba(79, 17, 64, 0.16);
	cursor: pointer;
	display: flex;
	font-family: "Bw Gradual DEMO", inherit;
	font-size: 14px;
	font-weight: 500;
	justify-content: center;
	line-height: 20px;
	min-height: 50px;
	padding: 14px 16px;
	text-align: center;
	white-space: nowrap;
}

.cbc-shorts__filter-option:last-child {
	border-bottom: 0;
}

.cbc-shorts__filter-option:hover,
.cbc-shorts__filter-option:focus-visible {
	background: rgba(79, 17, 64, 0.04);
}

.cbc-shorts__filter-option.is-active {
	background: #ffffff;
	color: var(--cbc-shorts-accent);
	font-weight: 500;
}

.cbc-shorts__heading {
	color: var(--cbc-shorts-accent);
	font-family: "Bw Gradual DEMO", inherit;
	font-size: 32px;
	font-weight: 700;
	line-height: 44px;
	margin: 0;
}

.cbc-shorts__intro {
	color: color-mix(in srgb, var(--cbc-shorts-color) 76%, #ffffff);
	font-size: 16px;
	line-height: 1.5;
	margin-top: 12px;
}

.cbc-shorts__intro> :first-child {
	margin-top: 0;
}

.cbc-shorts__intro> :last-child {
	margin-bottom: 0;
}

.cbc-shorts__viewport {
	-webkit-overflow-scrolling: touch;
	cursor: grab;
	display: block;
	margin-right: calc(var(--cbc-shorts-overflow-right, 0px) * -1);
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 2px;
	position: relative;
	scrollbar-width: none;
	user-select: none;
	width: calc(100% + var(--cbc-shorts-overflow-right, 0px));
	z-index: 1;
}

.cbc-shorts__viewport.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
}

.cbc-shorts__viewport::-webkit-scrollbar {
	display: none;
}

.cbc-shorts__track {
	align-items: stretch;
	display: flex !important;
	flex-direction: row !important;
	width: max-content;
}

.cbc-shorts-card {
	aspect-ratio: 9 / 16;
	background: #220017;
	border-radius: 12px;
	color: #ffffff;
	cursor: pointer;
	display: block;
	flex: 0 0 var(--cbc-shorts-card-width) !important;
	max-height: none;
	min-height: 0;
	min-width: var(--cbc-shorts-card-width);
	overflow: hidden;
	position: relative;
	scroll-snap-align: start;
	transform: translateZ(0);
	width: var(--cbc-shorts-card-width);
}

.cbc-shorts-card[hidden] {
	display: none !important;
}

.cbc-shorts-card.is-filtered-out {
	display: none !important;
}

.cbc-shorts-card__media,
.cbc-shorts-card__video {
	display: block;
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
}

.cbc-shorts-card__video {
	background: #220017;
	border-radius: 12px;
	object-fit: cover;
}

.cbc-shorts-card__media,
.cbc-shorts-card__video,
.cbc-shorts-card__shade,
.cbc-shorts-card__content {
	pointer-events: none;
}

.cbc-shorts-card__shade {
	background:
		linear-gradient(0deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
		linear-gradient(180deg, rgba(105, 23, 85, 0) 51.21%, rgba(105, 23, 85, 0) 69.75%, rgba(105, 23, 85, 0.9) 84.91%);
	inset: 0;
	position: absolute;
	z-index: 1;
}

.cbc-shorts-card__content {
	bottom: 0;
	left: 0;
	padding: 20px;
	position: absolute;
	right: 0;
	z-index: 2;
}

.cbc-shorts-card__category {
	font-family: "Bw Gradual DEMO", inherit;
	font-size: 12px;
	font-weight: 400;
	line-height: 20px;
	margin: 0 0 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cbc-shorts-card__title {
	color: #ffffff;
	font-family: "Bw Gradual DEMO", inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cbc-shorts__controls {
	align-items: center;
	display: grid !important;
	grid-template-columns: 1fr auto 1fr;
	margin-top: 20px;
	width: 100%;
}

.cbc-shorts__arrows {
	grid-column: 3;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

.cbc-shorts__arrow {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--cbc-shorts-arrow-color);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 20px;
	font-size: 18px;
	height: 20px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 20px;
}

.cbc-shorts__arrow i {
	display: block;
	font-size: 1em;
	line-height: 1;
}

.cbc-shorts__arrow:disabled {
	cursor: default;
	opacity: .35;
}

.cbc-shorts-modal[hidden],
.cbc-shorts-modal__slide[hidden] {
	display: none !important;
}

.cbc-shorts-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	position: fixed;
	z-index: 99999;
}

.cbc-shorts-modal.is-open {
	display: flex !important;
}

.cbc-shorts-modal__backdrop {
	background: rgba(0, 0, 0, 0.68);
	inset: 0;
	position: absolute;
}

.cbc-shorts-modal__dialog {
	align-items: center;
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 1;
}

.cbc-shorts-modal__close {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font-size: 28px;
	height: 32px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 0;
	top: -50px;
	width: 32px;
	z-index: 2;
}

.cbc-shorts-modal__close i {
	display: block;
	font-size: 1em;
	line-height: 1;
}

.cbc-shorts-modal__frame {
	background: #ffffff;
	border-radius: 8px;
	padding: 20px;
	width: min(360px, calc(100vw - 64px));
}

.cbc-shorts-modal__slide {
	border-radius: 6px;
	overflow: hidden;
}

.cbc-shorts-modal__video {
	aspect-ratio: 9 / 16;
	background: #220017;
	border-radius: 6px;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.cbc-shorts-modal__play-overlay {
	align-items: center;
	background: rgba(50, 50, 50, 0.8);
	border-radius: 50%;
	display: flex;
	height: 84px;
	justify-content: center;
	left: 50%;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%) scale(0.8);
	transition: opacity 0.2s ease, transform 0.2s ease;
	width: 84px;
	z-index: 10;
}

.cbc-shorts-modal__play-overlay::after {
	border-color: transparent transparent transparent #ffffff;
	border-style: solid;
	border-width: 14px 0 14px 22px;
	content: '';
	display: block;
	height: 0;
	margin-left: 6px;
	width: 0;
}

.cbc-shorts-modal__slide.is-paused .cbc-shorts-modal__play-overlay {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.cbc-shorts-modal__controls {
	align-items: center;
	color: #ffffff;
	display: flex;
	font-family: "Bw Gradual DEMO", inherit;
	font-size: 14px;
	font-weight: 700;
	gap: 12px;
	justify-content: center;
	line-height: 20px;
	margin-top: 28px;
}

.cbc-shorts-modal__arrow {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font-size: 18px;
	height: 20px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 20px;
}

.cbc-shorts-modal__arrow i {
	display: block;
	font-size: 1em;
	line-height: 1;
}

.cbc-shorts-modal__arrow:disabled {
	cursor: default;
	opacity: 0.4;
}

.cbc-shorts__empty {
	color: var(--cbc-shorts-color);
	margin: 0;
}

.cbc-shorts__action {
	grid-column: 2;
	display: flex;
	justify-content: center;
	align-items: center;
}

.cbc-shorts__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--cbc-shorts-color);
	border-radius: 8px;
	background: #ffffff;
	color: var(--cbc-shorts-color);
	font-weight: 600;
	font-size: 14px;
	padding: 10px 24px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.cbc-shorts__button:hover {
	background: var(--cbc-shorts-color);
	color: #ffffff;
}

@media (max-width: 767px) {
	.cbc-shorts {
		--cbc-shorts-card-width: min(312px, calc(100vw - 40px));
		--cbc-shorts-page-pad: 20px;
		padding: 54px var(--cbc-shorts-page-pad);
	}

	.cbc-shorts__bar {
		display: block !important;
		margin-bottom: 40px;
	}

	.cbc-shorts__heading {
		font-size: 24px;
		line-height: 32px;
	}

	.cbc-shorts__filter {
		display: block;
		flex-basis: auto;
		margin-top: 40px;
		max-width: none;
		width: 100%;
	}

	.cbc-shorts__filter-trigger {
		justify-content: center;
		min-width: 0;
		width: 100%;
	}

	.cbc-shorts__filter-menu {
		left: 0;
		min-width: 100%;
		right: auto;
		width: 100%;
	}

	.cbc-shorts__viewport {
		margin-left: 0;
		scroll-snap-type: x mandatory;
	}

	.cbc-shorts__track {
		gap: 12px;
	}

	.cbc-shorts__arrow {
		flex-basis: 28px;
		height: 28px;
		width: 28px;
	}

	.cbc-shorts__arrow i {
		font-size: 21px;
	}

	.cbc-shorts-modal {
		padding: 10px;
	}

	.cbc-shorts-modal__dialog {
		width: 100%;
	}

	.cbc-shorts-modal__close {
		font-size: 24px;
		right: 18px;
		top: 10px;
	}

	.cbc-shorts-modal__frame {
		background: transparent;
		border-radius: 6px;
		margin-top: 54px;
		max-width: 350px;
		padding: 0;
		width: calc(100vw - 62px);
	}

	.cbc-shorts-modal__controls {
		gap: 10px;
		margin-top: 8px;
	}

	.cbc-shorts-modal__arrow {
		font-size: 24px;
		height: 28px;
		width: 28px;
	}

	.cbc-shorts__action {
		grid-column: 1;
	}
}

@media (min-width: 768px) {
	.cbc-shorts__track {
		gap: 0;
	}

	.cbc-shorts-card {
		flex: 0 0 calc((var(--cbc-shorts-viewport-w, 100%) + var(--space-xs)) / 3.5 - var(--space-xs)) !important;
		margin-right: var(--space-xs);
		min-width: 0;
		width: calc((var(--cbc-shorts-viewport-w, 100%) + var(--space-xs)) / 3.5 - var(--space-xs));
	}

	.cbc-shorts__filter {
		align-items: flex-start;
		display: flex;
		justify-content: flex-end;
		overflow: visible;
		position: relative;
	}

	.cbc-shorts__filter-trigger {
		display: inline-flex;
		flex: 0 0 auto;
		min-width: 150px;
		width: auto;
	}

	.cbc-shorts__filter-menu {
		left: auto;
		right: 0;
		width: 200px;
	}
}