.ctw-wrapper {
	max-width: 1100px;
	margin: 0 auto;
	font-family: inherit;
}

/* ---------- Desktop grid table ---------- */
.ctw-table {
	display: block;
	border: 1px solid #eaeaf0;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
}

.ctw-row {
	display: grid;
	grid-template-columns: 1.3fr repeat(var(--ctw-cols), 1fr);
	border-bottom: 1px solid #f0f0f5;
}
.ctw-row:last-child { border-bottom: none; }

.ctw-cell {
	padding: 18px 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 4px;
}

.ctw-feature-label {
	align-items: flex-start;
	text-align: left;
	font-weight: 600;
	color: #2d2d3a;
	font-size: 14px;
}

.ctw-header-row { background: #fafaFC; }
.ctw-header-label { font-size: 13px; letter-spacing: .04em; color: #8a8aa0; text-transform: uppercase; }

.ctw-provider-header { position: relative; padding-top: 24px; }
.ctw-provider-name-wrap { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ctw-provider-name { font-weight: 700; font-size: 17px; color: #1a1a2e; }
.ctw-logo { max-height: 28px; max-width: 100px; width: auto; height: auto; object-fit: contain; }

.ctw-badge {
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	background: #8b5cf622;
	color: #8b5cf6;
	margin-bottom: 4px;
}

.ctw-winner {
	background: #faf8ff;
	border-left: 2px solid #8b5cf6;
	border-right: 2px solid #8b5cf6;
}
.ctw-header-row .ctw-winner {
	border-top: 2px solid #8b5cf6;
	border-radius: 12px 12px 0 0;
}

.ctw-stars { white-space: nowrap; font-size: 16px; letter-spacing: 1px; }
.ctw-star-full { color: #f5a623; }
.ctw-star-half { color: #f5a623; opacity: .5; }
.ctw-star-empty { color: #dcdce4; }
.ctw-rating-number { font-size: 12px; color: #8a8aa0; margin-top: 2px; }

.ctw-price { font-weight: 700; font-size: 17px; color: #1a1a2e; }
.ctw-save { font-size: 12px; color: #22c55e; font-weight: 600; margin-top: 2px; }

.ctw-icon-yes { color: #22c55e; font-size: 18px; }
.ctw-icon-no { color: #ef4444; font-size: 18px; }
.ctw-icon-limited { color: #f59e0b; font-weight: 600; font-size: 13px; }

.ctw-recommend { font-weight: 600; color: #2d2d3a; }
.ctw-recommend-winner { color: #8b5cf6; font-weight: 700; }

/* ---------- Mobile / Tablet accordion cards (hidden by default on desktop) ---------- */
.ctw-mobile-cards { display: none; }

@media (max-width: 991px) {
	.ctw-table { display: none !important; }

	.ctw-mobile-cards {
		display: flex !important;
		flex-direction: column;
		gap: 14px;
	}

	.ctw-mobile-card {
		border: 1px solid #ece9f4;
		border-radius: 16px;
		overflow: hidden;
		background: #fbfaff;
		transition: box-shadow .2s ease, border-color .2s ease;
	}
	.ctw-mobile-card.ctw-winner {
		border: 2px solid #8b5cf6;
		background: #fff;
	}

	.ctw-mobile-card-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 16px 18px;
		cursor: pointer;
	}

	.ctw-mobile-card-header-left {
		display: flex;
		align-items: center;
		gap: 10px;
		flex-wrap: wrap;
		flex: 1;
		min-width: 0;
	}

	.ctw-mobile-card-header .ctw-provider-name {
		font-size: 16px;
		white-space: nowrap;
	}

	.ctw-mobile-card-header .ctw-badge {
		background: #ede9fe;
		color: #7c3aed;
		display: inline-flex;
		align-items: center;
		gap: 4px;
		white-space: nowrap;
		margin-bottom: 0;
	}

	.ctw-logo-mobile { max-height: 22px; max-width: 80px; }

	/* Rounded-square toggle button, matches the target design */
	.ctw-accordion-toggle {
		flex-shrink: 0;
		border: none;
		background: #ece7fb;
		color: #8b5cf6;
		width: 52px;
		height: 44px;
		min-width: 52px;
		border-radius: 12px;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: background-color .18s ease, transform .18s ease;
	}
	.ctw-accordion-icon {
		font-size: 22px;
		line-height: 1;
		font-weight: 400;
		display: block;
	}

	/* Hover effect — mobile/tablet only, doesn't touch desktop styles above */
	.ctw-accordion-toggle:hover,
	.ctw-accordion-toggle:focus-visible {
		background-color: #ddd4fb;
		outline: none;
	}
	.ctw-accordion-toggle:active {
		transform: scale(0.94);
	}
	.ctw-mobile-card:hover {
		box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12);
	}

	.ctw-mobile-card.ctw-open .ctw-accordion-toggle {
		background-color: #8b5cf6;
		color: #fff;
	}

	.ctw-mobile-card-body {
		max-height: 0;
		overflow: hidden;
		transition: max-height .25s ease;
		padding: 0 18px;
	}
	.ctw-mobile-card.ctw-open .ctw-mobile-card-body {
		padding: 6px 18px 18px;
	}

	.ctw-mobile-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding: 9px 0;
		border-bottom: 1px solid #f0f0f5;
		font-size: 14px;
	}
	.ctw-mobile-row:last-child { border-bottom: none; }
	.ctw-mobile-label { color: #8a8aa0; font-weight: 600; }
	.ctw-mobile-value { text-align: right; }
}

/* Small phones: tighten spacing a bit further */
@media (max-width: 420px) {
	.ctw-mobile-card-header { padding: 14px; }
	.ctw-accordion-toggle { width: 46px; height: 40px; min-width: 46px; }
}
