/* =============================================
   Pilzbox Week Tabs Widget
   ============================================= */

.zp-wt-widget {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
	width: 100%;
}

/* ---- Left panel ---- */
.zp-wt-left {
	flex: 0 1 580px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.zp-wt-header {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.zp-wt-headline {
	font-size: 52px;
	font-weight: 900;
	line-height: 1.2;
	color: #0d0e34;
	margin: 0;
}

.zp-wt-subtext {
	font-size: 19px;
	line-height: 1.5;
	color: #0d0e34;
	margin: 0;
}

/* ---- Tab buttons ---- */
.zp-wt-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.zp-wt-tab {
	height: 56px;
	padding: 17px 24px;
	border-radius: 9999px;
	border: 2px solid #ffffff;
	background: #ffffff;
	color: #0d0e34;
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.zp-wt-tab--active {
	background: #0d0e34;
	color: #ffd200;
	border-color: #ffd200;
}

.zp-wt-tab:hover:not(.zp-wt-tab--active) {
	background: #f0f0f0;
}

.zp-wt-tab:focus-visible {
	outline: 2px solid #ffd200;
	outline-offset: 3px;
}

/* ---- Progress bar ---- */
.zp-wt-progress {
	display: flex;
	align-items: center;
	gap: 12px;
}

.zp-wt-progress-label {
	font-size: 17px;
	font-weight: 800;
	line-height: 1.5;
	color: #0d0e34;
	white-space: nowrap;
}

.zp-wt-progress-track {
	flex: 1;
	height: 14px;
	background: #ffffff;
	border-radius: 999px;
	overflow: hidden;
}

.zp-wt-progress-fill {
	height: 100%;
	background: #ff7a1a;
	border-radius: 999px;
	transition: width 0.35s ease;
}

/* ---- Slider wrapper ---- */
.zp-wt-slider-wrapper {
	flex: 0 1 622px;
	position: relative;
}

/* ---- Cards ---- */
.zp-wt-cards {
	width: 100%;
}

.zp-wt-card {
	display: none;
	flex-direction: column;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	padding: 20px;
}

.zp-wt-card--active {
	display: flex;
}

/* ---- Card image ---- */
.zp-wt-card-image-outer {
	position: relative;
	/* escape the 20px card padding to make image full-bleed */
	margin: -20px -20px 0 -20px;
}

.zp-wt-card-image-wrap {
	width: 100%;
	height: 424px;
	overflow: hidden;
}

.zp-wt-card-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---- Badge ---- */
.zp-wt-badge {
	position: absolute;
	top: 10px;
	left: 11px;
	background: #2fbf71;
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 700;
	color: #0d0e34;
	line-height: 1.03;
	white-space: nowrap;
}

/* ---- Card body ---- */
.zp-wt-card-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 18px;
}

.zp-wt-card-title {
	font-size: 32px;
	font-weight: 900;
	line-height: 1.3;
	color: #0d0e34;
	margin: 0;
}

.zp-wt-divider {
	border: none;
	border-top: 1px solid rgba(13, 14, 52, 0.12);
	margin: 0;
}

.zp-wt-card-text {
	font-size: 18px;
	line-height: 1.5;
	color: #0d0e34;
	margin: 0;
}

/* ---- Arrow buttons — hidden on desktop ---- */
.zp-wt-btn {
	display: none;
}

/* =============================================
   Tablet
   ============================================= */
@media (max-width: 1024px) {
	.zp-wt-widget {
		flex-direction: column;
		gap: 32px;
		align-items: flex-start;
	}

	.zp-wt-left,
	.zp-wt-slider-wrapper {
		flex: none;
		width: 100%;
	}
}

/* =============================================
   Mobile — slider mode
   ============================================= */
@media (max-width: 767px) {
	.zp-wt-left {
		display: none;
	}

	.zp-wt-slider-wrapper {
		width: 100%;
	}

	.zp-wt-cards {
		display: flex;
		overflow-x: scroll;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 16px;
		scroll-padding-left: 16px;
		padding-bottom: 4px;
	}

	.zp-wt-cards::-webkit-scrollbar {
		display: none;
	}

	/* All cards visible in slider */
	.zp-wt-card {
		display: flex;
		flex-shrink: 0;
		width: calc(100% - 32px);
		max-width: 420px;
		scroll-snap-align: start;
	}

	/* Keep the card aligned 16px from the viewport edge at every snap point. */
	.zp-wt-card:first-child {
		margin-left: 16px;
	}

	.zp-wt-cards.zp-wt-cards--spacer-ready::after {
		content: '';
		flex: 0 0 var(--zp-wt-end-spacer, 0px);
	}

	/* Mobile image wrapper: gradient bg + 16px padding */
	.zp-wt-card-image-wrap {
		height: auto !important;
		background: linear-gradient(180deg, #4a36b1 0%, #352677 100%);
		padding: 16px;
	}

	.zp-wt-card-image-wrap img {
		height: 220px;
		width: 100%;
		object-fit: cover;
		display: block;
		border-radius: 8px;
	}

	/* Arrow buttons */
	.zp-wt-btn {
		display: flex;
		position: absolute;
		/* centered on the image area: 220px image + 16px padding top = ~126px midpoint */
		top: 126px;
		width: 46px;
		height: 46px;
		border-radius: 50%;
		border: none;
		background: #ff7a1a;
		cursor: pointer;
		align-items: center;
		justify-content: center;
		z-index: 10;
	}

	.zp-wt-btn--next {
		right: 10px;
	}

	.zp-wt-btn--prev {
		left: 10px;
		opacity: 0;
		pointer-events: none;
	}

	.zp-wt-btn--prev.zp-wt-btn--visible {
		opacity: 1;
		pointer-events: auto;
	}

	.zp-wt-btn--next.zp-wt-btn--hidden {
		opacity: 0;
		pointer-events: none;
	}
}
