/**
 * Accessibility font-switcher bar.
 */

/* In normal document flow at the end of the page (via wp_footer), not a
   floating overlay: it must not sit on top of the site's content. */
.swtor-a11y-bar {
	position: relative;
	display: flex;
	justify-content: flex-end;
	padding: 16px 24px;
	font-family: Arial, Helvetica, sans-serif;
}

.swtor-a11y-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--sith-surface-2);
	color: var(--sith-text);
	border: 1px solid var(--sith-red-dark);
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.swtor-a11y-toggle:hover,
.swtor-a11y-toggle:focus-visible {
	border-color: var(--sith-red);
}

.swtor-a11y-toggle-icon {
	font-size: 15px;
	line-height: 1;
}

.swtor-a11y-panel {
	position: absolute;
	bottom: calc(100% + 10px);
	right: 0;
	min-width: 240px;
	background: var(--sith-surface-2);
	border: 1px solid var(--sith-border);
	border-radius: 10px;
	padding: 14px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.swtor-a11y-label {
	display: block;
	color: var(--sith-text-muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 8px;
}

.swtor-a11y-options {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.swtor-a11y-font {
	text-align: left;
	background: var(--sith-surface);
	color: var(--sith-text);
	border: 1px solid var(--sith-border);
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 13px;
	cursor: pointer;
}

.swtor-a11y-font:hover,
.swtor-a11y-font:focus-visible {
	border-color: var(--sith-red);
}

.swtor-a11y-font[aria-pressed="true"] {
	background: var(--sith-red);
	border-color: var(--sith-red);
	color: #fff;
	font-weight: 600;
}

.swtor-a11y-font-orbitron { font-family: 'Orbitron', Arial, sans-serif; }
.swtor-a11y-font-arial { font-family: Arial, Helvetica, sans-serif; }
.swtor-a11y-font-comic { font-family: 'Comic Sans MS', 'Comic Sans', cursive; }
.swtor-a11y-font-times { font-family: 'Times New Roman', Times, serif; }
.swtor-a11y-font-dyslexic { font-family: 'OpenDyslexic', Arial, sans-serif; }

@media (max-width: 600px) {
	.swtor-a11y-panel {
		min-width: 0;
		width: 100%;
	}
}
