/* Prosys Font Switcher — front-end widget */

/* Applied to <html> only while a text-size change is being written, so
   themes that set `transition: all` on links and buttons don't animate
   hundreds of elements for half a second on every A+ / A- press. */
.pfs-no-transition,
.pfs-no-transition *,
.pfs-no-transition *::before,
.pfs-no-transition *::after {
	transition: none !important;
	animation: none !important;
}

/* #pfs-font-switcher (ID) is included alongside .pfs-switcher purely to
   win specificity ties against the plugin's own sitewide font override
   rule, in case an admin clears the default exclude-selectors list. */
#pfs-font-switcher.pfs-switcher,
.pfs-switcher {
	position: fixed;
	bottom: 20px;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
}

.pfs-switcher.pfs-position-bottom-right {
	right: 20px;
}

.pfs-switcher.pfs-position-bottom-left {
	left: 20px;
}

.pfs-switcher.pfs-position-bottom-center {
	left: 50%;
	transform: translateX(-50%);
}

.pfs-switcher-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #1d2327;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 10px 16px;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	font: inherit !important;
}

.pfs-switcher-toggle:hover,
.pfs-switcher-toggle:focus {
	background: #2c3338;
}

.pfs-switcher-icon {
	font-weight: 700;
	font-size: 15px !important;
}

.pfs-switcher-panel {
	position: absolute;
	bottom: calc(100% + 10px);
	right: 0;
	min-width: 230px;
	background: #fff;
	color: #1d2327;
	border-radius: 10px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
	padding: 16px;
}

.pfs-position-bottom-left .pfs-switcher-panel {
	right: auto;
	left: 0;
}

.pfs-position-bottom-center .pfs-switcher-panel {
	right: auto;
	left: 50%;
	transform: translateX(-50%);
}

.pfs-switcher-panel[hidden] {
	display: none;
}

.pfs-switcher-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
}

.pfs-switcher-row:last-child {
	margin-bottom: 0;
}

.pfs-switcher-row label,
.pfs-switcher-row-label {
	font-size: 12px !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #50575e;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}

.pfs-size-readout {
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: #787c82;
	font-variant-numeric: tabular-nums;
}

.pfs-switcher-row select {
	width: 100%;
	padding: 6px 8px;
	border-radius: 6px;
	border: 1px solid #dcdcde;
	font-size: 14px !important;
}

.pfs-size-controls {
	display: flex;
	gap: 6px;
}

.pfs-size-btn {
	flex: 1;
	background: #f0f0f1;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 6px 8px;
	cursor: pointer;
	font-size: 13px !important;
	font: inherit !important;
}

.pfs-size-btn:hover {
	background: #e0e0e1;
}

.pfs-size-reset {
	flex: 1.2;
}

@media (max-width: 480px) {
	.pfs-switcher-panel {
		min-width: 200px;
	}
}
