.cc-dm-hs-create-textiles {
	--cc-dm-create-text: #1b1919;
	--cc-dm-create-accent: #ab2424;
	--cc-dm-create-hover: #8b1316;
	--cc-dm-create-white: #ffffff;
	--cc-dm-create-muted: #f1f1f1;
	--cc-dm-create-card-gap: 40px;
	--cc-dm-create-card-half-gap: 20px;
	box-sizing: border-box;
	width: 100%;
	background: var(--cc-dm-create-white);
	color: var(--cc-dm-create-text);
	font-family: Montserrat, Arial, sans-serif;
	padding-block: clamp(32px, 5vw, 58px);
}

.cc-dm-hs-create-textiles *,
.cc-dm-hs-create-textiles *::before,
.cc-dm-hs-create-textiles *::after {
	box-sizing: border-box;
}

.cc-dm-hs-create-textiles__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 1420px;
	margin-inline: auto;
	padding-inline: 0;
}

.cc-dm-hs-create-textiles__title {
	margin: 0;
	color: var(--cc-dm-create-text);
	font-size: clamp(30px, 3vw, 38px);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.1;
}

.cc-dm-hs-create-textiles__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 34px var(--cc-dm-create-card-gap);
	width: 100%;
}

.cc-dm-hs-create-textiles__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	border-radius: 12px;
}

.cc-dm-hs-create-textiles__card:not(:last-child)::after {
	position: absolute;
	top: 150px;
	right: calc(var(--cc-dm-create-card-gap) * -1);
	z-index: 0;
	width: var(--cc-dm-create-card-gap);
	height: 1px;
	background: var(--cc-dm-create-accent);
	content: "";
}

.cc-dm-hs-create-textiles__card:not(:last-child)::before {
	position: absolute;
	top: 145px;
	right: calc((var(--cc-dm-create-card-half-gap) * -1) - 5px);
	z-index: 0;
	width: 10px;
	height: 10px;
	background: var(--cc-dm-create-accent);
	border-radius: 999px;
	content: "";
}

.cc-dm-hs-create-textiles__badge {
	position: absolute;
	top: -12px;
	left: 12px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: var(--cc-dm-create-accent);
	border-radius: 999px;
	color: var(--cc-dm-create-white);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1;
}

.cc-dm-hs-create-textiles__poster {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 300px;
	overflow: hidden;
	background: var(--cc-dm-create-muted);
	border: 0;
	border-radius: 12px;
	color: inherit;
	cursor: pointer;
	text-decoration: none;
}

.cc-dm-hs-create-textiles__poster--empty {
	cursor: default;
}

.cc-dm-hs-create-textiles__poster-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center center;
	transition: transform 220ms ease;
}

.cc-dm-hs-create-textiles__poster-shade {
	position: absolute;
	inset: 0;
	background: rgba(27, 25, 25, 0.14);
	transition: background-color 180ms ease;
}

.cc-dm-hs-create-textiles__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	background: rgba(255, 255, 255, 0.86);
	border-radius: 999px;
	box-shadow: 0 12px 30px rgba(27, 25, 25, 0.18);
	transform: translate(-50%, -50%);
	transition: transform 180ms ease, background-color 180ms ease;
}

.cc-dm-hs-create-textiles__play::before {
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 15px solid var(--cc-dm-create-accent);
	content: "";
}

.cc-dm-hs-create-textiles__poster:hover .cc-dm-hs-create-textiles__poster-image,
.cc-dm-hs-create-textiles__poster:focus-visible .cc-dm-hs-create-textiles__poster-image {
	transform: scale(1.035);
}

.cc-dm-hs-create-textiles__poster:hover .cc-dm-hs-create-textiles__poster-shade,
.cc-dm-hs-create-textiles__poster:focus-visible .cc-dm-hs-create-textiles__poster-shade {
	background: rgba(27, 25, 25, 0.24);
}

.cc-dm-hs-create-textiles__poster:hover .cc-dm-hs-create-textiles__play,
.cc-dm-hs-create-textiles__poster:focus-visible .cc-dm-hs-create-textiles__play {
	background: var(--cc-dm-create-white);
	transform: translate(-50%, -50%) scale(1.04);
}

.cc-dm-hs-create-textiles__poster:focus-visible {
	outline: 3px solid rgba(171, 36, 36, 0.35);
	outline-offset: 4px;
}

.cc-dm-hs-create-textiles__card-title {
	margin: 0;
	color: var(--cc-dm-create-text);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.cc-dm-hs-create-textiles__text {
	color: var(--cc-dm-create-text);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.16;
}

.cc-dm-hs-create-textiles__text p {
	margin: 0;
}

.cc-dm-hs-create-textiles__text p + p {
	margin-top: 7px;
}

.cc-dm-hs-create-textiles-lock-scroll {
	overflow: hidden !important;
}

.cc-dm-hs-create-textiles-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	box-sizing: border-box;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.92);
}

.cc-dm-hs-create-textiles-modal--is-open {
	display: flex;
}

.cc-dm-hs-create-textiles-modal__dialog {
	position: relative;
	width: min(calc(100% - 88px), 1280px);
	aspect-ratio: 16 / 9;
	max-height: calc(100vh - 48px);
	background: #000000;
}

.cc-dm-hs-create-textiles-modal__frame {
	position: absolute;
	inset: 0;
}

.cc-dm-hs-create-textiles-modal__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000000;
}

.cc-dm-hs-create-textiles-modal__close {
	position: absolute;
	top: 0;
	right: -60px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: rgba(0, 0, 0, 0.58);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	color: #ffffff;
	cursor: pointer;
	transition: background-color 180ms ease;
}

.cc-dm-hs-create-textiles-modal__close:hover,
.cc-dm-hs-create-textiles-modal__close:focus-visible {
	background: rgba(171, 36, 36, 0.92);
}

.cc-dm-hs-create-textiles-modal__close:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.34);
	outline-offset: 3px;
}

.cc-dm-hs-create-textiles-modal__close span::before,
.cc-dm-hs-create-textiles-modal__close span::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 999px;
	content: "";
	transform: translate(-50%, -50%) rotate(45deg);
}

.cc-dm-hs-create-textiles-modal__close span::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

@media (min-width: 1201px) {
	.cc-dm-hs-create-textiles__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.cc-dm-hs-create-textiles__card:nth-child(5n)::before,
	.cc-dm-hs-create-textiles__card:nth-child(5n)::after {
		display: none;
	}
}

@media (max-width: 1200px) {
	.cc-dm-hs-create-textiles__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.cc-dm-hs-create-textiles__card::before,
	.cc-dm-hs-create-textiles__card::after {
		display: none;
	}
}

@media (max-width: 760px) {
	.cc-dm-hs-create-textiles__grid {
		--cc-dm-create-card-gap: 18px;
		--cc-dm-create-card-half-gap: 9px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px var(--cc-dm-create-card-gap);
	}

	.cc-dm-hs-create-textiles__poster {
		height: 240px;
	}

	.cc-dm-hs-create-textiles-modal {
		top: 0;
		bottom: auto;
		height: 100svh;
		min-height: 100svh;
		padding:
			max(12px, env(safe-area-inset-top))
			max(12px, env(safe-area-inset-right))
			max(12px, env(safe-area-inset-bottom))
			max(12px, env(safe-area-inset-left));
		overflow: auto;
	}

	@supports (height: 100dvh) {
		.cc-dm-hs-create-textiles-modal {
			height: 100dvh;
			min-height: 100dvh;
		}
	}

	.cc-dm-hs-create-textiles-modal__dialog {
		width: 100%;
		height: 100%;
		max-height: none;
		aspect-ratio: auto;
	}

	.cc-dm-hs-create-textiles-modal__close {
		top: max(12px, env(safe-area-inset-top));
		right: max(12px, env(safe-area-inset-right));
		width: 48px;
		height: 48px;
	}
}

@media (max-width: 560px) {
	.cc-dm-hs-create-textiles {
		padding-block: 28px;
	}

	.cc-dm-hs-create-textiles__inner {
		gap: 22px;
	}

	.cc-dm-hs-create-textiles__title {
		font-size: 28px;
		line-height: 1.14;
	}

	.cc-dm-hs-create-textiles__grid {
		grid-template-columns: 1fr;
	}

	.cc-dm-hs-create-textiles__poster {
		height: 300px;
	}
}
