:root {
	--mainC: #3d5175
}

.sendB:hover {
	color: var(--mainC)
}

.SRbox {
	border: 1px solid #ddd;
	height: 35px !important;
	resize: none
}

.SRbox:focus {
	border: 1px solid #ddd;
	box-shadow: unset
}

.sendB {
	color: #999;
	font-size: 21px;
	line-height: 35px;
	padding: 0 5px 0 10px;
}

#inputZone {
	background: #fff;
	border-top: 1px solid #ddd;
}

.gallery {
	padding: 20px;
}

.thumbnail {
	width: 200px;
	cursor: pointer;
	border: 2px solid #ccc;
	transition: 0.3s;
}

.thumbnail:hover {
	border-color: #666;
}

* {
	user-select: text !important;
}
/* 彈出視窗樣式 */
.overlay {
	display: none;
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
}

.overlay-img {
	max-width: 90%;
	max-height: 90%;
	box-shadow: 0 0 20px #fff;
	 /* 小圖在大視窗可被放大，但在小視窗不會被強制放大
	 取兩個值最大個那個
	 視窗寬度 1000px → 30vw = 300px，所以會取300px(後面的)
	視窗寬度 400px → 30vw = 120px，所以會取200px(前面的) */
    min-width: max(200px, 30vw);
    min-height: max(150px, 30vh);
}

.close {
	position: absolute;
	top: 30px;
	right: 40px;
	font-size: 40px;
	color: white;
	cursor: pointer;
}

#messageInput-help-block {
	display: none !important
}

.chatW img {
	max-width: 100%;
	width: auto !important;
}

/* === 日期時間選擇器 === */
#pickerContainer {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 15px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	display: none;
	flex-direction: column;
	gap: 10px;
	z-index: 1000;
	width: 230px;
	animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {from { opacity:0;
	transform: translate(-50%, -45%);
}

to {
	opacity: 1;
	transform: translate(-50%, -50%);
}

}
#pickerContainer label {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	color: #333;
}

#pickerContainer input {
	padding: 6px;
	font-size: 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.picker-buttons {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 5px;
}

#confirmBtn, #cancelBtn {
	padding: 6px 14px;
	border: none;
	border-radius: 5px;
	color: white;
	cursor: pointer;
	font-size: 14px;
	transition: 0.3s;
}

#confirmBtn {
	background: #2196F3;
}

#confirmBtn:hover {
	background: #1976D2;
}

#cancelBtn {
	background: #9E9E9E;
}

#cancelBtn:hover {
	background: #757575;
}

#result {
	margin-top: 20px;
	font-size: 18px;
	color: #333;
}

/* 半透明背景遮罩 */
#overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.4);
	display: none;
	z-index: 999;
}