/* plg_system_fontsize — แถบปุ่มเพิ่ม/ลดขนาดตัวอักษร */
.fs-bar {
	position: fixed;
	right: 16px;
	bottom: 20px;
	z-index: 1040;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px 6px 14px;
	background: #fff;
	color: #1d2733;
	border: 1px solid #d9e2ef;
	border-radius: 999px;
	box-shadow: 0 10px 28px -10px rgba(16, 24, 40, 0.35);
	font-family: inherit;
}

.fs-bar__label {
	font-size: 13px;
	font-weight: 600;
	color: #5d6b7c;
	margin-right: 4px;
	white-space: nowrap;
}

.fs-bar__btn {
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: #1b5fa8;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
	transition: transform .15s ease, background .2s ease, opacity .2s ease;
}

.fs-bar__btn--small { font-size: 14px; }
.fs-bar__btn--big { font-size: 18px; }

.fs-bar__btn:hover:not(:disabled) {
	background: #164d8c;
	transform: translateY(-1px);
}

.fs-bar__btn:disabled {
	opacity: .35;
	cursor: not-allowed;
}

.fs-bar__btn:focus-visible,
.fs-bar__readout:focus-visible {
	outline: 2px solid #1b5fa8;
	outline-offset: 2px;
}

.fs-bar__readout {
	min-width: 52px;
	height: 32px;
	padding: 0 8px;
	border: 1px solid #d9e2ef;
	border-radius: 999px;
	background: #f4f7fb;
	color: #1d2733;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
}

.fs-bar__readout:hover {
	background: #e8eef7;
}

/* วางในแถบหัวเว็บ ติดกับช่องค้นหา (ไม่ลอย) */
.fs-bar.fs-bar--inline {
	position: static;
	flex: none;
	margin-left: 8px;
	padding: 3px 4px 3px 10px;
	box-shadow: none;
	background: #f4f7fb;
	border-color: #d9e2ef;
}

.fs-bar--inline .fs-bar__btn {
	width: 30px;
	height: 30px;
	font-size: 13px;
}

.fs-bar--inline .fs-bar__btn--big {
	font-size: 15px;
}

.fs-bar--inline .fs-bar__readout {
	height: 26px;
	min-width: 44px;
	font-size: 12px;
}

/* อยู่ใต้ Breadcrumbs */
.fs-bar.fs-bar--crumbs {
	position: static;
	flex: none;
	margin: 10px 16px 4px;
	width: max-content;
	box-shadow: none;
	background: #f4f7fb;
	border-color: #d9e2ef;
}

.fs-bar--crumbs .fs-bar__btn {
	width: 34px;
	height: 34px;
	font-size: 15px;
}

.fs-bar--crumbs .fs-bar__btn--big {
	font-size: 17px;
}

.fs-bar--crumbs .fs-bar__readout {
	height: 30px;
	min-width: 46px;
	font-size: 13px;
}

/* อยู่ในเมนูมือถือ */
.fs-bar.fs-bar--menu {
	position: static;
	flex: none;
	margin: 12px auto 6px;
	width: max-content;
	box-shadow: none;
	background: #f4f7fb;
	border-color: #d9e2ef;
}

.fs-bar--menu .fs-bar__btn {
	width: 40px;
	height: 40px;
	font-size: 17px;
}

.fs-bar--menu .fs-bar__btn--big {
	font-size: 20px;
}

.fs-bar--menu .fs-bar__readout {
	height: 34px;
	min-width: 48px;
	font-size: 14px;
}

@media (max-width: 768px) {
	.fs-bar:not(.fs-bar--inline):not(.fs-bar--menu):not(.fs-bar--crumbs) {
		right: 12px;
		bottom: 92px;
		padding-left: 10px;
	}
	.fs-bar__label {
		display: none;
	}
}

@media print {
	.fs-bar {
		display: none;
	}
}
