﻿/* chatpat-lingo-set — Frontend Styles */

.cce-exam-message {
	padding: 16px;
	border: 1px solid #ddd;
	border-radius: 0;
	background: #fff;
	text-align: center;
}

.cce-exam-root {
	font-family: inherit;
	font-size: inherit;
	width: 100%;
	height: 100vh;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

.cce-exam-container {
	position: relative;
	width: 100%;
	height: 98%;
	max-height: 98%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 0;
	border: 1px solid #ddd;
	background: #fff;
	color: #222;
	box-sizing: border-box;
	transition: box-shadow 0.4s ease;
	--cce-bg: #fff;
	--cce-text: #222;
	--cce-border: #ddd;
	--cce-card-bg: #f8f8f8;
	--cce-muted: #666;
	--cce-submit-bg: #f5f3df;
	--cce-submit-text: #222;
	--cce-btn-primary-bg: #1565c0;
	--cce-btn-primary-text: #fff;
	--cce-btn-primary-hover: #0d47a1;
	--cce-font-question: 1.0625em;
	--cce-font-body: 1em;
	--cce-font-chip: 1em;
	--cce-btn-height: 44px;
	--cce-btn-padding-x: 24px;
	--cce-btn-font: 1em;
	--cce-interaction-bg: #fff;
	--cce-interaction-border: #ddd;
	font-family: inherit;
	font-size: inherit;
}

.cce-exam-container.cce-glow-correct {
	animation: cceGlowGreen 0.8s ease;
}

.cce-exam-container.cce-glow-wrong {
	animation: cceGlowRed 0.8s ease;
}

@keyframes cceGlowGreen {
	0%, 100% { box-shadow: 0 0 0 rgba(76, 175, 80, 0); }
	50% { box-shadow: 0 0 24px 4px rgba(76, 175, 80, 0.6); }
}

@keyframes cceGlowRed {
	0%, 100% { box-shadow: 0 0 0 rgba(244, 67, 54, 0); }
	50% { box-shadow: 0 0 24px 4px rgba(244, 67, 54, 0.6); }
}

/* Progress bar */
.cce-progress-wrap {
	flex-shrink: 0;
	height: 6px;
	background: #fff;
	position: relative;
	z-index: 2;
}

.cce-progress-bar {
	height: 100%;
	background: #2d6a4f;
	width: 0%;
	transition: width 3s ease;
}

/* Top media */
.cce-media-area {
	flex-shrink: 0;
	padding: 12px 8px 0;
	margin: 12px 0 0;
	background: transparent;
	text-align: center;
	min-height: 0;
}

.cce-media-area img,
.cce-media-area video {
	max-width: 100%;
	max-height: 156px;
	cursor: pointer;
	border-radius: 0;
}

.cce-media-area audio {
	width: 100%;
	max-width: 400px;
}

.cce-media-text {
	font-size: 0.95em;
	padding: 4px 0;
	max-height: 156px;
	overflow: hidden;
}

.cce-exam-container.cce-state-intro .cce-media-area img,
.cce-exam-container.cce-state-intro .cce-media-area video,
.cce-exam-container.cce-state-intro .cce-media-text,
.cce-exam-container.cce-state-question .cce-media-area img,
.cce-exam-container.cce-state-question .cce-media-area video,
.cce-exam-container.cce-state-question .cce-media-text {
	max-height: 234px;
}

/* Screen body */
.cce-screen-body {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	overflow-anchor: none;
	min-height: 0;
}

.cce-exam-container.cce-state-intro .cce-screen-body {
	overflow: hidden;
}

.cce-exam-container.cce-state-result .cce-screen-body {
	overflow: hidden;
}

.cce-exam-container.cce-state-result .cce-media-area img,
.cce-exam-container.cce-state-result .cce-media-area video,
.cce-exam-container.cce-state-result .cce-media-text {
	max-height: 180px;
}

.cce-exam-container.cce-state-result .cce-screen-inner {
	justify-content: flex-end;
	min-height: 100%;
	height: 100%;
	padding: 12px 16px 12px;
	overflow: hidden;
}

.cce-exam-container.cce-state-result .cce-submit-wrap {
	display: none;
}

.cce-exam-container.cce-state-result .cce-dynamic-content {
	flex: 1;
	min-height: 0;
	margin-bottom: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.cce-exam-container.cce-state-result .cce-question-content {
	display: none;
}

.cce-screen-inner {
	padding: 16px 16px 80px;
	min-height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.cce-exam-container.cce-state-question .cce-screen-inner {
	justify-content: flex-end;
	min-height: 100%;
	padding-bottom: 88px;
}

.cce-exam-container.cce-state-question .cce-dynamic-content {
	margin-bottom: 0;
	flex-shrink: 0;
}

.cce-exam-container.cce-state-question .cce-question-content {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
}

@media (min-width: 768px) {
	.cce-exam-container.cce-state-question .cce-screen-body {
		overflow: hidden;
	}
}

.cce-exam-container.cce-state-intro .cce-screen-inner {
	padding-bottom: 80px;
	height: 100%;
}

.cce-dynamic-content {
	margin-bottom: 12px;
	flex-shrink: 0;
}

.cce-exam-container.cce-state-intro .cce-dynamic-content {
	flex: 1;
	min-height: 0;
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
}

.cce-question-content {
	min-height: 120px;
	flex: 1;
	min-width: 0;
}

.cce-exam-container.cce-state-intro .cce-question-content {
	display: none;
}

/* Intro screen */
.cce-intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	flex: 1;
	min-height: 0;
	width: 100%;
	gap: 12px;
	padding-top: 4px;
}

.cce-intro h2 {
	margin: 0;
	font-size: 1.5em;
	flex-shrink: 0;
}

.cce-intro-desc {
	flex: 1;
	min-height: 0;
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1.45;
	font-size: 16px;
}

.cce-intro-desc-inner {
	width: 100%;
	max-height: 100%;
	overflow: hidden;
}

.cce-intro-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	color: var(--cce-muted);
	font-size: 0.95em;
	flex-shrink: 0;
}

.cce-intro-meta svg {
	width: 20px;
	height: 20px;
}

/* Submit / start button (shared) */
.cce-submit-wrap {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 0;
	z-index: 10;
	background: #fff;
	border-top: 1px solid #ddd;
}

.cce-submit-btn {
	width: 100%;
	padding: 14px;
	border: none;
	border-radius: 0;
	font-family: inherit;
	font-size: 1.05em;
	cursor: pointer;
	background: var(--cce-btn-primary-bg, #1565c0);
	color: var(--cce-btn-primary-text, #fff);
}

.cce-submit-btn:hover:not(:disabled) {
	background: var(--cce-btn-primary-hover, #0d47a1);
}

.cce-submit-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Multiple choice — compact when media is large */
.cce-qtype-multiple_choice,
.cce-qtype-word_order,
.cce-qtype-translation,
.cce-qtype-voice_response,
.cce-qtype-media_voice {
	justify-content: flex-end;
}

.cce-qtype-multiple_choice .cce-question-text {
	font-weight: 600;
	margin-bottom: 6px;
}

.cce-qtype-multiple_choice .cce-options-list {
	gap: 6px;
	margin-top: 6px;
}

.cce-qtype-multiple_choice .cce-option-btn {
	padding: 0 12px;
}

.cce-options-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
}

.cce-option-btn {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: var(--cce-btn-height, 44px);
	padding: 0 12px;
	text-align: left;
	border: 2px solid #ddd;
	border-radius: 0;
	background: #f8f8f8;
	color: inherit;
	cursor: pointer;
	font-family: inherit;
	font-size: var(--cce-font-body, 1em);
	line-height: 1.3;
	box-sizing: border-box;
	transition: background 0.15s, border-color 0.15s;
}

.cce-option-btn.selected {
	border-color: #2d6a4f;
	background: rgba(45, 106, 79, 0.12);
}

.cce-option-btn.correct {
	border-color: #4caf50;
	background: rgba(76, 175, 80, 0.2);
}

.cce-option-btn.wrong {
	border-color: #f44336;
	background: rgba(244, 67, 54, 0.15);
}

.cce-option-btn.correct-hint {
	border-color: #4caf50;
	box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

.cce-question-text {
	font-family: inherit;
	font-size: var(--cce-font-question, 1.0625em);
	font-weight: 600;
	margin-bottom: 8px;
	line-height: 1.35;
}

.cce-question-content {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

/* Shared interaction surfaces — white fill + light dashed border */
.cce-word-area,
.cce-word-pool,
.cce-transcript-box,
.cce-vm-dropzone,
.cce-vm-pool,
.cce-match-left,
.cce-match-right {
	background: var(--cce-interaction-bg, #fff);
	border: 2px dashed var(--cce-interaction-border, #ddd);
	border-radius: 0;
	box-sizing: border-box;
}

/* Word chips */
.cce-word-area {
	min-height: calc(1.3em + 42px);
	padding: 10px;
	margin-bottom: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	align-content: center;
}

.cce-word-area:empty::before {
	content: attr(data-placeholder);
	color: #888;
	font-style: italic;
	pointer-events: none;
}

.cce-word-pool {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px;
	min-height: 48px;
}

.cce-word-chip {
	padding: 8px 14px;
	border: 1px solid #ddd;
	border-radius: 0;
	background: #f8f8f8;
	cursor: pointer;
	font-family: inherit;
	font-size: var(--cce-font-chip, 1em);
	line-height: 1.3;
	transition: opacity 0.2s, background 0.15s;
	user-select: none;
	box-sizing: border-box;
}

.cce-word-chip.used {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.cce-word-chip.in-answer {
	cursor: grab;
	touch-action: none;
}

.cce-word-chip.in-answer.cce-dragging {
	opacity: 0.35;
	cursor: grabbing;
	pointer-events: none;
	background: #eee;
	border-style: dashed;
	color: #888;
}

.cce-drag-ghost {
	position: fixed;
	z-index: 100000;
	pointer-events: none;
	left: 0;
	top: 0;
	transform: translate(-50%, -50%);
	opacity: 1 !important;
	margin: 0;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
	cursor: grabbing;
}

.cce-word-chip.in-answer.cce-drop-target {
	border-color: #2d6a4f;
	background: rgba(45, 106, 79, 0.12);
}

.cce-word-chip.in-answer.wrong-word {
	background: rgba(244, 67, 54, 0.25);
	border-color: #f44336;
}

.cce-play-btn,
.cce-mic-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--cce-btn-height, 44px);
	height: auto;
	padding: 0 var(--cce-btn-padding-x, 24px);
	border: none;
	border-radius: 0;
	background: var(--cce-btn-primary-bg, #1565c0);
	color: var(--cce-btn-primary-text, #fff);
	font-family: inherit;
	font-size: var(--cce-btn-font, 1em);
	cursor: pointer;
	line-height: 1.2;
	box-sizing: border-box;
}

.cce-play-btn {
	margin-bottom: 16px;
}

.cce-play-btn:hover {
	background: var(--cce-btn-primary-hover, #0d47a1);
}

/* Voice response */
.cce-voice-area {
	text-align: center;
	padding: 20px 0;
	position: relative;
}

.cce-hint-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: 0;
	border: 1px solid #ddd;
	background: #f8f8f8;
	cursor: pointer;
	font-size: 1.2em;
}

.cce-hint-panel {
	padding: 12px;
	margin: 12px 0;
	border-radius: 0;
	background: #f8f8f8;
	border: 1px solid #ddd;
}

.cce-transcript-box {
	min-height: 60px;
	padding: 12px;
	margin: 12px 0;
	text-align: left;
	font-family: inherit;
	font-size: var(--cce-font-body, 1em);
	line-height: 1.35;
}

.cce-transcript-box:empty::before {
	content: attr(data-placeholder);
	color: #888;
	font-style: italic;
	pointer-events: none;
}

.cce-transcript-box.cce-transcript-placeholder {
	color: #888;
	font-style: italic;
}

.cce-mic-btn:hover:not(.recording) {
	background: var(--cce-btn-primary-hover, #0d47a1);
}

.cce-mic-btn .cce-mic-icon {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	opacity: 0.92;
}

.cce-mic-btn .cce-mic-icon svg {
	width: 1.05em;
	height: 1.05em;
}

.cce-mic-btn .cce-mic-label {
	line-height: 1.2;
}

.cce-mic-btn.recording {
	animation: ccePulse 1s infinite;
	background: #c62828;
}

@keyframes ccePulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

@keyframes ccePulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

/* Media + voice (Dinle-Konuş / Dinle Tekrarla) — listen row + hint penalty badge */
.cce-media-voice-area .cce-mv-listen-row {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 10px;
	margin-bottom: 12px;
}

.cce-media-voice-area .cce-mv-listen-row .cce-play-btn {
	margin-bottom: 0;
}

.cce-media-voice-area .cce-mv-hint-btn {
	position: static;
	top: auto;
	right: auto;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: auto;
	min-height: var(--cce-btn-height, 44px);
	height: auto;
	padding: 0 14px;
	border: 1px solid #ddd;
	border-radius: 0;
	background: #f8f8f8;
	cursor: pointer;
	box-sizing: border-box;
	line-height: 1;
	gap: 4px;
	font-family: inherit;
	font-size: var(--cce-btn-font, 1em);
}

.cce-media-voice-area .cce-hint-icon {
	font-size: 1.1em;
	line-height: 1;
	flex-shrink: 0;
}

.cce-media-voice-area .cce-hint-penalty {
	font-size: 0.58em;
	font-weight: 400;
	color: #c62828;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.cce-media-voice-area .cce-mv-hint-btn.cce-hint-used {
	opacity: 0.55;
	cursor: default;
}

.cce-media-voice-area .cce-mv-hint-panel {
	text-align: left;
	font-weight: 600;
}

.cce-browser-warning {
	padding: 12px;
	background: #fff3cd;
	color: #856404;
	border-radius: 0;
	margin: 12px 0;
}

/* Visual matching — 2x2 centered grid, drop zones keep a fixed height */
.cce-qtype-visual_matching {
	justify-content: center;
}

.cce-vm-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
	max-width: 336px;
	margin: 0 auto;
}

.cce-vm-cell {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.cce-vm-imgbox {
	aspect-ratio: 4 / 3;
	border-radius: 0;
	overflow: hidden;
	background: transparent;
}

.cce-vm-imgbox img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	cursor: zoom-in;
}

.cce-vm-dropzone {
	box-sizing: border-box;
	height: calc(var(--cce-btn-height, 44px) + 14px);
	min-height: calc(var(--cce-btn-height, 44px) + 14px);
	max-height: calc(var(--cce-btn-height, 44px) + 14px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
	overflow: hidden;
	transition: border-color 0.15s, background 0.15s;
}

.cce-vm-dropzone .cce-vm-chip {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: 100%;
	min-height: 0;
	padding: 0 12px;
	display: block;
	line-height: calc(var(--cce-btn-height, 44px) - 2px);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.cce-vm-dropzone.cce-vm-drop-target {
	border-color: #2d6a4f;
	background: rgba(45, 106, 79, 0.08);
}

.cce-vm-dropzone.correct {
	border-style: solid;
	border-color: #4caf50;
	background: rgba(76, 175, 80, 0.12);
}

.cce-vm-dropzone.wrong {
	border-style: solid;
	border-color: #f44336;
	background: rgba(244, 67, 54, 0.1);
}

.cce-vm-pool {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 10px;
	padding: 10px;
	min-height: 48px;
}

.cce-vm-chip {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 0;
	background: #f8f8f8;
	cursor: grab;
	font-family: inherit;
	font-size: var(--cce-font-chip, 1em);
	line-height: 1.25;
	user-select: none;
	touch-action: none;
	text-align: center;
	box-sizing: border-box;
	min-height: var(--cce-btn-height, 44px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cce-vm-chip.selected {
	border-color: #2d6a4f;
	background: rgba(45, 106, 79, 0.12);
}

.cce-vm-chip.used {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
	background: #eee;
	border-style: dashed;
	color: #888;
}

.cce-vm-chip.cce-dragging {
	opacity: 0.35;
	cursor: grabbing;
	pointer-events: none;
	background: #eee;
	border-style: dashed;
	color: #888;
}

.cce-drag-ghost.cce-vm-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.25;
	font-size: var(--cce-font-chip, 1em);
	box-sizing: border-box;
}

.cce-vm-checked .cce-vm-chip {
	cursor: default;
}

/* Matching — always 2 columns side by side, bottom-aligned */
.cce-qtype-matching {
	justify-content: flex-end;
}

.cce-matching-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 10px;
	margin: 0;
	width: 100%;
	align-self: flex-end;
}

.cce-match-left,
.cce-match-right {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	justify-content: flex-end;
	padding: 10px;
	min-height: 80px;
}

.cce-match-item {
	padding: 0 8px;
	border: 1px solid #e4e4e4;
	border-radius: 0;
	background: #f3f3f3;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	cursor: pointer;
	text-align: center;
	transition: background 0.15s ease, border-color 0.15s ease;
	font-family: inherit;
	font-size: var(--cce-font-body, 1em);
	line-height: 1.3;
	min-width: 0;
	min-height: var(--cce-btn-height, 44px);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-sizing: border-box;
}

.cce-match-item.cce-match-pair-0 {
	background: #fdeef2;
	border-color: #f3ccd8;
}

.cce-match-item.cce-match-pair-1 {
	background: #e8f4fd;
	border-color: #c8dff5;
}

.cce-match-item.cce-match-pair-2 {
	background: #e9f8ef;
	border-color: #c8ead4;
}

.cce-match-item.cce-match-pair-3 {
	background: #fdf4e8;
	border-color: #f5dcc0;
}

.cce-match-item.cce-match-pair-4 {
	background: #f1ecfd;
	border-color: #d8ccf5;
}

.cce-match-item[class*="cce-match-pair-"] .cce-match-item-text {
	color: #888;
}

.cce-match-item-text {
	display: block;
	width: 100%;
	word-break: break-word;
	hyphens: auto;
}

.cce-match-item.paired {
	cursor: pointer;
}

.cce-matching-checked .cce-match-item {
	pointer-events: none;
	cursor: default;
}

.cce-match-item.result-correct {
	border-color: #4caf50;
	background: rgba(76, 175, 80, 0.2);
	box-shadow: none;
}

.cce-match-item.result-wrong {
	border-color: #f44336;
	background: rgba(244, 67, 54, 0.15);
	box-shadow: none;
}

/* Results */
.cce-result {
	text-align: center;
	padding: 0;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
}

.cce-result-motivation {
	font-size: 1.2em;
	font-weight: 600;
	margin-bottom: 30px;
	flex-shrink: 1;
	min-height: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cce-result-motivation-inner {
	width: 100%;
	line-height: 1.4;
}

.cce-result-stats {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 30px;
	flex-shrink: 0;
	font-size: 0.9em;
}

.cce-result-stat {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 7px 10px;
	border-radius: 0;
	background: #f8f8f8;
	border: 1px solid #ddd;
	line-height: 1.1;
	white-space: nowrap;
}

.cce-result-stat strong {
	font-weight: 700;
}

.cce-result-actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
	flex-shrink: 0;
}

.cce-result-actions button,
.cce-result-actions a {
	padding: 12px 24px;
	border-radius: 0;
	text-decoration: none;
	font-family: inherit;
	font-size: 1em;
	cursor: pointer;
	border: none;
	min-width: 200px;
	text-align: center;
}

.cce-retry-btn,
.cce-similar-btn {
	background: var(--cce-btn-primary-bg, #1565c0);
	color: var(--cce-btn-primary-text, #fff);
}

.cce-retry-btn:hover,
.cce-similar-btn:hover {
	background: var(--cce-btn-primary-hover, #0d47a1);
}

.cce-share-wrap {
	margin-top: 30px;
	flex-shrink: 0;
}

.cce-share-wrap p {
	margin: 0 0 6px;
	font-weight: 600;
}

.cce-share-btns {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.cce-share-btns a,
.cce-share-btns button.cce-share-ig {
	width: 36px;
	height: 36px;
	min-width: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0;
	line-height: 1;
	box-sizing: border-box;
	cursor: pointer;
}

.cce-share-btns svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
	display: block;
}

.cce-share-wa { background: #25d366; color: #fff; }
.cce-share-fb { background: #1877f2; color: #fff; }
.cce-share-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }

/* Lightbox */
.cce-lightbox[hidden] {
	display: none !important;
}

.cce-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cce-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

.cce-lightbox-content {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 90vh;
}

.cce-lightbox-content img,
.cce-lightbox-content video {
	max-width: 90vw;
	max-height: 85vh;
	border-radius: 0;
}

.cce-lightbox-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.9);
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
}

.cce-alert {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 56px;
	z-index: 15;
	padding: 10px;
	background: #fff3cd;
	color: #856404;
	border-radius: 0;
	margin: 0;
	text-align: center;
	font-size: var(--cce-font-body, 1em);
	box-sizing: border-box;
	pointer-events: none;
}

.cce-stale-exam {
	position: absolute;
	top: 8px;
	left: 8px;
	right: 8px;
	z-index: 20;
	padding: 12px 14px;
	border-radius: 0;
	background: #fff3cd;
	border: 1px solid #ffc107;
	color: #856404;
	text-align: center;
	box-sizing: border-box;
}

.cce-stale-exam p {
	margin: 0 0 10px;
	line-height: 1.4;
}

.cce-reload-exam-btn {
	min-height: var(--cce-btn-height, 44px);
	padding: 0 20px;
	border: none;
	border-radius: 0;
	background: var(--cce-btn-primary-bg, #1565c0);
	color: var(--cce-btn-primary-text, #fff);
	font-family: inherit;
	font-size: var(--cce-btn-font, 1em);
	cursor: pointer;
}
