.ttwab-section,
.ttwab-section * {
	box-sizing: border-box;
}

.ttwab-section {
	position: relative;
	width: 100%;
	margin: 36px 0;
	font-family: inherit;
}

.ttwab-heading {
	margin: 0 0 22px;
	text-align: center;
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 500;
	line-height: 1.15;
}

.ttwab-carousel {
	position: relative;
	width: 100%;
}

.ttwab-track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 8px 14px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.ttwab-track::-webkit-scrollbar {
	display: none;
}

.ttwab-card {
	position: relative;
	flex: 0 0 clamp(178px, 15vw, 224px);
	height: clamp(310px, 29vw, 390px);
	overflow: hidden;
	border-radius: 10px;
	background: #111;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
	scroll-snap-align: start;
}

.ttwab-open-video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.ttwab-open-video::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 48%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0));
	pointer-events: none;
}

.ttwab-card-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #111;
}

.ttwab-card-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 54px;
	height: 54px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
	transition: opacity 160ms ease, transform 160ms ease;
}

.ttwab-card-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 52%;
	transform: translate(-40%, -50%);
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 13px solid #111;
}

.ttwab-card.is-playing .ttwab-card-play {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.85);
}

.ttwab-card-product {
	position: absolute;
	left: 11px;
	right: 11px;
	bottom: 12px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 9px;
	color: #fff;
	text-decoration: none;
}

.ttwab-card-product:hover,
.ttwab-card-product:focus {
	color: #fff;
	text-decoration: none;
}

.ttwab-card-product img {
	flex: 0 0 auto;
	width: 44px;
	height: 58px;
	border-radius: 5px;
	object-fit: cover;
	background: #fff;
}

.ttwab-card-product span {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.18;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.48);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ttwab-carousel-arrow {
	position: absolute;
	top: 50%;
	z-index: 8;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0 0 3px;
	transform: translateY(-50%);
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.ttwab-carousel-prev {
	left: 10px;
}

.ttwab-carousel-next {
	right: 10px;
}

.ttwab-notice {
	margin: 16px 0;
	padding: 14px 16px;
	border: 1px solid #ead19b;
	border-radius: 7px;
	background: #fff8e8;
	color: #684b0d;
}

/* Story modal */
.ttwab-modal,
.ttwab-modal * {
	box-sizing: border-box;
}

.ttwab-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 22px;
	background: rgba(0, 0, 0, 0.9);
}

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

.ttwab-modal-shell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(1040px, 100%);
	height: min(700px, 94vh);
}

.ttwab-stage {
	position: relative;
	z-index: 5;
	width: min(360px, 82vw);
	height: min(640px, 88vh);
	overflow: hidden;
	border-radius: 10px;
	background: #111;
	box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62);
}

.ttwab-progress {
	position: absolute;
	top: 8px;
	left: 10px;
	right: 10px;
	z-index: 12;
	height: 4px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.3);
}

.ttwab-progress-bar {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: #fff;
}

.ttwab-main-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #111;
}

.ttwab-modal-product {
	position: absolute;
	left: 50%;
	bottom: 22px;
	z-index: 13;
	display: flex;
	align-items: center;
	gap: 10px;
	width: calc(100% - 34px);
	min-height: 76px;
	padding: 9px;
	transform: translateX(-50%);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.93);
	color: #111;
	text-decoration: none;
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
	backdrop-filter: blur(8px);
}

.ttwab-modal-product:hover,
.ttwab-modal-product:focus {
	color: #111;
	text-decoration: none;
}

.ttwab-modal-product img {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	border-radius: 6px;
	object-fit: cover;
	background: #eee;
}

.ttwab-modal-product-copy {
	min-width: 0;
}

.ttwab-modal-title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ttwab-shop-now {
	display: block;
	margin-top: 7px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.ttwab-side-preview {
	position: absolute;
	top: 50%;
	display: block;
	width: 230px;
	height: 400px;
	overflow: hidden;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	border: 0;
	border-radius: 9px;
	background: #222;
	opacity: 0.68;
	box-shadow: 0 12px 38px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}

.ttwab-side-preview video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ttwab-side-prev {
	right: calc(50% + 185px);
}

.ttwab-side-next {
	left: calc(50% + 185px);
}

.ttwab-modal-close,
.ttwab-modal-nav,
.ttwab-sound {
	position: absolute;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	border: 0;
	cursor: pointer;
}

.ttwab-modal-close {
	top: 10px;
	right: 14px;
	width: 44px;
	height: 44px;
	padding: 0 0 4px;
	background: transparent;
	color: #fff;
	font-size: 40px;
	line-height: 1;
}

.ttwab-modal-nav {
	top: 50%;
	width: 46px;
	height: 46px;
	padding: 0 0 3px;
	transform: translateY(-50%);
	border-radius: 50%;
	background: #fff;
	color: #111;
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
	font-size: 34px;
	line-height: 1;
}

.ttwab-modal-prev {
	left: 2%;
}

.ttwab-modal-next {
	right: 2%;
}

.ttwab-sound {
	top: 18px;
	right: 10px;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.38);
	color: #fff;
	font-size: 17px;
}

body.ttwab-lock {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.ttwab-side-preview {
		width: 190px;
		height: 340px;
	}

	.ttwab-side-prev {
		right: calc(50% + 155px);
	}

	.ttwab-side-next {
		left: calc(50% + 155px);
	}
}

@media (max-width: 767px) {
	.ttwab-section {
		margin: 26px 0;
	}

	.ttwab-track {
		gap: 10px;
		padding-right: 12px;
		padding-left: 12px;
	}

	.ttwab-card {
		flex-basis: 148px;
		height: 262px;
		border-radius: 8px;
	}

	.ttwab-card-product {
		left: 8px;
		right: 8px;
		bottom: 9px;
		gap: 7px;
	}

	.ttwab-card-product img {
		width: 36px;
		height: 48px;
	}

	.ttwab-card-product span {
		font-size: 12px;
	}

	.ttwab-card-play {
		width: 46px;
		height: 46px;
	}

	.ttwab-carousel-arrow {
		display: none;
	}

	.ttwab-modal {
		padding: 8px;
	}

	.ttwab-modal-shell {
		height: 96vh;
	}

	.ttwab-stage {
		width: min(390px, 94vw);
		height: min(690px, 90vh);
	}

	.ttwab-side-preview {
		display: none;
	}

	.ttwab-modal-nav {
		width: 39px;
		height: 39px;
		font-size: 28px;
	}

	.ttwab-modal-prev {
		left: 6px;
	}

	.ttwab-modal-next {
		right: 6px;
	}

	.ttwab-modal-close {
		top: 4px;
		right: 5px;
	}
}
