.vmseo-tabs {
	margin: 0 0 1.5em;
}

.vmseo-tabs__header {
	text-align: center;
	margin: 0 0 1.25em;
}

.vmseo-tabs__title {
	margin: 0 0 0.4em;
	line-height: 1.25;
}

.vmseo-tabs__subtitle {
	margin: 0 auto;
	max-width: 62ch;
	line-height: 1.5;
}

.vmseo-tabs__header:empty {
	display: none;
}

.vmseo-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	justify-content: center;
	margin: 0 0 1.5em;
	padding: 0;
}

.vmseo-tabs__tab {
	font-family: inherit;
	font-size: var(--vmseo-tab-size, inherit);
	color: var(--vmseo-tab-color, inherit);
	background: var(--vmseo-tab-bg, transparent);
	border: 0;
	border-radius: 999px;
	padding: 0.55em 1.4em;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.vmseo-tabs__tab[aria-selected="true"] {
	color: var(--vmseo-tab-active-color, #ffffff);
	background: var(--vmseo-tab-active-bg, #1e73be);
}

.vmseo-tabs__tab:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.vmseo-tabs__panel[hidden] {
	display: none;
}

.vmseo-tabs__panel:focus {
	outline: none;
}

@media (prefers-reduced-motion: no-preference) {
	.vmseo-tabs__panel:not([hidden]) {
		animation: vmseo-tab-fade 0.2s ease;
	}
}

@keyframes vmseo-tab-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Editor: show tabs stacked so each panel is directly editable. */
.vmseo-tabs--editor .vmseo-tab--editor {
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	padding: 12px;
	margin: 10px 0;
}

.vmseo-tabs__editor-note {
	font-size: 12px;
	color: #6b7280;
	text-align: center;
	margin: 0 0 8px;
}

.vmseo-tab__labelrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.vmseo-tab__labelbadge {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	flex: 0 0 auto;
}

.vmseo-tab__labeledit {
	font-weight: 600;
	border-bottom: 1px solid #dcdcde;
	flex: 1 1 auto;
	min-width: 120px;
}
