.tspup-box {
	direction: rtl;
	position: relative;
	margin: 12px 0;
	padding: 12px;
	border: 1px solid rgba(224, 228, 236, 0.9);
	border-radius: 12px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94)),
		linear-gradient(135deg, rgba(230, 0, 100, 0.08), rgba(13, 103, 216, 0.07));
	box-shadow: 0 10px 26px rgba(18, 24, 40, 0.055);
	overflow: hidden;
	font-family: inherit;
}

.tspup-box,
.tspup-box * {
	box-sizing: border-box;
}

.tspup-box__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.tspup-box__title {
	margin: 0;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.6;
	letter-spacing: 0;
	color: #121827;
}

.tspup-box__subtitle {
	margin: 0;
	font-size: 11px;
	line-height: 1.6;
	color: #6b7280;
}

.tspup-box__tools {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
}

.tspup-box__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 26px;
	padding: 5px 9px;
	border: 1px solid #e7eaf0;
	border-radius: 999px;
	background: #fff;
	color: #5c6472;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 6px 16px rgba(18, 24, 40, 0.05);
}

.tspup-slider__navs {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tspup-slider__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-width: 28px;
	min-height: 28px;
	padding: 0;
	border: 1px solid #e3e7ef;
	border-radius: 999px !important;
	background: #fff;
	color: #111827;
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 5px 12px rgba(18, 24, 40, 0.06);
	transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.tspup-slider__nav:hover,
.tspup-slider__nav:focus {
	transform: translateY(-1px);
	border-color: #e60064;
	background: #e60064;
	color: #fff;
}

.tspup-slider__nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none;
}

.tspup-slider {
	position: relative;
	margin: 0 -12px -4px;
	padding: 0 12px 2px;
}

.tspup-slider::before,
.tspup-slider::after {
	content: "";
	position: absolute;
	top: 0;
	z-index: 2;
	width: 26px;
	height: calc(100% - 6px);
	pointer-events: none;
}

.tspup-slider::before {
	right: 0;
	background: linear-gradient(90deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.98));
}

.tspup-slider::after {
	left: 0;
	background: linear-gradient(270deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.98));
}

.tspup-box__cards {
	display: flex;
	flex-flow: row nowrap;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 3px 2px 10px;
	cursor: grab;
	user-select: none;
	-webkit-overflow-scrolling: touch;
}

.tspup-box__cards.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

.tspup-box__cards::-webkit-scrollbar {
	display: none;
}

.tspup-card {
	position: relative;
	display: flex;
	flex: 0 0 clamp(220px, 26vw, 270px);
	flex-direction: column;
	min-height: 148px;
	padding: 11px;
	border: 1px solid rgba(226, 231, 239, 0.95);
	border-radius: 13px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(18, 24, 40, 0.07);
	scroll-snap-align: start;
	overflow: hidden;
	transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease, opacity 170ms ease;
}

.tspup-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(180deg, rgba(230, 0, 100, 0.08), rgba(255, 255, 255, 0) 48%);
	opacity: 0.95;
}

.tspup-card > * {
	position: relative;
	z-index: 1;
}

.tspup-card:hover {
	transform: translateY(-2px);
	border-color: rgba(230, 0, 100, 0.34);
	box-shadow: 0 14px 28px rgba(18, 24, 40, 0.10);
}

.tspup-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 7px;
}

.tspup-card__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: #fff1f8;
	color: #e60064;
	box-shadow: inset 0 0 0 1px rgba(230, 0, 100, 0.10);
}

.tspup-card__icon::before,
.tspup-card__icon::after {
	content: "";
	position: absolute;
	display: block;
}

.tspup-card__icon::before {
	width: 15px;
	height: 11px;
	border: 2px solid currentColor;
	border-radius: 4px;
}

.tspup-card__icon::after {
	width: 2px;
	height: 16px;
	background: currentColor;
	transform: rotate(90deg);
}

.tspup-card__icon--free_shipping::before {
	width: 17px;
	height: 10px;
	border-radius: 4px;
	transform: translateX(-2px);
}

.tspup-card__icon--free_shipping::after {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: -11px 0 0 currentColor;
	transform: translate(5px, 8px);
}

.tspup-card__icon--cart_discount {
	background: #eef6ff;
	color: #0d67d8;
	box-shadow: inset 0 0 0 1px rgba(13, 103, 216, 0.11);
}

.tspup-card__icon--shipping_discount,
.tspup-card__icon--tiered_discount {
	background: #f5f3ff;
	color: #7c3aed;
	box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12);
}

.tspup-card__icon--gift_product {
	background: #eefcf4;
	color: #16934a;
	box-shadow: inset 0 0 0 1px rgba(22, 147, 74, 0.12);
}

.tspup-card__icon--coupon {
	background: #fff7ed;
	color: #dc6b10;
	box-shadow: inset 0 0 0 1px rgba(220, 107, 16, 0.12);
}

.tspup-card__status {
	max-width: 112px;
	padding: 4px 8px;
	border: 1px solid rgba(226, 231, 239, 0.95);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: #667085;
	font-size: 10px;
	font-weight: 900;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	backdrop-filter: blur(10px);
}

.tspup-card__content {
	flex: 1 1 auto;
	min-width: 0;
}

.tspup-card__reward {
	display: inline-block;
	margin-bottom: 2px;
	color: #e60064;
	font-size: 10px;
	font-weight: 900;
	line-height: 1.5;
}

.tspup-card__title {
	margin: 0;
	color: #101828;
	font-size: 13px;
	font-weight: 950;
	line-height: 1.6;
	letter-spacing: 0;
}

.tspup-card__message {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	min-height: 34px;
	margin: 3px 0 0;
	overflow: hidden;
	color: #5f6877;
	font-size: 11px;
	line-height: 1.55;
}

.tspup-card__action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 30px;
}

.tspup-box .tspup-card__button {
	flex: 0 0 auto;
	min-height: 30px;
	padding: 7px 14px;
	border: 1px solid rgba(230, 0, 100, 0.24) !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #fff, #fff5fa) !important;
	color: #d6005d !important;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(230, 0, 100, 0.10);
	transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.tspup-box .tspup-card__button:hover:not(:disabled),
.tspup-box .tspup-card__button:focus:not(:disabled) {
	transform: translateY(-1px);
	border-color: #e60064 !important;
	background: linear-gradient(135deg, #e60064, #ff5a8f) !important;
	color: #fff !important;
}

.tspup-box .tspup-card__button:disabled {
	border-color: #edf0f5 !important;
	background: #f3f5f8 !important;
	color: #98a2b3 !important;
	cursor: not-allowed;
	box-shadow: none;
}

.tspup-box .tspup-card__button--ghost {
	border-color: rgba(100, 116, 139, 0.22) !important;
	background: #fff !important;
	color: #475569 !important;
	box-shadow: none;
}

.tspup-box .tspup-card__button--ghost:hover,
.tspup-box .tspup-card__button--ghost:focus {
	border-color: #64748b !important;
	background: #f8fafc !important;
	color: #111827 !important;
}

.tspup-card__active-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 7px 12px;
	border: 1px solid rgba(22, 163, 74, 0.22);
	border-radius: 999px;
	background: #dcfce7;
	color: #15803d;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
}

.tspup-card__claimed-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 7px 12px;
	border: 1px solid rgba(100, 116, 139, 0.18);
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
}

.tspup-card__hint {
	position: relative;
	min-width: 0;
	padding-right: 14px;
	color: #8a93a3;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.6;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tspup-card__hint::before {
	content: "";
	position: absolute;
	top: 4px;
	right: 0;
	width: 8px;
	height: 7px;
	border: 2px solid currentColor;
	border-radius: 2px;
}

.tspup-card__hint::after {
	content: "";
	position: absolute;
	top: 0;
	right: 2px;
	width: 5px;
	height: 6px;
	border: 2px solid currentColor;
	border-bottom: 0;
	border-radius: 5px 5px 0 0;
}

.tspup-card--pinned {
	border-color: rgba(230, 0, 100, 0.28);
}

.tspup-card--eligible {
	border-color: rgba(13, 103, 216, 0.26);
}

.tspup-card--active {
	border-color: rgba(22, 163, 74, 0.34);
	background: #fbfffd;
}

.tspup-card--active::before {
	background: linear-gradient(180deg, rgba(22, 163, 74, 0.10), rgba(255, 255, 255, 0) 50%);
}

.tspup-card--active .tspup-card__status {
	border-color: rgba(22, 163, 74, 0.22);
	background: rgba(236, 253, 245, 0.82);
	color: #15803d;
}

.tspup-card--active .tspup-card__button {
	background: #16a34a;
	color: #fff;
}

.tspup-card--ineligible,
.tspup-card--blocked {
	opacity: 0.82;
}

.tspup-card--blocked {
	border-style: dashed;
}

.tspup-card--claimed {
	border-color: rgba(148, 163, 184, 0.32);
	background: #fff;
	opacity: 0.88;
}

.tspup-card--claimed::before {
	background: linear-gradient(180deg, rgba(148, 163, 184, 0.12), rgba(255, 255, 255, 0) 50%);
}

.tspup-card--claimed .tspup-card__status {
	background: #f1f5f9;
	color: #475569;
}

.tspup-card--ineligible .tspup-card__reward,
.tspup-card--blocked .tspup-card__reward {
	color: #8a93a3;
}

.tspup-card.is-loading {
	pointer-events: none;
	opacity: 0.72;
}

.tspup-shipping-label {
	display: inline-block;
	margin-right: 6px;
	padding: 2px 7px;
	border-radius: 999px;
	background: #eafff0;
	color: #15803d;
	font-size: 11px;
	font-weight: 900;
	vertical-align: middle;
}

@media (max-width: 760px) {
	.tspup-box {
		padding: 11px;
		border-radius: 11px;
	}

	.tspup-box__header {
		align-items: center;
	}

	.tspup-box__subtitle {
		display: none;
	}

	.tspup-box__count {
		display: none;
	}

	.tspup-slider {
		margin-right: -11px;
		margin-left: -11px;
		padding-right: 11px;
		padding-left: 11px;
	}

	.tspup-card {
		flex-basis: min(76vw, 260px);
		min-height: 146px;
	}
}

@media (max-width: 420px) {
	.tspup-box__title {
		font-size: 14px;
	}

	.tspup-slider__nav {
		width: 28px;
		height: 28px;
	}
}
