/* Chom Doi House - social and chat links. All selectors are prefixed with .chomdoi- */

.chomdoi-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 22px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}
.chomdoi-btn:hover,
.chomdoi-btn:focus {
	color: #fff;
	text-decoration: none;
	filter: brightness(1.12);
}
.chomdoi-btn:focus-visible,
.chomdoi-wechat__close:focus-visible {
	outline: 3px solid #1a1a1a;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #fff;
}
.chomdoi-btn--facebook { background: #1664d9; }
.chomdoi-btn--line { background: #03813a; }
.chomdoi-btn--whatsapp { background: #0e7a6e; }
.chomdoi-btn--wechat { background: #3d7f1f; }

/* Floating chat buttons */
.chomdoi-float {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 1040;
}
.chomdoi-float__list {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.chomdoi-float--hidden { display: none; }
.chomdoi-float__list li { margin: 0; padding: 0; }
.chomdoi-float .chomdoi-btn { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }

/* Footer links bar: has its own background so it reads the same wherever the theme places it */
.chomdoi-bar {
	padding: 20px 16px;
	background: #2b2b2b;
	color: #fff;
	text-align: center;
}
.chomdoi-bar__title { margin: 0 0 12px; color: #fff; font-size: 16px; }
.chomdoi-bar__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.chomdoi-bar__list li { margin: 0; padding: 0; }

/* WeChat QR panel */
.chomdoi-wechat {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 1050;
	box-sizing: border-box;
	width: 280px;
	max-width: calc(100vw - 32px);
	padding: 20px 20px 16px;
	border-radius: 8px;
	background: #fff;
	color: #222;
	text-align: center;
	transform: translate(-50%, -50%);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.chomdoi-wechat[hidden] { display: none; }
.chomdoi-wechat__text { margin: 0 0 12px; padding: 0 28px; font-size: 15px; }
.chomdoi-wechat__qr { display: block; max-width: 100%; height: auto; margin: 0 auto 12px; }
.chomdoi-wechat__id { margin: 0; font-size: 14px; }
.chomdoi-wechat__close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: #222;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 767px) {
	.chomdoi-float { right: 10px; bottom: 10px; }
	.chomdoi-float__list { gap: 8px; }
	.chomdoi-float .chomdoi-btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
}
