/* ------------------------------------------------------------------
   LGM Column Tab Section - front end
   Keeps Enfold's tab panels (.av-layout-tab) inside the content column
   and shows only the active one. Self-sufficient: does not rely on
   Enfold's own tab_section stylesheet being present.
------------------------------------------------------------------ */

.av-lgm-contained-tab-section {
	width: 100%;
	max-width: 100%;
	margin: 0 0 1.5em 0;
	overflow: hidden;
	position: relative;
}

/* ---- tab title bar ---- */
.av-lgm-contained-tab-section .av-tab-section-tab-title-container {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	text-align: left;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	margin-bottom: 1.25em;
	padding: 0;
}

.av-lgm-contained-tab-section.av-tab-below-content .av-tab-section-tab-title-container {
	border-bottom: none;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	margin-bottom: 0;
	margin-top: 1.25em;
}

.av-lgm-contained-tab-section .av-section-tab-title {
	display: inline-block;
	padding: 0.6em 1em;
	border-bottom: 2px solid transparent;
	color: inherit;
	text-decoration: none;
	line-height: 1.2;
	opacity: 0.65;
	cursor: pointer;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.av-lgm-contained-tab-section .av-section-tab-title:hover,
.av-lgm-contained-tab-section .av-section-tab-title:focus {
	opacity: 1;
}

.av-lgm-contained-tab-section .av-section-tab-title.av-active-tab-title {
	opacity: 1;
	border-bottom-color: currentColor;
	font-weight: 600;
}

.av-lgm-contained-tab-section .av-outer-tab-title,
.av-lgm-contained-tab-section .av-inner-tab-title {
	display: inline-block;
}

/* ---- panels ---- */
.av-lgm-contained-tab-section .av-tab-section-inner-container {
	display: block;
	width: 100% !important;
	left: 0 !important;
	margin: 0;
	position: static;
}

.av-lgm-contained-tab-section .av-layout-tab {
	width: 100% !important;
	display: none;
	border-top: none !important;
	padding: 0 !important;
	vertical-align: top;
}

.av-lgm-contained-tab-section .av-layout-tab.av-active-tab-content {
	display: block;
}

.av-lgm-contained-tab-section .av-layout-tab .container {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

.av-lgm-contained-tab-section .av-layout-tab-inner > :first-child {
	margin-top: 0;
}

.av-lgm-contained-tab-section .av-layout-tab-inner > :last-child {
	margin-bottom: 0;
}

/* Narrow columns: scroll the tab row rather than stacking oddly */
@media (max-width: 480px) {
	.av-lgm-contained-tab-section .av-tab-section-tab-title-container {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.av-lgm-contained-tab-section .av-section-tab-title {
		white-space: nowrap;
		flex: 0 0 auto;
	}
}
