

.nav {
	display: flex;
	flex-wrap: wrap;
	padding-left: 0;
	margin-bottom: 0;
	list-style: none;
}

.nav-link {
	display: block;
	padding: $sp-2 $sp-4;
	font-size: $font-size-base;
	font-weight: $font-weight-base;
	color: var(--text-color);
	text-decoration: none;

	@include hover() {
		color: var(--co-alpha);
		text-decoration: none;
	}

	&.disabled {
		color: var(--co-gray-60);
		pointer-events: none;
		cursor: default;
	}
}

.nav-tabs {
	border-bottom: 1px solid var(--co-gray-60);

	.nav-link {
		margin-bottom: -1px;
		color: var(--co-gray-40);
		background: none;
		border-bottom: 1px solid transparent;

		@if $useBorderRadius {
			border-top-left-radius: $border-radius-1;
			border-top-right-radius: $border-radius-1;
		}

		@include hover() {
			color: var(--co-alpha);
			isolation: isolate;
		}

		&.disabled {
			color: var(--co-gray-60);
			background-color: transparent;
			border-color: transparent;
		}
	}

	.nav-link.active,
	.nav-item.show .nav-link {
		color: var(--text-color);
		border-width: 3px;
		margin-bottom: -2px;
		border-color: var(--co-gray-60) var(--co-gray-60) var(--co-alpha);
	}

	// .dropdown-menu {
	// 	// Make dropdown border overlap tab border
	// 	margin-top: -1px;
	// 	// Remove the top rounded corners here since there is a hard edge above the menu
	// 	@include border-top-radius(0);
	// }
}

.nav-tabs-box {
	.nav-tabs {
		border: none;
	}

	.tab-content {
		padding: $sp-5 $sp-5 0;
		border: 1px solid var(--co-gray-60);
		border-radius: 0 0 $border-radius-3 $border-radius-3;
	}
}

.nav-tab-cookiec {
	flex-wrap: nowrap;

	.nav-item {
		min-width: fit-content;
		flex: 1;
	}

	.nav-link {
		display: block;
		width: 100%;
		text-align: center;
		padding: $sp-2 $sp-4;
		color: $text-color;
		border-bottom: 3px solid var(--co-gray-70);

		&.active,
		&:hover {
			color: var(--co-alpha);
		}
		&.active {
			border-bottom-color: var(--co-alpha);
		}

		@include mediaQ(smMax) {
			font-size: 14px;
		}
	}
}

.nav-pills {
	.nav-link {
		background: none;
		border: 0;
		@if $useBorderRadius { border-radius: $border-radius-1;}
	}

	.nav-link.active,
	.show > .nav-link {
		color: var(--co-theme-1);
		background-color: var(--co-alpha);
		// @include gradient-bg($nav-pills-link-active-bg);
	}
}


.nav-fill {
	> .nav-link,
	.nav-item {
		flex: 1 1 auto;
		text-align: center;
	}
}

.nav-justified {
	> .nav-link,
	.nav-item {
		flex-basis: 0;
		flex-grow: 1;
		text-align: center;
	}
}

.nav-fill,
.nav-justified {
	.nav-item .nav-link {
		width: 100%;
	}
}


.tab-content {
	> .tab-pane {
		display: none;
	}
	> .active {
		display: block;
	}
}
