.ts-iw {
	--ts-iw-status-available-bg: #e8f7ef;
	--ts-iw-status-available-text: #0f5132;
	--ts-iw-status-pending-bg: #fff6e6;
	--ts-iw-status-pending-text: #8a6100;
	--ts-iw-status-won-bg: #e9ecff;
	--ts-iw-status-won-text: #2434a1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ts-iw__header {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ts-iw__eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ff5f01;
}

.ts-iw__title {
	margin: 0;
	font-weight: 700;
}

.ts-iw__subheading {
	margin: 0;
	color: #333;
	font-size: 15px;
	line-height: 1.5;
}

.ts-iw__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

.ts-iw__stat {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	background: #f5f5f5;
	font-size: 13px;
	font-weight: 700;
}

.ts-iw__stat-count {
	font-variant-numeric: tabular-nums;
}

.ts-iw__stat-label {
	font-weight: 600;
}

.ts-iw__groups {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ts-iw__group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ts-iw__group-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.ts-iw__group-title {
	margin: 0;
	font-weight: 700;
}

.ts-iw__group-meta {
	font-size: 13px;
	color: #4a4a4a;
	margin-top: 2px;
}

.ts-iw__group-prize {
	font-weight: 700;
	color: var(--ts-iw-group-prize-color, #111);
	margin-top: 4px;
}

.ts-iw__available-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ts-iw__available-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--ts-iw-available-chip-bg, #f0f0f0);
	font-size: 12px;
	font-weight: 700;
	color: var(--ts-iw-available-chip-text, #111);
}

.ts-iw__available-chip--more {
	background: var(--ts-iw-available-chip-more-bg, #e0e7ff);
	color: var(--ts-iw-available-chip-more-text, #233876);
}

.ts-iw__available-empty {
	font-size: 13px;
	color: var(--ts-iw-available-empty-color, #555);
}

.ts-iw__tickets {
	margin-top: 8px;
	border: 1px solid var(--ts-iw-tickets-border, #ececec);
	border-radius: 10px;
	padding: 10px 12px;
	background: var(--ts-iw-tickets-bg, #fafafa);
	width: 100%;
}

.ts-iw__tickets[open] {
	background: var(--ts-iw-tickets-open-bg, #f5f8ff);
	border-color: var(--ts-iw-tickets-open-border, #dbe4ff);
}

.ts-iw__toggle {
	cursor: pointer;
	font-weight: 700;
	font-size: 13px;
	color: #111;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 6px;
}

.ts-iw__toggle::-webkit-details-marker {
	display: none;
}

.ts-iw__toggle::after {
	content: '▾';
	font-size: 12px;
	transform: translateY(1px);
}

.ts-iw__tickets[open] .ts-iw__toggle::after {
	content: '▴';
}

.ts-iw__items {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}

.ts-iw--grid .ts-iw__items {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ts-iw--list .ts-iw__items {
	grid-template-columns: 1fr;
}

.ts-iw-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #ffffff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	padding: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.ts-iw-card--group-main {
	flex-direction: column;
}

.ts-iw-card__top {
	display: flex;
	gap: 12px;
	width: 100%;
	align-items: center;
}

.ts-iw--list .ts-iw-card {
	flex-direction: column;
}

.ts-iw-card__image img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.ts-iw-card--group-main .ts-iw-card__image img {
	width: 110px;
	height: 110px;
}

.ts-iw--list .ts-iw-card__image img {
	width: 100%;
	height: 180px;
}

.ts-iw-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.ts-iw-card__footer {
	width: 100%;
}

.ts-iw-card__status {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 12px;
	width: fit-content;
}

.ts-iw-card__status--lty_available {
	background: var(--ts-iw-status-available-bg);
	color: var(--ts-iw-status-available-text);
}

.ts-iw-card__status--lty_pending {
	background: var(--ts-iw-status-pending-bg);
	color: var(--ts-iw-status-pending-text);
}

.ts-iw-card__status--lty_won {
	background: var(--ts-iw-status-won-bg);
	color: var(--ts-iw-status-won-text);
}

.ts-iw__progress-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ts-iw__progress {
	width: 100%;
	background: #eeeeee;
	border-radius: 10px;
	overflow: hidden;
	height: 10px;
}

.ts-iw__progress-bar {
	height: 100%;
	background: #ff5f01;
	border-radius: inherit;
}

.ts-iw__progress-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
}

.ts-iw__progress-value {
	font-weight: 700;
}

.ts-iw-card__ticket {
	font-size: 13px;
	color: #4a4a4a;
}

.ts-iw-card__message {
	font-weight: 700;
	line-height: 1.4;
}

.ts-iw-card__winner {
	font-size: 13px;
	color: #4a4a4a;
}

.ts-iw__empty {
	border: 1px dashed var(--ts-iw-empty-border, #d5d5d5);
	border-radius: 10px;
	padding: 14px;
	text-align: center;
	color: var(--ts-iw-empty-text, #555);
}

.ts-iw__native {
	margin-top: 10px;
}

@media (max-width: 767px) {
	.ts-iw__items {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}
}
