.moksafowo-cs-widget {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
	font-size: 14px;
	line-height: 1.6;
}
.moksafowo-cs-bubble {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99991;
	display: flex;
	align-items: center;
	gap: 7px;
	border: 0;
	cursor: pointer;
	background: #1d2327;
	color: #fff;
	border-radius: 24px;
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, .28 );
	transition: transform .15s, box-shadow .15s;
}
.moksafowo-cs-bubble:hover {
	transform: translateY( -2px );
	box-shadow: 0 6px 20px rgba( 0, 0, 0, .36 );
}
.moksafowo-cs-bubble .moksafowo-cs-ic {
	color: #d4af37;
	font-size: 16px;
	line-height: 1;
}
.moksafowo-cs-panel {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99992;
	display: none;
	flex-direction: column;
	width: 360px;
	max-width: 92vw;
	height: 520px;
	max-height: 78vh;
	background: #fff;
	border: 1px solid #e8e8ea;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba( 0, 0, 0, .18 );
	overflow: hidden;
	animation: moksafowo-cs-in .18s ease;
}
.moksafowo-cs-panel.moksafowo-cs-open {
	display: flex;
}
@keyframes moksafowo-cs-in {
	from { opacity: 0; transform: translateY( 12px ); }
	to { opacity: 1; transform: none; }
}
.moksafowo-cs-head {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 13px 16px;
	background: #fff;
	color: #1d2327;
	border-bottom: 2px solid;
	border-image: linear-gradient( 90deg, #c9a227, rgba( 201, 162, 39, 0 ) ) 1;
}
.moksafowo-cs-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 3px rgba( 52, 211, 153, .25 );
}
.moksafowo-cs-head b {
	font-size: 15px;
	font-weight: 700;
}
.moksafowo-cs-x {
	margin-left: auto;
	border: 0;
	background: transparent;
	color: #787c82;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 4px;
}
.moksafowo-cs-x:hover {
	color: #1d2327;
}
.moksafowo-cs-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	background: #f6f7f7;
}
.moksafowo-cs-hint {
	margin: 0 0 12px;
	color: #50575e;
}
.moksafowo-cs-err {
	margin: 0 0 12px;
	color: #b32d2e;
	background: #fdecec;
	padding: 9px 11px;
	border-radius: 8px;
}
.moksafowo-cs-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.moksafowo-cs-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid #c3c4c7;
	border-radius: 12px;
	font-size: 14px;
	background: #fff;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.moksafowo-cs-input:focus {
	border-color: #c9a227;
	box-shadow: 0 0 0 2px rgba( 201, 162, 39, .18 );
}
.moksafowo-cs-btn {
	border: 0;
	cursor: pointer;
	padding: 11px 14px;
	background: #1d2327;
	color: #fff;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
}
.moksafowo-cs-btn:hover {
	background: #2c3338;
}
.moksafowo-cs-btn:disabled {
	opacity: .55;
	cursor: default;
}
.moksafowo-cs-btn-2 {
	background: #f0f0f1;
	color: #50575e;
}
.moksafowo-cs-btn-2:hover {
	background: #e2e4e7;
}
.moksafowo-cs-card {
	background: #fff;
	border: 1px solid #e8e8ea;
	border-radius: 12px;
	padding: 14px;
}
.moksafowo-cs-ordno {
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #a16207;
}
.moksafowo-cs-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px solid #f0f0f1;
}
.moksafowo-cs-row:last-child {
	border-bottom: 0;
}
.moksafowo-cs-k {
	color: #787c82;
	flex: 0 0 auto;
}
.moksafowo-cs-v {
	color: #1d2327;
	text-align: right;
	word-break: break-all;
}
.moksafowo-cs-actions {
	display: flex;
	gap: 8px;
	margin-top: 14px;
}
.moksafowo-cs-actions .moksafowo-cs-btn {
	flex: 1;
}
/* 留言對話 */
.moksafowo-cs-msgs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}
.moksafowo-cs-msg {
	max-width: 80%;
	padding: 9px 12px;
	border-radius: 14px;
	white-space: pre-wrap;
	word-break: break-word;
}
.moksafowo-cs-msg.customer {
	align-self: flex-end;
	background: #1d2327;
	color: #fff;
	border-bottom-right-radius: 4px;
}
.moksafowo-cs-msg.staff {
	align-self: flex-start;
	background: #fff;
	border: 1px solid #e2e4e7;
	color: #1d2327;
	border-bottom-left-radius: 4px;
}
.moksafowo-cs-msg.ai {
	align-self: flex-start;
	background: #fdf6e3;
	border: 1px solid #e0c068;
	color: #5b4708;
	border-bottom-left-radius: 4px;
}
.moksafowo-cs-msg .moksafowo-cs-meta {
	font-size: 10.5px;
	opacity: .7;
	margin-bottom: 3px;
}
.moksafowo-cs-compose {
	display: flex;
	gap: 8px;
}
.moksafowo-cs-compose .moksafowo-cs-input {
	border-radius: 20px;
}
.moksafowo-cs-send {
	border: 0;
	cursor: pointer;
	background: #1d2327;
	color: #fff;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	font-size: 16px;
}
.moksafowo-cs-send:hover {
	background: #2c3338;
}
.moksafowo-cs-back {
	display: inline-block;
	margin-bottom: 10px;
	color: #a16207;
	cursor: pointer;
	font-size: 13px;
}
