/* ==========================================================================
   Dual Button
   ========================================================================== */
.cew-dual-button {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.cew-dual-button__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease;
	min-width: 0;
	flex-shrink: 1;
}

.cew-dual-button__btn span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cew-dual-button__divider {
	flex-shrink: 0;
	opacity: 0.6;
	font-size: 0.85em;
}

/* ==========================================================================
   Vertical Timeline
   ========================================================================== */
.cew-timeline {
	position: relative;
	padding: 20px 0;
	--cew-bullet-size: 32px;
}

.cew-timeline__line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(var(--cew-bullet-size) / 2);
	border-left: 2px solid #e5e7eb;
}

.cew-timeline--center .cew-timeline__line {
	left: 50%;
	transform: translateX(-50%);
}

.cew-timeline__item {
	position: relative;
	padding: 0 0 0 calc(var(--cew-bullet-size) + 24px);
}

.cew-timeline__bullet {
	position: absolute;
	left: 0;
	top: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-sizing: border-box;
}

.cew-timeline__content {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cew-timeline__content--img-start,
.cew-timeline__content--img-end {
	flex-direction: row;
	align-items: stretch;
}

.cew-timeline__content--img-end .cew-timeline__image-wrap {
	order: 2;
}

.cew-timeline__content--img-end .cew-timeline__text {
	order: 1;
}

.cew-timeline__image-wrap {
	flex-shrink: 0;
	min-width: 0;
}

.cew-timeline__image-wrap img {
	display: block;
	width: 100%;
	height: 100%;
}

.cew-timeline__content--img-top .cew-timeline__image-wrap img {
	height: auto;
}

.cew-timeline__text {
	flex: 1 1 auto;
	min-width: 0;
}

.cew-timeline__date,
.cew-timeline__title,
.cew-timeline__description {
	display: block;
}

@media (min-width: 768px) {
	.cew-timeline--center .cew-timeline__item {
		padding-left: 0;
		width: 50%;
		box-sizing: border-box;
	}
	.cew-timeline--center .cew-timeline__item--left {
		padding-right: calc(var(--cew-bullet-size) + 24px);
		text-align: right;
	}
	.cew-timeline--center .cew-timeline__item--right {
		margin-left: 50%;
		padding-left: calc(var(--cew-bullet-size) + 24px);
	}
	.cew-timeline--center .cew-timeline__item--left .cew-timeline__content--img-start,
	.cew-timeline--center .cew-timeline__item--left .cew-timeline__content--img-end {
		flex-direction: row-reverse;
	}
	.cew-timeline--center .cew-timeline__item--left .cew-timeline__bullet {
		left: auto;
		right: calc(var(--cew-bullet-size) / -2);
	}
	.cew-timeline--center .cew-timeline__item--right .cew-timeline__bullet {
		left: calc(var(--cew-bullet-size) / -2);
	}
}

@media (max-width: 767px) {
	.cew-timeline__content--img-start,
	.cew-timeline__content--img-end {
		flex-direction: column;
	}
	.cew-timeline__content--img-start .cew-timeline__image-wrap,
	.cew-timeline__content--img-end .cew-timeline__image-wrap {
		order: 0;
		width: 100% !important;
		max-width: 100% !important;
	}
	.cew-timeline__content--img-start .cew-timeline__text,
	.cew-timeline__content--img-end .cew-timeline__text {
		order: 1;
	}
}

/* ==========================================================================
   Woo Mini Cart
   ========================================================================== */
.cew-mini-cart {
	position: relative;
	display: inline-flex;
}

.cew-mini-cart__toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.cew-mini-cart__badge {
	position: absolute;
	top: -6px;
	right: -10px;
	font-size: 11px;
	line-height: 1;
	min-width: 16px;
	height: 16px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.cew-mini-cart__dropdown {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 999;
	min-width: 280px;
	max-width: 90vw;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	padding: 16px;
	margin-top: 12px;
}

.cew-mini-cart.is-open .cew-mini-cart__dropdown {
	display: block;
}

/* ==========================================================================
   Woo User Profile
   ========================================================================== */
.cew-user-profile {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	min-width: 0;
}

.cew-user-profile__avatar img {
	border-radius: 50%;
	display: block;
}

.cew-user-profile__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ==========================================================================
   Header
   ========================================================================== */
.cew-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 24px;
	width: 100%;
}

.cew-header__logo {
	flex: 0 0 auto;
	min-width: 0;
}

.cew-header__logo img {
	max-height: 40px;
	width: auto;
	display: block;
}

.cew-header__nav {
	flex: 1 1 auto;
	min-width: 0;
}

.cew-header__menu {
	display: flex;
	align-items: center;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.cew-header__menu a {
	text-decoration: none;
	white-space: nowrap;
}

.cew-header__actions {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 20px;
}

.cew-header__button {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 6px;
	background: #2563eb;
	color: #fff;
	flex-shrink: 0;
}

.cew-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}

.cew-header__toggle-bar {
	display: block;
	width: 100%;
	height: 2px;
	background: currentColor;
}

.cew-header.is-mobile .cew-header__nav {
	display: none;
	flex-basis: 100%;
	order: 10;
}

.cew-header.is-mobile.is-nav-open .cew-header__nav {
	display: block;
}

.cew-header.is-mobile .cew-header__menu {
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 0;
}

.cew-header.is-mobile .cew-header__toggle {
	display: flex;
}

.cew-header.is-mobile {
	flex-wrap: wrap;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.cew-compare-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.cew-compare-table {
	display: grid;
	grid-template-columns: minmax(160px, 2fr) repeat(var(--cew-compare-columns, 2), minmax(90px, 1fr));
	width: 100%;
	border: 1px solid #e5e7eb;
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	.cew-compare-table {
		grid-template-columns: minmax(120px, 1.6fr) repeat(var(--cew-compare-columns, 2), minmax(64px, 1fr));
	}
}

@media (max-width: 480px) {
	.cew-compare-table {
		grid-template-columns: minmax(90px, 1.4fr) repeat(var(--cew-compare-columns, 2), minmax(44px, 1fr));
	}
}

.cew-compare-table__cell--feature-header {
	align-items: flex-start !important;
	text-align: left;
}

.cew-compare-table__row {
	display: contents;
}

.cew-compare-table__cell {
	border-top: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
}

.cew-compare-table__row--header .cew-compare-table__cell {
	border-top: none;
	align-items: flex-start;
	flex-direction: column;
}

.cew-compare-table__cell--column-title {
	text-align: center;
	align-items: center !important;
	position: relative;
}

.cew-compare-table__title {
	font-weight: 700;
}

.cew-compare-table__price {
	font-size: 0.9em;
	margin-top: 4px;
}

.cew-compare-table__badge {
	position: absolute;
	top: -10px;
	right: 12px;
	font-size: 11px;
	line-height: 1;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.cew-compare-table__cell--label {
	gap: 10px;
}

.cew-compare-table__label-icon {
	flex-shrink: 0;
	display: inline-flex;
}

.cew-compare-table__cell--value {
	justify-content: center;
	text-align: center;
}

.cew-compare-table__cell--highlight {
	position: relative;
}

/* ==========================================================================
   Video Playlist
   ========================================================================== */
.cew-video-playlist {
	display: flex;
	flex-direction: row;
	gap: 24px;
	align-items: flex-start;
	width: 100%;
}

.cew-video-playlist__main {
	flex: 1 1 60%;
	min-width: 0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cew-video-playlist__player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.cew-video-playlist__player-frame,
.cew-video-playlist__player-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.cew-video-playlist__player-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	background: rgba(255, 255, 255, 0.92);
	color: #92400e;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
}

.cew-video-playlist__meta {
	padding: 20px;
}

.cew-video-playlist__meta-guest {
	font-size: 0.85em;
	opacity: 0.7;
	margin-bottom: 4px;
}

.cew-video-playlist__meta-title {
	margin: 0 0 8px;
}

.cew-video-playlist__meta-teaser {
	margin: 0;
	opacity: 0.8;
}

.cew-video-playlist__list {
	flex: 1 1 40%;
	min-width: 0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
}

.cew-video-playlist__list-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid #e5e7eb;
}

.cew-video-playlist__title {
	font-weight: 700;
}

.cew-video-playlist__count {
	font-size: 0.85em;
}

.cew-video-playlist__items {
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	max-height: 480px;
}

.cew-video-playlist__item {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 14px 20px;
	background: none;
	border: none;
	border-bottom: 1px solid #f3f4f6;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
	transition: background-color 0.15s ease;
}

.cew-video-playlist__item:last-child {
	border-bottom: none;
}

.cew-video-playlist__item-thumb {
	position: relative;
	flex: 0 0 84px;
	width: 84px;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cew-video-playlist__item-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cew-video-playlist__play-icon,
.cew-video-playlist__watched-icon {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
}

.cew-video-playlist__item-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cew-video-playlist__item-badge {
	align-self: flex-start;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 999px;
	background: #f3e8d8;
	color: #92400e;
}

.cew-video-playlist__item-title {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.cew-video-playlist__item-guest {
	font-size: 0.8em;
	opacity: 0.65;
}

.cew-video-playlist__duration {
	flex: 0 0 auto;
	font-size: 0.8em;
	white-space: nowrap;
}

/* ---- Mobile/tablet: stack the two sections in one column instead of
   side by side. Both stay visible at all times — no tab switcher, no
   click required to see the playlist. ---- */
@media (max-width: 768px) {
	.cew-video-playlist {
		flex-direction: column !important;
	}

	.cew-video-playlist__main,
	.cew-video-playlist__list {
		width: 100% !important;
		flex-basis: 100% !important;
	}

	.cew-video-playlist__items {
		max-height: none;
	}
}

/* ---- Episode Grid ------------------------------------------------- */
.cew-episode-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.cew-episode-grid__item {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
}
.cew-episode-grid__thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.cew-episode-grid__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cew-episode-grid__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.88px;
	text-transform: uppercase;
}
.cew-episode-grid__body {
	padding: 16px;
}
.cew-episode-grid__title {
	margin: 0 0 4px;
	font-size: 18px;
}
.cew-episode-grid__guest {
	font-size: 14px;
	margin-bottom: 4px;
}
.cew-episode-grid__teaser {
	font-size: 14px;
	margin: 4px 0 0;
}
.cew-episode-grid__date {
	display: block;
	font-size: 12px;
	margin-top: 8px;
	opacity: 0.7;
}

/* ---- Episode Player ------------------------------------------------ */
.cew-episode-player {
	position: relative;
	aspect-ratio: 16 / 9; /* fallback if the Style tab control hasn't set an inline value yet */
	overflow: hidden;
}
.cew-episode-player .em-video-embed,
.cew-episode-player .em-video-embed iframe,
.cew-episode-player video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.cew-episode-player video {
	object-fit: cover; /* self-hosted video fills the chosen box rather than letterboxing */
}

/* ---- Guest Grid ------------------------------------------------------ */
.cew-guest-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.cew-guest-grid__item {
	background: #ffffff;
	border-radius: 12px;
	padding: 24px 16px;
	text-align: center;
}
.cew-guest-grid__photo-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}
.cew-guest-grid__photo {
	width: 140px;
	height: 140px;
	border-radius: 9999px;
	overflow: hidden;
}
.cew-guest-grid__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cew-guest-grid__photo--placeholder {
	background: #E8BFA9;
}
.cew-guest-grid__name {
	margin: 0 0 4px;
	font-size: 18px;
}
.cew-guest-grid__role {
	font-size: 14px;
}
.cew-guest-grid__bio {
	font-size: 14px;
	margin: 8px 0 0;
}
.cew-guest-grid__empty {
	text-align: center;
	opacity: 0.7;
}
