.tnc-fct-wrapper {
	width: 100%;
	overflow-x: auto;
	margin: 20px 0;
}

/* Hide external button above 980px */
.tnc-fct-external-button {
	display: none !important;
}

.tnc-fct-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
}

/* Default Style */
.tnc-fct-style-default .tnc-fct-table {
	color: #333;
}

.tnc-fct-style-default .tnc-fct-table th {
	background: #f5f5f5;
	color: #333;
}

.tnc-fct-style-default .tnc-fct-table td,
.tnc-fct-style-default .tnc-fct-table th {
	border: 1px solid #ddd;
}

/* Dark Style */
.tnc-fct-style-dark .tnc-fct-table {
	background: #1a1a1a;
	color: #fff;
}

.tnc-fct-style-dark .tnc-fct-table th {
	background: #2d2d2d;
	color: #fff;
}

.tnc-fct-style-dark .tnc-fct-table td {
	background: #1a1a1a;
	color: #fff;
	border: 1px solid #333;
}

.tnc-fct-style-dark .tnc-fct-category-header {
	background: #2d2d2d;
	color: #fff;
}

/* Light Style */
.tnc-fct-style-light .tnc-fct-table {
	background: #ffffff;
	color: #000;
}

.tnc-fct-style-light .tnc-fct-table th {
	background: #f9f9f9;
	color: #000;
}

.tnc-fct-style-light .tnc-fct-table td {
	background: #ffffff;
	color: #000;
	border: 1px solid #e5e5e5;
}

/* Table Structure */
.tnc-fct-table th,
.tnc-fct-table td {
	padding: 15px;
	text-align: left;
	vertical-align: middle;
}

.tnc-fct-table th {
	font-weight: 600;
	text-align: center;
}

.tnc-fct-feature-column {
	width: 30%;
	min-width: 200px;
	text-align: left !important;
}

.tnc-fct-plan-header {
	text-align: center;
	font-weight: 600;
	font-size: 16px;
}

.tnc-fct-category-header {
	background: #f0f0f0;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 15px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.tnc-fct-style-dark .tnc-fct-category-header {
	background: #2d2d2d;
}

.tnc-fct-feature-name {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	position: relative;
}

.tnc-fct-feature-text {
	flex: 1;
	color: #4A5F66;
	/* Paragraph/16/Medium */
	font-family: "DM Sans";
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 150%; /* 24px */
}

.tnc-fct-info-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	cursor: help;
	font-style: normal;
	margin-left: auto;
	flex-shrink: 0;
	order: 2;
	visibility: visible !important;
	opacity: 1 !important;
}

.tnc-fct-info-icon-svg,
.tnc-fct-info-icon-img {
	width: 16px !important;
	height: 16px !important;
	display: inline-block !important;
	vertical-align: middle;
	visibility: visible !important;
	opacity: 1 !important;
}

.tnc-fct-feature-value {
	text-align: center;
	font-size: 18px;
	font-weight: 600;
}

.tnc-fct-check {
	color: #46b450;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tnc-fct-tick-icon {
	width: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: middle;
}

.tnc-fct-cross {
	color: #dc3232;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tnc-fct-cross-icon {
	width: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: middle;
}


.tnc-fct-style-dark .tnc-fct-buttons-row {
	background: #2d2d2d;
}

.tnc-fct-button-cell {
	text-align: center;
	padding: 20px 15px;
}

.tnc-fct-button {
	display: inline-block;
	padding: 12px 30px;
	background: #0073aa;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.3s ease;
	width: 100%;
}

.tnc-fct-button:hover {
	background: #005a87;
	color: #fff;
	text-decoration: none;
}

.tnc-fct-style-dark .tnc-fct-button {
	background: #0073aa;
}

.tnc-fct-style-dark .tnc-fct-button:hover {
	background: #005a87;
}

/* Responsive */
@media (max-width: 768px) {
	.tnc-fct-table {
		font-size: 14px;
	}
	
	.tnc-fct-table th,
	.tnc-fct-table td {
		padding: 10px 8px;
	}
	
	.tnc-fct-button {
		padding: 10px 20px;
		font-size: 14px;
	}
}

.tnc-fct-table {
	border:none !important;
}

.tnc-fct-category-header {
    border-radius: 6px 0 0 0;
    border: 1px solid #D2DAE6;
	background: #0055D4;
	color: #FFF;
	/* Paragraph/18/Medium */
	font-family: "DM Sans";
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 160%; /* 28.8px */
	letter-spacing: -0.36px;
}

.tnc-fct-feature-row td {
    border-right: 1px solid #D2DAE6;
} 

th.tnc-fct-plan-header {
    border: 1px solid #0F2D35 !important;
	border-top-right-radius: 10px !important;
    border-top-left-radius: 10px !important;
}

tr.tnc-fct-feature-row {
    border: 1px solid #D2DAE6;
}

td.tnc-fct-feature-name {
	border-top: none !important;
	border-bottom:none !important
}

td.tnc-fct-feature-value {
	border-top: none !important;
}

td.tnc-fct-button-cell {
    padding: 0px !important;
}

td.tnc-fct-button-cell {
    border-right: 1px solid #FFF;
}

td.tnc-fct-button-cell:first-child {
    border-right: none !important;
}

td.tnc-fct-button-cell:last-child {
    border-right: none !important;
}

td.tnc-fct-button-cell:nth-child(2) a.tnc-fct-button  {
	border-radius: 0 0 0 6px !important;
	border-right: 1px solid #FFF;
	background: #0055D4;
}

td.tnc-fct-button-cell:last-child a.tnc-fct-button  {
	border-radius: 0 0 6px 0 !important;
	border-right: 1px solid #FFF;
	background: #0055D4;
}


.tnc-fct-button-cell .tnc-fct-button { 
	background: #0055D4;
	text-decoration: none;
	transition: background 0.3s ease;
	width: 100%;
}


td.tnc-fct-category-header {
	background-color:#0F2D35;
	border-radius: 0 !important;
	border: 1px solid #0F2D35 !important;
}


th.tnc-fct-plan-header:nth-child(2) {
    display: flex;
    border-right: none !important;
    border-top-left-radius: 6px !important;
    border-top-right-radius: 0px !important;
	border-bottom: none !important;
	justify-content: center;
}


th.tnc-fct-plan-header:nth-child(5) {
    display: flex;
    border-left: none !important;
    border-top-left-radius: 0px !important;
    border-top-right-radius: 6px !important;
	border-bottom: none !important;
	justify-content: center;
}

td.tnc-fct-feature-value span {
    display: flex;
}

a.tnc-fct-button {
	text-align: center !important;
	color: #FFF;
	font-family: "DM Sans";
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 160%; /* 28.8px */
	letter-spacing: -0.36px;
}

td.tnc-fct-category-header {
	color: #FFF;
	/* Paragraph/18/Medium */
	font-family: "DM Sans";
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 160%; /* 28.8px */
	letter-spacing: -0.36px;
    text-transform: inherit;
	padding: 10x 24px !important
}  

.tnc-fct-feature-name {
	padding: 9px 24px !important
}
td.tnc-fct-feature-value {
	padding: 9px 24px !important
}

/* Tooltip Styles */
.tnc-fct-info-icon {
	position: relative;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tnc-fct-tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	padding: 10px 14px;
	background: #FFF;
	color: #0F2D35;
	border: 1px solid #D2DAE6;
	font-size: 14px;
	line-height: 1.5;
	border-radius: 6px;
	white-space: normal;
	word-wrap: break-word;
	max-width: 280px;
	width: max-content;
	min-width: 200px;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	pointer-events: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tnc-fct-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #FFF;
}

/* HTML content styling in tooltip */
.tnc-fct-tooltip p {
	margin: 0 0 8px 0;
}

.tnc-fct-tooltip p:last-child {
	margin-bottom: 0;
}

.tnc-fct-tooltip ul,
.tnc-fct-tooltip ol {
	margin: 8px 0;
	padding-left: 20px;
}

.tnc-fct-tooltip li {
	margin: 4px 0;
}

.tnc-fct-tooltip a {
	color: #0055D4;
	text-decoration: underline;
}

.tnc-fct-tooltip a:hover {
	text-decoration: none;
	color: #0F2D35;
}

.tnc-fct-tooltip strong,
.tnc-fct-tooltip b {
	font-weight: 600;
}

.tnc-fct-tooltip em,
.tnc-fct-tooltip i {
	font-style: italic;
}

.tnc-fct-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #fff;
}

.tnc-fct-info-icon:hover .tnc-fct-tooltip,
.tnc-fct-info-icon.tnc-fct-tooltip-active .tnc-fct-tooltip {
	opacity: 1;
	visibility: visible;
}

/* Responsive tooltip */
@media (max-width: 768px) {
	.tnc-fct-tooltip {
		max-width: 240px;
		min-width: 180px;
		font-size: 13px;
		padding: 8px 12px;
	}
}

.tnc-fct-feature-name {
    margin-left: 19px;
}


td.tnc-fct-button-cell:nth-child(2) {
    border-right: none !important;
}

/* Responsive Tab Style for 980px and below */
@media (max-width: 980px) {
	/* Wrapper takes full window width - no padding/margin */
	.tnc-fct-wrapper {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box;
		overflow: visible;
	}
	
	/* Show tab buttons */
	.tnc-fct-tabs {
		display: flex !important;
		flex-wrap: wrap;
		margin-bottom: 20px;
		width: 100%;
	}
	
	.tnc-fct-tab-button {
		flex: 1;
		min-width: 120px;
		padding: 12px 20px;
		background: #FFF;
		color: #0F2D35;
		border: 1px solid #D2DAE6 !important;
		border-bottom: none;
		font-family: "DM Sans";
		font-size: 16px;
		font-weight: 500;
		cursor: pointer;
		transition: all 0.3s ease;
		text-align: center;
		position: relative;
		border-right: none !important;
	}
	
	.tnc-fct-tab-button:hover {
		background: #f5f5f5;
	}
	
	.tnc-fct-tab-button.tnc-fct-tab-active {
		background: #0055D4;
		color: #FFF;
		z-index: 1;
	}

	button.tnc-fct-tab-button:first-child {
		border-top-left-radius: 10px;
		border-bottom-left-radius: 10px;
	}

	button.tnc-fct-tab-button:last-child  {
		border-top-right-radius: 10px;
		border-bottom-right-radius: 10px;
		border-right: 1px solid #D2DAE6 !important;
	}
	
	.tnc-fct-tab-button.tnc-fct-tab-active:hover {
		background: #0055D4;
	}
	
	/* Hide table header row completely at 980px below */
	.tnc-fct-table thead {
		display: none !important;
	}
	
	/* Hide ALL plan columns by default - strict rule */
	.tnc-fct-table th.tnc-fct-plan-header[data-plan-index],
	.tnc-fct-table td.tnc-fct-feature-value[data-plan-index],
	.tnc-fct-table td.tnc-fct-button-cell[data-plan-index] {
		display: none !important;
	}
	
	/* Keep first empty button cell visible */
	.tnc-fct-table td.tnc-fct-button-cell:first-child {
		display: table-cell !important;
	}
	
	/* Show ONLY active plan column - highest priority (but not header) */
	.tnc-fct-table td.tnc-fct-feature-value.tnc-fct-plan-active[data-plan-index],
	.tnc-fct-table td.tnc-fct-button-cell.tnc-fct-plan-active[data-plan-index] {
		display: table-cell !important;
	}
	
	
	
	/* Active plan feature value column - no width restrictions */
	.tnc-fct-wrapper .tnc-fct-table td.tnc-fct-feature-value.tnc-fct-plan-active {
		display: table-cell !important;
	}
	
	/* Button cells - no width restrictions */
	.tnc-fct-table td.tnc-fct-button-cell:first-child {
		display: table-cell !important;
	}
	
	.tnc-fct-table td.tnc-fct-button-cell.tnc-fct-plan-active {
		display: table-cell !important;
	}
	
	/* Remove width: auto that conflicts with fixed layout */
	
	/* Ensure no hidden columns take space */
	.tnc-fct-table td[data-plan-index]:not(.tnc-fct-plan-active) {
		width: 0 !important;
		min-width: 0 !important;
		max-width: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	
	/* Adjust table width for single column - full window width */
	.tnc-fct-wrapper .tnc-fct-table {
		width: 100% !important;
		max-width: 100% !important;
		table-layout: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		border-spacing: 0 !important;
	}
	
	/* Ensure table cells fill the entire width - no empty space */
	.tnc-fct-table tbody tr,
	.tnc-fct-table thead tr {
		width: 100%;
	}
	
	.tnc-fct-table tbody tr td,
	.tnc-fct-table thead tr th {
		box-sizing: border-box;
	}
	
	/* Ensure table rows use full width - no empty space */
	.tnc-fct-table tr.tnc-fct-feature-row {
		width: 100% !important;
	}
	
	/* Force table to use exactly 70% + 30% = 100% */
	.tnc-fct-table colgroup,
	.tnc-fct-table col {
		display: none;
	}
	
	/* Category header spans full width - both columns */
	.tnc-fct-table td.tnc-fct-category-header {
		display: table-cell !important;
		width: 100% !important;
		box-sizing: border-box;
	}
	
	/* Adjust button cell for active column */
	.tnc-fct-table td.tnc-fct-button-cell.tnc-fct-plan-active {
		display: table-cell !important;
		padding: 0px !important;
	}
	
	.tnc-fct-table td.tnc-fct-button-cell.tnc-fct-plan-active a.tnc-fct-button {
		border-radius: 0 0 6px 0 !important;
		width: 100%;
		display: block;
		margin: 0;
	}
	
	/* Hide all non-active plan columns - important override */
	.tnc-fct-table th.tnc-fct-plan-header[data-plan-index]:not(.tnc-fct-plan-active),
	.tnc-fct-table td.tnc-fct-feature-value[data-plan-index]:not(.tnc-fct-plan-active),
	.tnc-fct-table td.tnc-fct-button-cell[data-plan-index]:not(.tnc-fct-plan-active) {
		display: none !important;
	}
	
	/* Hide button row inside table at 980px below */
	.tnc-fct-table tr.tnc-fct-buttons-row {
		display: none !important;
	}
	
	/* External button container - outside table - ONLY VISIBLE AT 980px BELOW */
	.tnc-fct-external-button {
		width: 100%;
		margin-top: 20px;
		display: none !important;
		padding: 0;
		box-sizing: border-box;
	}
	
	.tnc-fct-external-button.tnc-fct-button-visible {
		display: block !important;
	}
	
	.tnc-fct-external-button .tnc-fct-button {
		width: 100%;
		display: block;
		text-align: center;
		padding: 12px 30px;
		background: #0055D4;
		color: #FFF;
		text-decoration: none;
		font-family: "DM Sans";
		font-size: 18px;
		font-weight: 500;
		line-height: 160%;
		letter-spacing: -0.36px;
		border-radius: 6px;
		transition: background 0.3s ease;
		box-sizing: border-box;
	}
	
	.tnc-fct-external-button .tnc-fct-button:hover {
		background: #005a87;
		color: #FFF;
		text-decoration: none;
	}
}