/*
 * 載具條碼自動處理層樣式 — 默認載入（帶 ?ui=classic 則不載），跟 spb-carrier.js 成對。
 */

/* 狀態列：放畫布下方，讓客人「一定看得到」自動讀到的編號並能核對。
   刻意不做成會自動消失的 toast——印錯別人的載具很難處理，這條要一直在。 */
.spb-carrier-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding: 8px 10px;
	background: #eaf3fb;
	border: 1px solid #b6d4ec;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.2;
	max-width: 100%;
}
.spb-carrier-code {
	font-weight: 700;
	color: #1a5a8f;
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	letter-spacing: 0.5px;
	white-space: nowrap;
}
.spb-carrier-code.spb-carrier-warn { color: #b54708; }
.spb-carrier-bar:has( .spb-carrier-warn ) { background: #fdeee7; border-color: #f3d6c6; }
.spb-carrier-ok { color: #1a7f37; font-size: 12px; white-space: nowrap; }
.spb-carrier-edit {
	margin-left: auto;
	border: 1px solid #b6d4ec;
	background: #fff;
	color: #1a5a8f;
	font-size: 12px;
	border-radius: 8px;
	padding: 7px 10px;
	min-height: 34px;
	cursor: pointer;
	white-space: nowrap;
}
.spb-carrier-edit:active { background: #dceaf6; }

/* 提示（會自己消失，只用在非關鍵訊息） */
.spb-carrier-toast {
	position: absolute;
	left: 50%; bottom: 16px;
	transform: translateX( -50% );
	z-index: 7;
	background: rgba( 26, 26, 26, 0.9 );
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
	padding: 9px 14px;
	border-radius: 12px;
	max-width: 92%;
	text-align: center;
	pointer-events: none;
}

/* 手動輸入編號 */
.spb-carrier-modal {
	position: absolute;
	left: 0; top: 0; right: 0; bottom: 0;
	z-index: 20;
	background: rgba( 0, 0, 0, 0.45 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
}
.spb-carrier-box {
	background: #fff;
	border-radius: 16px;
	padding: 18px 16px 14px;
	width: 100%;
	max-width: 320px;
	box-shadow: 0 12px 32px rgba( 0, 0, 0, 0.2 );
}
.spb-carrier-t { font-size: 17px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.spb-carrier-d { font-size: 12.5px; color: #666; line-height: 1.5; margin-bottom: 12px; }
.spb-carrier-d b { color: #1a5a8f; }
.spb-carrier-in {
	width: 100%;
	/* 16px 是 iOS 的門檻：小於這個字級，聚焦時整頁會被自動放大 */
	font-size: 18px;
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	letter-spacing: 2px;
	text-align: center;
	padding: 11px 8px;
	border: 1px solid #d0d4da;
	border-radius: 10px;
	box-sizing: border-box;
}
.spb-carrier-err { color: #c0392b; font-size: 12px; min-height: 18px; margin-top: 6px; text-align: center; }
.spb-carrier-btns { display: flex; gap: 8px; margin-top: 6px; }
.spb-carrier-btns button {
	flex: 1;
	min-height: 46px;
	border-radius: 10px;
	font-size: 15px;
	cursor: pointer;
	border: 1px solid #d8dce2;
	background: #f0f2f5;
	color: #333;
}
.spb-carrier-btns .spb-carrier-go { background: #ffd400; border-color: #ffd400; color: #1a1a1a; font-weight: 700; }
