@charset "utf-8";

/* 線上客服浮動按鈕 + 聯絡我們彈窗
 * 配色沿用 style.css：#161616 底 / #232323 面板 / #343444 描邊 / #DDF247 強調 / #7A798A 次要文字
 */

/* ---------- 浮動按鈕 ---------- */

.tp-floats {
	position: fixed;
	right: 30px;
	bottom: 88px;
	z-index: 100;
}

.tp-float {
	display: flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #DDF247;
	cursor: pointer;
	box-shadow: 0 8px 22px -6px rgba(221, 242, 71, .55);
	transition: transform 300ms ease, filter 200ms ease;
}

.tp-float:hover {
	transform: scale(1.1);
	filter: brightness(1.05);
}

.tp-float svg {
	width: 21px;
	height: 21px;
	color: #161616;
}

@media (max-width: 769px) {
	.tp-floats {
		right: 16px;
		bottom: 96px;
	}
}

/* ---------- layer 暗色皮膚 ---------- */

.layui-layer.tp_popup {
	background: #161616;
	border: 1px solid #343444;
	border-radius: 20px;
	box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .8);
}

.tp_popup .layui-layer-content {
	text-align: left;
	/* layer 3.5.1 會把開啟當下量到的高度寫死在 content 上，
	 * 切換二維碼視圖後內容變高就只會出內捲軸，這裡放開讓它跟著長 */
	height: auto !important;
	max-height: 85vh;
	overflow-y: auto;
}

/* 底部抽屜：高度 auto 時 layer 算不出正確的 top，直接釘在底部 */
.layui-layer.tp_drawer {
	top: auto !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100% !important;
	border-width: 1px 0 0;
	border-radius: 20px 20px 0 0;
}

.layui-layer.tp_toast {
	background: #232323;
	border: 1px solid #343444;
	border-radius: 12px;
	color: #FFFFFF;
}

.tp_toast .layui-layer-content {
	color: #FFFFFF;
	font-size: 14px;
	padding: 14px 22px;
	font-family: 'Manrope', sans-serif;
}

/* ---------- 彈窗內容 ---------- */

.cus_box {
	font-family: 'Manrope', sans-serif;
}

.cus_head {
	position: relative;
	padding: 18px 20px 14px;
	border-bottom: 1px solid #343444;
}

.cus_title {
	margin: 0;
	color: #FFFFFF;
	font-size: 16px;
	line-height: 24px;
}

.cus_desc {
	margin: 4px 0 0;
	color: #7A798A;
	font-size: 12px;
	line-height: 18px;
}

.cus_close {
	position: absolute;
	right: 16px;
	top: 16px;
	width: 20px;
	height: 20px;
	cursor: pointer;
	color: #7A798A;
}

.cus_close:hover {
	color: #FFFFFF;
}

.cus_close svg {
	width: 15px;
	height: 15px;
}

/* 桌面：列表 */

.cus_list {
	padding: 2px 20px;
}

.cus_item {
	display: flex;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #232323;
	cursor: pointer;
}

.cus_item:last-child {
	border-bottom: none;
}

.cus_icon {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	margin-right: 11px;
	border-radius: 12px;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 20px;
}

.cus_item_line .cus_icon,
.cus_cell_line .cus_icon {
	background-color: rgba(6, 199, 85, .14);
	background-image: url(/static/assets/icon/contact/line.svg);
}

.cus_item_whatsapp .cus_icon,
.cus_cell_whatsapp .cus_icon {
	background-color: rgba(37, 211, 102, .14);
	background-image: url(/static/assets/icon/contact/whatsapp.svg);
}

.cus_item_wechat .cus_icon,
.cus_cell_wechat .cus_icon {
	background-color: rgba(7, 193, 96, .14);
	background-image: url(/static/assets/icon/contact/wechat.svg);
}

.cus_item_email .cus_icon,
.cus_cell_email .cus_icon {
	background-color: rgba(221, 242, 71, .12);
	background-image: url(/static/assets/icon/contact/email.svg);
}

.cus_info {
	flex: 1;
	min-width: 0;
}

.cus_name {
	margin: 0;
	color: #FFFFFF;
	font-size: 14px;
	line-height: 20px;
}

.cus_value {
	margin: 2px 0 0;
	color: #7A798A;
	font-size: 12px;
	line-height: 18px;
	font-family: 'Azeret Mono', monospace;
	word-break: break-all;
}

.cus_act {
	flex: 0 0 auto;
	font-size: 12px;
	color: #7A798A;
}

.cus_item:hover .cus_act {
	color: #DDF247;
}

.cus_act_main {
	color: #DDF247;
}

/* 尚未接入的渠道：置灰，仍可點擊（點擊提示接入中） */
.cus_item_disabled .cus_name,
.cus_cell_disabled .cus_name {
	color: #7A798A;
}

.cus_item_disabled .cus_value {
	color: #4E4E5A;
}

.cus_item_disabled .cus_icon,
.cus_cell_disabled .cus_icon {
	filter: grayscale(1);
	opacity: .45;
}

.cus_act_soon {
	flex: 0 0 auto;
	font-size: 12px;
	color: #5E5E68;
}

.cus_item_disabled:hover .cus_act_soon {
	color: #7A798A;
}

.cus_btn {
	flex: 0 0 auto;
	padding: 3px 10px;
	border: 1px solid #DDF247;
	border-radius: 999px;
	font-size: 11px;
	color: #DDF247;
}

.cus_item:hover .cus_btn {
	background: #DDF247;
	color: #161616;
}

/* 行動裝置：宮格 */

.cus_grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	padding: 12px 14px 6px;
	text-align: center;
}

.cus_cell {
	cursor: pointer;
}

.cus_cell .cus_icon {
	/* icon 是 span，宮格裡不是 flex item，不設 block 的話寬高不生效 */
	display: block;
	width: 54px;
	height: 54px;
	margin: 0 auto 8px;
	border-radius: 16px;
	background-size: 28px;
}

.cus_cell .cus_name {
	font-size: 13px;
	line-height: 18px;
}

.cus_bar {
	display: block;
	width: 34px;
	height: 4px;
	border-radius: 2px;
	background: #343444;
	margin: 0 auto 14px;
}

.cus_head_m {
	padding: 16px 14px 12px;
	text-align: center;
	border-bottom: none;
}

.cus_box_m .cus_desc {
	font-size: 13px;
	line-height: 19px;
}

.cus_cancel {
	margin: 0;
	/* 讓出 iPhone 底部安全區 */
	padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	text-align: center;
	font-size: 13px;
	color: #7A798A;
}

/* 二維碼視圖 */

.cus_qrBox {
	display: none;
	padding: 20px 20px 12px;
	text-align: center;
}

.cus_qrImg {
	width: 170px;
	height: 170px;
	border-radius: 12px;
}

.cus_qrText {
	margin: 12px 0 0;
	color: #FFFFFF;
	font-size: 13px;
	line-height: 19px;
}

.cus_qrId {
	margin: 6px 0 0;
	color: #7A798A;
	font-size: 12px;
	line-height: 18px;
	font-family: 'Azeret Mono', monospace;
}

.cus_back {
	display: inline-block;
	margin-top: 12px;
	font-size: 12px;
	color: #DDF247;
	cursor: pointer;
}

/* 矮螢幕（如 iPhone SE）：縮小二維碼，避免整張超過 max-height 被裁掉底部 */
@media (max-height: 700px) {
	.cus_qrBox {
		padding: 14px 20px 8px;
	}

	.cus_qrImg {
		width: 130px;
		height: 130px;
	}
}

/* 底部線上客服 */

.cus_foot {
	margin: 4px 20px 18px;
	padding: 11px;
	border-radius: 999px;
	background: #DDF247;
	text-align: center;
	cursor: pointer;
}

.cus_footText {
	color: #161616;
	font-size: 13px;
}

.cus_box_m .cus_foot {
	margin: 18px 14px 10px;
	padding: 13px;
}

.cus_box_m .cus_footText {
	font-size: 14px;
}
