/* Alignment wrapper. Centred by default; override per shortcode with align="left". */
.oe-bbb-button-wrap {
	margin: 24px 0;
}

.oe-bbb-button-wrap--center {
	text-align: center;
}

.oe-bbb-button-wrap--left {
	text-align: left;
}

.oe-bbb-button-wrap--right {
	text-align: right;
}

.oe-bbb-button-wrap--full .oe-bbb-button,
.oe-bbb-button-wrap--full .oe-bbb-button--theme {
	display: block;
	width: 100%;
	text-align: center;
}

/*
 * Fallback button, used when LearnDash is not active. With LearnDash present the
 * anchor carries `ld-button` instead and inherits the theme's own styling, so the
 * join button matches the "Start Course" button without duplicating its colours.
 */
.oe-bbb-button {
	display: inline-block;
	padding: 15px 44px;
	border: 0;
	border-radius: 8px;
	background: var( --oe-bbb-accent, #d6382f );
	color: #fff;
	font-weight: 600;
	font-size: 17px;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease;
}

.oe-bbb-button:hover,
.oe-bbb-button:focus {
	background: var( --oe-bbb-accent-hover, #bd2c24 );
	color: #fff;
	text-decoration: none;
}

.oe-bbb-button:focus-visible {
	outline: 2px solid var( --oe-bbb-accent, #d6382f );
	outline-offset: 3px;
}

/* Compact variant inside the meeting list. */
.oe-bbb-list .oe-bbb-button {
	padding: 8px 20px;
	font-size: 15px;
	border-radius: 6px;
}

.oe-bbb-notice {
	padding: 10px 14px;
	border-left: 3px solid #d0d5dd;
	background: #f6f7f9;
	color: #444;
}

.oe-bbb-notice--admin {
	border-left-color: #d97706;
	background: #fffbeb;
	color: #7c2d12;
	font-size: 14px;
}

.oe-bbb-auto {
	margin: 24px 0;
}

.oe-bbb-auto .oe-bbb-button-wrap {
	margin: 0;
}

.oe-bbb-embed {
	position: relative;
	width: 100%;
	padding-top: 60%;
}

.oe-bbb-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ── Recordings ─────────────────────────────────────────────── */

.oe-bbb-recordings {
	margin: 32px 0;
}

.oe-bbb-recordings__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.oe-bbb-recordings__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 8px;
	border-radius: 12px;
	background: #eef0f3;
	color: #4b5563;
	font-size: 13px;
	font-weight: 600;
}

.oe-bbb-recordings__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #e6e8eb;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.oe-bbb-rec {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-bottom: 1px solid #eef0f3;
}

.oe-bbb-rec:last-child {
	border-bottom: 0;
}

.oe-bbb-rec:hover {
	background: #fafbfc;
}

.oe-bbb-rec__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var( --oe-bbb-accent-soft, rgba( 214, 56, 47, .1 ) );
	color: var( --oe-bbb-accent, #d6382f );
}

.oe-bbb-rec__meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1 1 auto;
	min-width: 0;
}

.oe-bbb-rec__name {
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.oe-bbb-rec__flag {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 10px;
	background: #fef3c7;
	color: #92400e;
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
	vertical-align: middle;
}

.oe-bbb-rec__sub {
	color: #6b7280;
	font-size: 14px;
	line-height: 1.4;
}

.oe-bbb-rec__dot {
	margin: 0 6px;
}

.oe-bbb-rec__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

/*
 * The play button carries the theme's own button class as well, so it matches the
 * course button's colour. These rules only shrink it to list size.
 */
.oe-bbb-recordings .oe-bbb-rec__play {
	padding: 8px 22px;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.3;
	white-space: nowrap;
}

.oe-bbb-rec__alt {
	color: #4b5563;
	font-size: 14px;
	text-decoration: underline;
	white-space: nowrap;
}

.oe-bbb-rec__alt:hover,
.oe-bbb-rec__alt:focus {
	color: var( --oe-bbb-accent, #d6382f );
}

@media (max-width: 600px) {
	.oe-bbb-rec {
		flex-wrap: wrap;
	}

	.oe-bbb-rec__meta {
		flex: 1 1 calc( 100% - 54px );
	}

	.oe-bbb-rec__actions {
		flex: 1 1 100%;
		padding-left: 54px;
	}

	.oe-bbb-recordings .oe-bbb-rec__play {
		flex: 1 1 auto;
		text-align: center;
	}
}

.oe-bbb-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.oe-bbb-list__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid #e6e8eb;
}

.oe-bbb-list__name {
	font-weight: 600;
	flex: 1 1 auto;
}

.oe-bbb-list__time {
	color: #646970;
	font-size: 14px;
}

/* ──────────────────────────────────────────────────────────────
   Access states: waiting for a start date, or past the end of it
   ────────────────────────────────────────────────────────────── */

.oe-bbb-countdown {
	margin: 0 auto;
	padding: 20px 24px;
	max-width: 420px;
	text-align: center;
	border: 1px solid #c7d2fe;
	border-radius: 12px;
	background: #eef2ff;
	color: #3730a3;
}

.oe-bbb-countdown__lead {
	margin: 0;
	font-size: 13px;
	letter-spacing: .02em;
	text-transform: uppercase;
	opacity: .85;
}

.oe-bbb-countdown__date {
	margin: 4px 0 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.oe-bbb-countdown__clock {
	margin: 10px 0 0;
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.oe-bbb-countdown__clock:empty {
	display: none;
}

.oe-bbb-countdown__note {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.5;
	opacity: .85;
}

.oe-bbb-notice--ended {
	padding: 14px 18px;
	border: 1px solid #f0c36d;
	border-radius: 10px;
	background: #fdf6e3;
	color: #7a5b00;
}

.oe-bbb-recordings__until {
	margin: -4px 0 14px;
	font-size: 13px;
	color: #6b7280;
}
