/* EB Vertical Tabs — front-end styles */

.eb-tabs {
	--eb-tabs-w: 240px;
	--eb-pointer-size: 25px;
	display: flex;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
}

/* ---------- Tab column ---------- */
.eb-tabs__nav {
	flex: 0 0 var(--eb-tabs-w);
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.eb-tabs__tab {
	position: relative;
	display: block;
	width: 100%;
	text-align: left;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	background: #232323;
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	padding: 14px 18px;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease;

	/* Long labels wrap instead of overflowing the tab */
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
	hyphens: auto;
}

/* Beat any theme rule that forces buttons onto one line */
.eb-tabs .eb-tabs__tab {
	white-space: normal;
}

.eb-tabs__tab:last-child {
	border-bottom: 0;
}

/* Arrow pointing from the active tab toward the content */
.eb-tabs--pointer .eb-tabs__tab.is-active::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 100%;
	transform: translateY(-50%);
	border: var(--eb-pointer-size, 25px) solid transparent;
	border-left-color: #f26522;
	border-right: 0;
	pointer-events: none;
}

/* ---------- Mobile dropdown (built by JS, hidden unless enabled) ---------- */
.eb-tabs__select {
	display: none;
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background-color: #232323;
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	padding: 14px 44px 14px 18px;
	border-radius: 0;
	cursor: pointer;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 18px;
}

/* ---------- Content ---------- */
.eb-tabs__content {
	flex: 1;
	min-width: 0;
}

.eb-tabs__panel {
	display: none;
}

.eb-tabs__panel.is-active {
	display: block;
}

.eb-tabs-fade-yes .eb-tabs__panel.is-active {
	animation: eb-tabs-fade 0.35s ease both;
}

@keyframes eb-tabs-fade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Editor: keep every tab's container visible & droppable ---------- */
.elementor-editor-active .eb-tabs__content {
	min-height: 90px;
}

/* If this widget instance has no child containers, say so plainly instead
   of showing a mysterious blank area. Containers are only created when the
   widget is FIRST dropped on the page — an older instance won't have them. */
.elementor-editor-active .eb-tabs__content:empty::before {
	content: "This tabs widget has no content containers. Delete it and drag in a fresh \201CVertical Tabs\201D widget \2014 containers are created on first insert. (Or set a tab\2019s Content source to \201CSaved template\201D.)";
	display: block;
	padding: 18px 20px;
	border: 2px dashed rgba(0, 0, 0, 0.25);
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
	background: rgba(0, 0, 0, 0.03);
}

/* In the editor, never hide a tab's container — hidden elements cannot
   receive drops. All tab contents are visible while editing; only the
   active one shows on the live site. */
.elementor-editor-active .eb-tabs__panel,
.elementor-editor-active .eb-tabs__content > * {
	display: block !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.eb-tabs {
		flex-direction: column;
	}

	.eb-tabs__nav {
		flex: none;
		width: 100%;
	}

	/* the pointer arrow points down on stacked layouts */
	.eb-tabs--pointer .eb-tabs__tab.is-active::after {
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		border: var(--eb-pointer-size, 25px) solid transparent;
		border-top-color: #f26522;
		border-bottom: 0;
		border-left-color: transparent;
	}

	/* Dropdown mode: swap the tab column for a native select */
	.eb-tabs-mobile-dropdown .eb-tabs__nav {
		display: none;
	}

	.eb-tabs-mobile-dropdown .eb-tabs__select {
		display: block;
	}

	.eb-tabs-mobile-dropdown .eb-tabs__tab.is-active::after {
		display: none;
	}

	/* Optional horizontal scrolling tab strip */
	.eb-tabs-mobile-scroll .eb-tabs__nav {
		flex-direction: row;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
	}

	.eb-tabs-mobile-scroll .eb-tabs__tab {
		flex: 0 0 auto;
		width: auto;
		white-space: nowrap;
		border-bottom: 0;
	}

	.eb-tabs-mobile-scroll .eb-tabs--pointer .eb-tabs__tab.is-active::after {
		display: none;
	}
}
