.taza-tabs-wrapper {
	max-width: 100%;
	font-family: inherit;
	box-sizing: border-box;
}

.taza-tabs-wrapper * {
	box-sizing: border-box;
}

/* Force full width, overriding narrow theme/column constraints as much as CSS allows. */
.taza-tabs-wrapper.taza-tabs-full-width {
	width: 100% !important;
	max-width: 100% !important;
	flex: 1 1 100% !important;
}

.taza-tabs-wrapper.taza-tabs-full-width .taza-tabs-panels,
.taza-tabs-wrapper.taza-tabs-full-width .taza-tabs-panel,
.taza-tabs-wrapper.taza-tabs-full-width .taza-tabs-panel-content {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
}

/*
 * Full-bleed breakout: escapes a narrow parent column (e.g. a Divi or
 * Elementor module set to 50% width) and stretches to the full viewport.
 * Uses the classic "negative margin to viewport edge" technique.
 */
.taza-tabs-wrapper.taza-tabs-full-bleed {
	position: relative !important;
	left: 50% !important;
	right: 50% !important;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	width: 100vw !important;
	max-width: 100vw !important;
	box-sizing: border-box !important;
}

.taza-tabs-wrapper.taza-tabs-full-bleed .taza-tabs-panels {
	padding-left: 5vw;
	padding-right: 5vw;
}

.taza-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 4px;
	background: #f6f7f8;
	border-radius: 10px 10px 0 0;
	gap: 4px;
}

.taza-tabs-nav-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	cursor: pointer;
	border-radius: 8px;
	color: #555d66;
	font-weight: 600;
	font-size: 15px;
	background: transparent;
	transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.taza-tabs-nav-item:hover {
	color: #2271b1;
	background: rgba( 34, 113, 177, 0.08 );
}

.taza-tabs-nav-item.is-active {
	color: #fff;
	background: #2271b1;
	box-shadow: 0 2px 8px rgba( 34, 113, 177, 0.35 );
}

.taza-tabs-nav-item .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.taza-tabs-panels {
	padding: 24px;
	background: #fff;
	border: 1px solid #ececec;
	border-top: none;
	border-radius: 0 0 12px 12px;
}

.taza-tabs-panel {
	display: none;
}

.taza-tabs-panel.is-active {
	display: block;
	animation: taza-fade-in 0.25s ease;
}

@keyframes taza-fade-in {
	from {
		opacity: 0;
		transform: translateY( 6px );
	}
	to {
		opacity: 1;
		transform: translateY( 0 );
	}
}

.taza-tabs-panel-content {
	line-height: 1.7;
	color: #3c434a;
}

.taza-tabs-panel-content p:last-child {
	margin-bottom: 0;
}

.taza-tabs-gallery {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 150px, 1fr ) );
	gap: 12px;
	margin-bottom: 20px;
}

.taza-tabs-gallery-item {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	line-height: 0;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.12 );
	position: relative;
}

.taza-tabs-gallery-item img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	transition: transform 0.25s ease;
	display: block;
}

.taza-tabs-gallery-item:hover img {
	transform: scale( 1.08 );
}

/* Lightbox */
.taza-tabs-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.9 );
	z-index: 100000;
	align-items: center;
	justify-content: center;
}

.taza-tabs-lightbox.is-open {
	display: flex;
}

.taza-tabs-lightbox-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 92vw;
	max-height: 90vh;
}

.taza-tabs-lightbox img {
	max-width: 88vw;
	max-height: 85vh;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.5 );
}

.taza-tabs-lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: #fff;
	font-size: 36px;
	cursor: pointer;
	line-height: 1;
	z-index: 2;
}

.taza-tabs-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	background: rgba( 255, 255, 255, 0.15 );
	color: #fff;
	border: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 22px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease;
}

.taza-tabs-lightbox-nav:hover {
	background: rgba( 255, 255, 255, 0.3 );
}

.taza-tabs-lightbox-prev {
	left: -64px;
}

.taza-tabs-lightbox-next {
	right: -64px;
}

.taza-tabs-lightbox-counter {
	position: absolute;
	bottom: -34px;
	left: 50%;
	transform: translateX( -50% );
	color: #fff;
	font-size: 13px;
	opacity: 0.8;
}

@media ( max-width: 782px ) {
	.taza-tabs-lightbox-prev {
		left: 8px;
	}

	.taza-tabs-lightbox-next {
		right: 8px;
	}
}

@media ( max-width: 600px ) {
	.taza-tabs-nav {
		flex-direction: column;
		border-radius: 10px;
	}

	.taza-tabs-nav-item {
		border-radius: 6px;
	}

	.taza-tabs-panels {
		border-radius: 10px;
		padding: 16px;
	}
}
