.cgs-features-table {
	--cgs-features-brown: #6f605b;
	--cgs-features-border: #d9d1cc;
	--cgs-features-soft: #f9f7f6;
	--cgs-features-hover: #f7f5f4;
	--cgs-features-green: #24873d;
	--cgs-features-red: #c4362d;
	box-sizing: border-box;
	color: var(--cgs-features-brown);
	margin: 10px auto 20px;
	max-width: 1200px;
	padding: 0 10px;
}

.cgs-features-table *,
.cgs-features-table *::before,
.cgs-features-table *::after {
	box-sizing: border-box;
}

.cgs-features-table__plans {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cgs-features-plan {
	background: #fff;
	border: 1px solid var(--cgs-features-brown);
	border-radius: 5px;
	overflow: hidden;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.cgs-features-plan:hover {
	background: var(--cgs-features-hover);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cgs-features-plan__header {
	background: var(--cgs-features-soft);
	border-bottom: 1px solid var(--cgs-features-brown);
	padding: 15px;
	text-align: center;
}

.cgs-features-plan__title {
	color: var(--cgs-features-brown);
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.cgs-features-plan__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cgs-features-row {
	align-items: center;
	border-bottom: 1px solid #e0dcd9;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	min-width: 0;
	padding: 12px 15px;
	position: relative;
}

.cgs-features-row:last-child {
	border-bottom: 0;
}

.cgs-features-row__main {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	gap: 8px;
	min-width: 0;
}

.cgs-features-row__status {
	display: inline-flex;
	flex: 0 0 auto;
}

.cgs-features-icon {
	display: block;
	height: 18px;
	width: 18px;
}

.cgs-features-icon--included {
	fill: var(--cgs-features-green);
}

.cgs-features-icon--excluded {
	fill: var(--cgs-features-red);
}

.cgs-features-row__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cgs-features-row__label {
	color: var(--cgs-features-brown);
	font-size: 1rem;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cgs-features-row__subtext {
	color: var(--cgs-features-brown);
	font-size: 0.8rem;
	line-height: 1.3;
	margin-top: 3px;
}

.cgs-features-tooltip {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 1px solid var(--cgs-features-brown);
	border-radius: 999px;
	color: var(--cgs-features-brown);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 24px;
	font-size: 0.78rem;
	font-weight: 700;
	height: 24px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 24px;
}

.cgs-features-tooltip:hover,
.cgs-features-tooltip:focus-visible {
	background: var(--cgs-features-brown);
	border-color: var(--cgs-features-brown);
	color: #fff;
	outline: 2px solid transparent;
}

.cgs-features-tooltip__content,
.cgs-features-sr {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.cgs-features-tooltip-float {
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 5px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	color: var(--cgs-features-brown, #6f605b);
	font-size: 0.8rem;
	line-height: 1.35;
	max-width: min(220px, calc(100vw - 24px));
	opacity: 0;
	padding: 8px 10px;
	pointer-events: none;
	position: fixed;
	text-align: left;
	transition: opacity 0.15s ease;
	width: max-content;
	z-index: 999999;
}

.cgs-features-tooltip-float.is-visible {
	opacity: 1;
}

.cgs-features-table__note {
	color: var(--cgs-features-brown);
	font-size: 0.8rem;
	margin: 10px 0 0;
	text-align: center;
}

@media (max-width: 979px) {
	.cgs-features-table__plans {
		grid-template-columns: minmax(0, 1fr);
	}

	.cgs-features-plan {
		width: 100%;
	}

	.cgs-features-row__label {
		overflow-wrap: anywhere;
		white-space: normal;
	}
}
