/* Container */
.wp-buddy-tabs {
	margin: 2rem 0;
}

/* Tab navigation bar (frontend) */
.wp-buddy-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 1.5rem;
}

/* Tab button (frontend) — styled as outlined H2-like label */
.wp-buddy-tabs-nav-item {
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	font-size: 1.5em;
	font-weight: 600;
	line-height: 1.2;
	color: inherit;

	border: 2px solid currentColor;
	padding: 0.4em 0.8em;
	border-radius: 4px;

	transition: opacity 0.15s ease, background-color 0.15s ease;
	opacity: 0.5;
}

.wp-buddy-tabs-nav-item:hover,
.wp-buddy-tabs-nav-item:focus {
	opacity: 0.8;
	outline: none;
}

.wp-buddy-tabs-nav-item.is-active {
	opacity: 1;
	background-color: rgba( 0, 0, 0, 0.05 );
}

/* Tab panels — hidden by default on frontend, shown when active */
.wp-buddy-tab {
	display: none;
}

.wp-buddy-tab.is-active {
	display: block;
}

/* ==========================================================================
   Editor view: show all panels stacked, each with an H2-like outlined label
   that matches the frontend appearance.
   ========================================================================== */

.editor-styles-wrapper .wp-buddy-tab,
.block-editor-block-list__block .wp-buddy-tab {
	display: block;
	padding: 16px 0 24px;
}

.editor-styles-wrapper .wp-buddy-tab-label,
.block-editor-block-list__block .wp-buddy-tab-label {
	display: inline-block;
	font-family: inherit;
	font-size: 1.5em;
	font-weight: 600;
	line-height: 1.2;
	color: inherit;
	text-transform: none;
	letter-spacing: normal;

	border: 2px solid currentColor;
	padding: 0.4em 0.8em;
	border-radius: 4px;

	margin-bottom: 16px;
	opacity: 0.8;
}

.editor-styles-wrapper .wp-buddy-tabs,
.block-editor-block-list__block .wp-buddy-tabs {
	padding: 16px;
	border: 1px dashed rgba( 0, 0, 0, 0.12 );
	border-radius: 4px;
}