/* 前台加购弹窗 */

body.sig-po-lock { overflow: hidden; }

.sig-po-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba( 0, 0, 0, .5 );
}
.sig-po-overlay[hidden] { display: none; }

.sig-po-modal {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 18px 50px rgba( 0, 0, 0, .3 );
	overflow: hidden;
}

.sig-po-x {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 2;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: rgba( 255, 255, 255, .85 );
	box-shadow: 0 1px 4px rgba( 0, 0, 0, .2 );
	font-size: 22px;
	line-height: 1;
	color: #444;
	cursor: pointer;
}
.sig-po-x:hover { color: #000; }

.sig-po-hero {
	display: block;
	width: 100%;
	height: 170px;
	object-fit: cover;
	border-radius: 12px 12px 0 0;
}
.sig-po-hero[hidden] { display: none; }

.sig-po-title {
	margin: 0;
	padding: 18px 44px 12px 20px;
	font-size: 18px;
	border-bottom: 1px solid #eee;
}

.sig-po-body {
	padding: 8px 20px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.sig-po-loading {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	height: 60px;
	margin: 20px auto;
}
.sig-po-loading span {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #c9c9c9;
	animation: sig-po-bounce 1s infinite ease-in-out both;
}
.sig-po-loading span:nth-child(1) { animation-delay: -.32s; }
.sig-po-loading span:nth-child(2) { animation-delay: -.16s; }
@keyframes sig-po-bounce {
	0%, 80%, 100% { transform: scale( .4 ); opacity: .4; }
	40% { transform: scale( 1 ); opacity: 1; }
}

.sig-po-group {
	border: 0;
	border-top: 1px solid #f0f0f0;
	margin: 0;
	padding: 12px 0;
}
.sig-po-group:first-of-type { border-top: 0; }

.sig-po-group legend {
	padding: 0;
	font-weight: 600;
	font-size: 15px;
}
.sig-po-hint {
	font-weight: 400;
	font-size: 12px;
	color: #888;
	margin-left: 6px;
}
.sig-po-group.sig-po-invalid legend .sig-po-hint { color: #c0392b; }
.sig-po-group.sig-po-invalid legend { color: #c0392b; }

.sig-po-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 4px;
	margin: 2px 0;
	border-radius: 6px;
	cursor: pointer;
}
.sig-po-row:hover { background: #f7f7f7; }
.sig-po-row input[type=radio],
.sig-po-row input[type=checkbox] {
	margin: 0;
	flex: none;
	width: 22px;
	height: 22px;
	accent-color: #333; /* 想要品牌色就改这一处 */
	cursor: pointer;
}

.sig-po-opt-img {
	width: 40px;
	height: 40px;
	flex: none;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #eee;
}

.sig-po-lbl { flex: 1 1 auto; }
.sig-po-price { color: #555; font-variant-numeric: tabular-nums; white-space: nowrap; }

.sig-po-qty {
	width: 56px;
	flex: none;
	margin-left: 6px;
	padding: 2px 4px;
	text-align: center;
}
.sig-po-qty:disabled { opacity: .4; }

.sig-po-msg {
	color: #c0392b;
	font-size: 13px;
	min-height: 0;
	padding: 0 20px;
}
.sig-po-msg:not(:empty) { padding: 6px 20px; }

.sig-po-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px;
	border-top: 1px solid #eee;
	background: #fafafa;
}
.sig-po-total { font-weight: 600; font-variant-numeric: tabular-nums; }

.sig-po-submit { white-space: nowrap; }
.sig-po-submit:disabled { opacity: .5; cursor: not-allowed; }

@media ( max-width: 480px ) {
	.sig-po-overlay { padding: 0; align-items: flex-end; }
	.sig-po-modal { max-width: 100%; max-height: 92vh; border-radius: 14px 14px 0 0; }
}
