.bwot-gif-viewer {
	max-width: 100%;
	margin: 1.5em 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.bwot-gif-viewer *,
.bwot-gif-viewer *::before,
.bwot-gif-viewer *::after {
	box-sizing: inherit;
}

.bwot-gif-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.bwot-gif-tab {
	background: var( --bwot-tab-bg, #f2f4f7 );
	border: 1px solid #e1e4e8;
	border-radius: 999px;
	padding: var( --bwot-tab-padding, 8px 18px );
	font-size: var( --bwot-tab-font-size, 14px );
	font-weight: 500;
	line-height: 1.4;
	color: var( --bwot-tab-text, #33414f );
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
	box-shadow: 0 1px 2px rgba( 16, 24, 40, 0.06 );
}

.bwot-gif-tab:hover {
	filter: brightness( 0.96 );
	transform: translateY( -1px );
}

.bwot-gif-tab:focus-visible {
	outline: 2px solid var( --bwot-tab-active-bg, #2271b1 );
	outline-offset: 2px;
}

.bwot-gif-tab.is-active {
	background: var( --bwot-tab-active-bg, #2271b1 );
	border-color: var( --bwot-tab-active-bg, #2271b1 );
	color: var( --bwot-tab-active-text, #ffffff );
	box-shadow: 0 2px 6px rgba( 34, 113, 177, 0.35 );
}

.bwot-gif-stage {
	display: flex;
	justify-content: center;
	align-items: center;
	background: #f9fafb;
	border-radius: 12px;
	padding: 12px;
	box-shadow: 0 1px 3px rgba( 16, 24, 40, 0.08 );
	min-height: 120px;
}

.bwot-gif-image {
	max-width: 100%;
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

@media ( max-width: 600px ) {
	.bwot-gif-tabs {
		flex-direction: column;
	}

	.bwot-gif-tab {
		width: 100%;
		text-align: center;
	}
}
