@use "../teydea-admin" as *;

/**
 * Comparison table
 */
.tsc-comparison-table {
	border: 1px solid $tsc-border;
	border-collapse: separate;
	border-radius: $tsc-radius-lg;
	border-spacing: 0;
	padding: $tsc-space-3 0 $tsc-space-1;
	width: 100%;

	&__caption {
		@include tsc-visually-hidden;
	}

	th,
	td {
		border-top: 1px solid $tsc-hairline;
		font-size: 13px;
		line-height: 19px;
		padding: 11px $tsc-space-4;
		text-align: left;
		vertical-align: middle;
	}

	thead th {
		border-top: 0;
		font-weight: 600;
		padding-bottom: 10px;
		padding-top: 0;
	}

	thead th + th,
	td {
		padding-left: 0;
		padding-right: 0;
		text-align: center;
		white-space: nowrap;
		width: 160px;
	}

	tbody th[scope="row"] {
		font-weight: 400;
	}

	&__plan-note {
		color: $tsc-ink-muted;
		font-weight: 400;
	}

	&__group th {
		@include tsc-overline;

		border-top: 0;
		padding: $tsc-space-5 $tsc-space-4 $tsc-space-2;
	}

	/**
	 * A check sits on a pale green disc, the pair the "Active" label uses, so the plan that has
	 * a feature can be told apart at a glance; a dash stays quiet.
	 */
	&__mark {
		align-items: center;
		border-radius: 50%;
		display: inline-flex;
		height: 24px;
		justify-content: center;
		vertical-align: middle;
		width: 24px;

		svg {
			display: block;
			flex: none;
		}

		&--included {
			background: $tsc-success-subtle;
			color: $tsc-success;
		}

		&--missing {
			color: $tsc-ink-muted;
		}
	}
}
