/* Chelsea Thai - เมนูล่างมือถือ v1.0.0
   แบบ A1 ป้ายทอง : พื้นน้ำเงินเข้ม ช่องที่เปิดอยู่เป็นป้ายสีทอง */

.ct-bn{
	--ct-bn-h: 60px;
	--ct-bn-navy: #031B4E;
	--ct-bn-dim: #8FA4C6;
	--ct-bn-gold: #DBA111;
	--ct-bn-gold-lt: #F2C14E;
	--ct-bn-ink: #231A05;

	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9000;
	display: flex;
	align-items: stretch;
	height: calc(var(--ct-bn-h) + env(safe-area-inset-bottom, 0px));
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: var(--ct-bn-navy);
	box-shadow: 0 -1px 0 rgba(255,255,255,.08), 0 -8px 22px rgba(0,0,0,.28);
	font-family: inherit;
	transform: translateY(0);
	transition: transform .22s ease;
	will-change: transform;
	-webkit-tap-highlight-color: transparent;
}

/* ซ่อนตัวเอง: ตอนพิมพ์ หรือตอนเลื่อนอ่าน (ถ้าเปิดออปชัน) */
.ct-bn.is-hidden{
	transform: translateY(110%);
}

.ct-bn__item{
	flex: 1 1 0;
	min-width: 0;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 0 2px;
	text-decoration: none;
	color: var(--ct-bn-dim);
	transition: color .2s ease;
}
.ct-bn__item:focus{ outline: none; }
.ct-bn__item:focus-visible{
	outline: 2px solid var(--ct-bn-gold-lt);
	outline-offset: -3px;
	border-radius: 12px;
}

.ct-bn__ico{
	display: block;
	line-height: 0;
	position: relative;
	z-index: 1;
}
.ct-bn__ico svg{
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .18s ease;
}
.ct-bn__item:active .ct-bn__ico svg{ transform: scale(.88); }

.ct-bn__label{
	position: relative;
	z-index: 1;
	font-size: 10px;
	line-height: 1;
	letter-spacing: .1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

/* ช่องที่กำลังเปิดอยู่ : ป้ายทอง */
.ct-bn__item.is-active{
	color: var(--ct-bn-ink);
}
.ct-bn__item.is-active::before{
	content: "";
	position: absolute;
	top: 7px;
	bottom: 7px;
	left: 6px;
	right: 6px;
	border-radius: 13px;
	background: linear-gradient(160deg, var(--ct-bn-gold-lt), var(--ct-bn-gold));
	box-shadow: 0 3px 10px rgba(219,161,17,.45);
	z-index: 0;
}
.ct-bn__item.is-active .ct-bn__label{ font-weight: 700; }

/* เผื่อระยะท้ายหน้า ไม่ให้เมนูทับเนื้อหา */
body.ct-bn-on{
	padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

/* จอเล็กมาก เช่น iPhone SE */
@media (max-width: 360px){
	.ct-bn__label{ font-size: 9px; }
	.ct-bn__ico svg{ width: 21px; height: 21px; }
}

/* ผู้ใช้ตั้งค่าลดการเคลื่อนไหว */
@media (prefers-reduced-motion: reduce){
	.ct-bn, .ct-bn__ico svg{ transition: none; }
}

@media print{
	.ct-bn{ display: none !important; }
	body.ct-bn-on{ padding-bottom: 0 !important; }
}
