/* Player shell + lesson box */
.foxyscorm-player-body {
	margin: 0;
	font-family: system-ui, sans-serif;
	background: #1a1a1a;
	color: #eee;
	height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.foxyscorm-player-bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.5rem 1rem;
	background: #07111C;
	border-bottom: 1px solid #333;
	flex-wrap: wrap;
	flex: 0 0 auto;
}

.foxyscorm-player-bar__title {
	font-weight: 600;
	flex: 1;
}

.foxyscorm-player-bar__status {
	font-size:12px;
	opacity: 0.85;
}

.foxyscorm-player-bar__back.button,
.foxyscorm-player-bar__next.button {
	text-decoration: none;
	padding: 0.35rem 0.75rem;
	background: #333;
	color: #fff;
	border-radius: 28px;
    font-size: 16px;
}


#foxyscorm-next-lesson[hidden] {
	display: none !important;
}

.foxyscorm-player-frame-wrap {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
}

.foxyscorm-player-frame {
	width: 100%;
	height: 100%;
	flex: 1 1 auto;
	border: 0;
	background: #fff;
}

.foxyscorm-lesson-box {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border: 1px solid #ccd0d4;
	background: #f9f9f9;
	border-radius: 4px;
}

.foxyscorm-lesson-box__title {
	margin-top: 0;
}

.foxyscorm-lesson-box__meta {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.foxyscorm-lesson-box__meta li {
	margin: 0.25rem 0;
}

.foxyscorm-lesson-box__actions .button {
	margin-right: 0.5rem;
}

.foxyscorm-lesson-box__locked {
	color: #b32d2e;
	font-weight: 600;
}


/*
 * Mobile browsers (including Chrome on iOS) can report a changing viewport
 * height as their browser controls appear and disappear. Do not lock the whole
 * player document to 100vh or hide overflow on narrow screens: that can clip
 * wrapped header controls and prevent the page from being scrolled. Give the
 * iframe a definite viewport-relative height while allowing the document itself
 * to scroll.
 */
@media (max-width: 767px) {
	.foxyscorm-player-body {
		height: auto;
		min-height: 100vh;
		min-height: 100dvh;
		overflow-x: hidden;
		overflow-y: auto;
	}

	.foxyscorm-player-frame-wrap {
		flex: 0 0 auto;
		height: 75vh;
		height: 75dvh;
		min-height: 420px;
	}

	.foxyscorm-player-frame {
		width: 100%;
		height: 100%;
		min-height: 0;
	}
}
