.stories-round {
	margin-bottom: 1.5rem;
	max-width: 100%;
}

.stories-round__track {
	display: flex;
	gap: 10px;
	max-width: 100%;
	padding: 2px 2px 10px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-color: #c7c7c7 #ebebeb;
	scrollbar-width: thin;
}

.stories-round__track::-webkit-scrollbar {
	height: 8px;
}

.stories-round__track::-webkit-scrollbar-track {
	background: #ebebeb;
	border-radius: 4px;
}

.stories-round__track::-webkit-scrollbar-thumb {
	background: #c7c7c7;
	border-radius: 4px;
}

.stories-round__item {
	position: relative;
	flex: 0 0 auto;
	width: 70px;
	height: 70px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-sizing: border-box;
	cursor: pointer;
}

.stories-round__item::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	border: 2px solid #33D086;
	border-radius: 50%;
	box-sizing: border-box;
	pointer-events: none;
	transition: border-color .25s linear;
}

.stories-round__item:hover::before,
.stories-round__item.is-playing::before {
	border-color: #33D086;
}

.stories-round__media {
	position: relative;
	display: block;
	width: calc(100% - 2px);
	height: calc(100% - 2px);
	margin: 1px;
	border-radius: 50%;
	background: #fff;
	box-sizing: border-box;
	overflow: hidden;
}

.stories-round__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border: 3px solid #fff;
	border-radius: 50%;
	box-sizing: border-box;
	pointer-events: none;
	transition: opacity .25s linear;
}

.stories-round__item:hover .stories-round__media::after,
.stories-round__item.is-playing .stories-round__media::after {
	opacity: 0;
}

.stories-round__video {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #e9ecef;
	object-fit: cover;
}

.stories-modal {
	position: fixed;
	inset: 0;
	z-index: 1080;
	display: none;
	align-items: stretch;
	justify-content: center;
	background: #111;
	overflow: hidden;
}

.stories-modal.is-open {
	display: flex;
}

.stories-modal::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgb(53 54 61 / 50%);
	pointer-events: none;
}

.stories-modal-lock {
	overflow: hidden;
}

.stories-modal__backdrop {
	position: absolute;
	inset: -120px;
	z-index: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	filter: blur(80px);
	pointer-events: none;
	transform: scale(1.12);
}

.stories-modal__viewer {
	position: relative;
	z-index: 2;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	aspect-ratio: auto;
	border-radius: 0;
	background: #111;
	overflow: hidden;
	box-shadow: none;
}

.stories-modal__video {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	background: #111;
	cursor: pointer;
	object-fit: cover;
	transform: translate(-50%, -50%);
}

.stories-modal__progress {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
	padding: 0;
}

.stories-modal__progress-item {
	position: relative;
	display: block;
	width: 100%;
	height: 18px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
	cursor: pointer;
}

.stories-modal__progress-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: rgba(255, 255, 255, .32);
	transition: height .2s linear;
}

.stories-modal__progress-item:hover::before,
.stories-modal__progress-item:hover .stories-modal__progress-bar {
	height: 6px;
}

.stories-modal__progress-bar {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 0;
	height: 4px;
	background: #ff3b4f;
	transition: height .2s linear;
}

.stories-modal__time {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	color: rgb(255 255 255 / 85%);
	font-size: 11px;
	text-shadow: 0 1px 3px rgb(0 0 0 / 50%);
}

.stories-modal__button {
	position: absolute;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .38);
	color: #fff;
	cursor: pointer;
	transition: background .18s ease, opacity .18s ease;
}

.stories-modal__button:hover {
	background: rgba(0, 0, 0, .56);
}

.stories-modal__button::before {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask-image: var(--stories-icon);
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-image: var(--stories-icon);
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
}

.stories-modal__close {
	--stories-icon: url("icon/close.svg");
	top: 40px;
	right: 12px;
	width: 30px;
	height: 30px;
}

.stories-modal__mute {
	--stories-icon: url("icon/volume-on.svg");
	top: 82px;
	right: 12px;
	width: 30px;
	height: 30px;
}

.stories-modal__mute.is-muted {
	--stories-icon: url("icon/volume-off.svg");
}

.stories-modal__sound {
	display: none;
}

.stories-modal__nav {
	top: 50%;
	width: 38px;
	height: 38px;
	transform: translateY(-50%);
}

.stories-modal__nav::before {
	width: 20px;
	height: 20px;
}

.stories-modal__prev {
	--stories-icon: url("icon/arrow-left.svg");
	left: 12px;
}

.stories-modal__next {
	--stories-icon: url("icon/arrow-right.svg");
	right: 12px;
}

.stories-modal__nav:disabled {
	opacity: .35;
	cursor: default;
}

.stories-modal__product {
	position: absolute;
	left: 7px;
	right: 7px;
	bottom: 7px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 82px;
	padding: 10px 10px;
	border-radius: 20px;
	background: #fff;
	color: #20242c;
	text-decoration: none;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .14);
}

.stories-modal__product:hover {
	color: #20242c;
	text-decoration: none;
}

.stories-modal__product-image {
	display: block;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	object-fit: cover;
}

.stories-modal__product-main {
	min-width: 0;
	flex: 1 1 auto;
}

.stories-modal__product-name {
	display: -webkit-box;
	margin-bottom: 8px;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.25;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.stories-modal__product-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
}

.stories-modal__product.has-special .stories-modal__product-price-current {
	color: #e50909;
}

.stories-modal__product-price-old {
	color: #8f949c;
	font-size: 12px;
	font-weight: 500;
	text-decoration: line-through;
}

.stories-modal__product-button {
	flex: 0 0 auto;
	padding: 8px 12px;
	border-radius: 12px;
	background: #20242c;
	color: #fff;
	font-size: 13px;
}

@media (min-width: 576px) {
	.stories-round__item {
		width: 78px;
		height: 78px;
	}

	.stories-modal {
		align-items: center;
		background: #2b2720;
	}

	.stories-modal__viewer {
		width: min(650px, calc(100vw - 176px), calc(56.25vh - 27px));
		height: auto;
		aspect-ratio: 9 / 16;
		border-radius: 30px;
		box-shadow: 0 8px 26px rgba(0, 0, 0, .26);
	}

	.stories-modal__close {
		top: 20px;
		right: 20px;
		width: 50px;
		height: 50px;
	}

	.stories-modal__mute {
		top: 42px;
		right: 14px;
	}

	.stories-modal__nav {
		width: 50px;
		height: 50px;
		transition: background .18s ease, opacity .18s ease, left .24s ease, right .24s ease;
	}

	.stories-modal__close::before,
	.stories-modal__nav::before {
		width: 22px;
		height: 22px;
	}

	.stories-modal__prev {
		left: calc(50% - min(325px, calc((100vw - 176px) / 2), calc(28.125vh - 13.5px)) - 68px);
	}

	.stories-modal__prev:hover {
		left: calc(50% - min(325px, calc((100vw - 176px) / 2), calc(28.125vh - 13.5px)) - 73px);
	}

	.stories-modal__next {
		right: calc(50% - min(325px, calc((100vw - 176px) / 2), calc(28.125vh - 13.5px)) - 68px);
	}

	.stories-modal__next:hover {
		right: calc(50% - min(325px, calc((100vw - 176px) / 2), calc(28.125vh - 13.5px)) - 73px);
	}

	.stories-modal__product {
		left: 10px;
		right: 10px;
		bottom: 10px;
		gap: 20px;
		padding: 10px 14px;
		border-radius: 24px;
	}

	.stories-modal__product-image {
		flex-basis: 60px;
		width: 60px;
		height: 60px;
	}

	.stories-modal__product-name {
		font-size: 14px;
	}

	.stories-modal__product-price {
		font-size: 16px;
	}

	.stories-modal__product-price-old {
		font-size: 13px;
	}
}
