html.sat-test-viewport-fullscreen,
html.sat-test-viewport-fullscreen body {
	overflow: hidden !important;
}

html .is-sat-test-viewport-fullscreen {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483647 !important;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	max-height: none !important;
	margin: 0 !important;
	border-radius: 0 !important;
	overflow: auto !important;
}

[data-mks-test-shell].is-sat-test-fullscreen {
	box-sizing: border-box;
	max-width: none;
	margin: 0;
	overflow: auto;
	background: #fbf8ff;
}

html.has-sat-fullscreen-controls {
	--sat-test-intro-actions-columns: auto minmax(0, 1fr);
}

html:not(.has-sat-fullscreen-controls) .sat-test-fullscreen-btn:not(.is-fullscreen-active) {
	display: none !important;
}

/* Override the original intro and toolbar palettes, including their inline styles. */
body :is(.ielts-reading-test-shell, .ielts-full-shell, [data-mks-test-shell]) button.sat-test-fullscreen-btn[data-action="toggle-fullscreen"] {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #a81c28 !important;
	background: linear-gradient(180deg, #e53942, #ba1727) !important;
	color: #fff !important;
	box-shadow: 0 3px 0 #811522, 0 6px 12px rgba(104, 15, 25, .30), inset 0 1px 0 rgba(255, 255, 255, .32) !important;
	cursor: pointer;
}

.sat-test-fullscreen-btn:hover {
	filter: brightness(1.07);
}

.sat-test-fullscreen-btn:focus-visible {
	outline: 3px solid #a78bfa;
	outline-offset: 3px;
}

.sat-test-fullscreen-icon {
	display: block;
	flex: none;
	pointer-events: none;
}

:is(.ielts-reading-topbar, .ielts-full-topbar, .sat-test-practice-fullscreen) .sat-test-fullscreen-icon {
	width: 20px;
	height: 20px;
}

.sat-test-fullscreen-btn:not(.is-fullscreen-active) .sat-test-fullscreen-exit,
.sat-test-fullscreen-btn.is-fullscreen-active .sat-test-fullscreen-enter {
	display: none;
}

[data-mks-test-shell] .sat-test-practice-fullscreen {
	position: sticky;
	top: 8px;
	z-index: 1;
	width: 42px;
	height: 42px;
	margin: 8px 0 10px auto !important;
	border-radius: 12px;
}

@media (max-width: 900px) {
	html.has-sat-fullscreen-controls .ielts-full-top-actions {
		padding-bottom: 8px;
	}
}
