.twfe-tabs {
	text-align: start;
}

.twfe-tabs__heading {
	display: flex;
	overflow: hidden;
}

.twfe-tab-title,
.twfe-tabs__content > .e-con {
	border: 1px none #d5d8dc;
}

.twfe-tab-title {
	align-items: center;
	appearance: none;
	background: transparent;
	border: solid transparent;
	border-radius: 0;
	color: inherit;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-weight: 700;
	gap: 0.5em;
	justify-content: flex-start;
	line-height: 1;
	margin: 0;
	outline: var(--focus-outline, none);
	padding: 20px 25px;
	position: relative;
}

.twfe-tab-title.is-active {
	border-color: #d5d8dc;
}

.twfe-tab-title:focus-visible {
	box-shadow: inset 0 0 0 2px currentcolor;
	z-index: 1;
}

.twfe-tab-icon,
.twfe-tab-icon > span {
	display: inline-flex;
}

.twfe-tab-icon svg {
	fill: currentcolor;
	height: 1em;
	width: 1em;
}

.twfe-tab-icon__active {
	display: none !important;
}

.twfe-tab-title.is-active .twfe-tab-icon__default {
	display: none;
}

.twfe-tab-title.is-active .twfe-tab-icon__active {
	display: inline-flex !important;
}

.twfe-tabs__content > .e-con[hidden] {
	display: none !important;
}

.twfe-tabs-view-horizontal .twfe-tab-title.is-active {
	border-block-end-style: none;
}

.twfe-tabs-view-horizontal .twfe-tabs__content > .e-con {
	border-style: solid;
	border-block-start-style: none;
}

.twfe-tabs-view-vertical .twfe-tabs {
	display: flex;
}

.twfe-tabs-view-vertical .twfe-tabs__heading {
	flex-direction: column;
	flex-shrink: 0;
	width: 25%;
}

.twfe-tabs-view-vertical .twfe-tabs__content {
	flex-grow: 1;
	min-width: 0;
}

.twfe-tabs-view-vertical .twfe-tabs__content > .e-con {
	border-style: solid;
	border-inline-start-style: none;
}

.twfe-tabs-view-vertical .twfe-tab-title.is-active {
	border-inline-end-style: none;
}

.twfe-tabs-alignment-center .twfe-tabs__heading {
	justify-content: center;
}

.twfe-tabs-alignment-end .twfe-tabs__heading {
	justify-content: flex-end;
}

.twfe-tabs-alignment-stretch.twfe-tabs-view-horizontal .twfe-tab-title {
	flex: 1 1 0;
}

.twfe-tabs-alignment-stretch.twfe-tabs-view-vertical .twfe-tab-title {
	flex: 1 1 auto;
}

@media (max-width: 767px) {

	.twfe-tabs,
	.twfe-tabs-view-vertical .twfe-tabs {
		display: flex;
		flex-direction: column;
	}

	.twfe-tabs .twfe-tabs__heading,
	.twfe-tabs .twfe-tabs__content {
		display: contents;
	}

	.twfe-tabs .twfe-tab-title {
		border-style: solid;
		order: calc(var(--twfe-tab-index) * 2 - 1);
		padding: 12px 15px;
		width: 100%;
	}

	.twfe-tabs .twfe-tab-title.is-active {
		border-block-end-style: none;
		border-inline-end-style: solid;
	}

	.twfe-tabs .twfe-tabs__content > .e-con {
		border-block-start-style: none;
		border-inline-start-style: solid;
		order: calc(var(--twfe-tab-index) * 2);
	}
}
