/* UniShelf — 图文评价（#19） */

/* 评价门槛提示（2026-09-16-2）：未购买/未确认收货时不显示评价表单 */
.usx-review-gate {
	margin: 0 0 14px;
	padding: 12px 14px;
	background: #FAF8F5;
	border: 1px solid #ece9e3;
	border-left: 3px solid #D2451F;
	border-radius: 8px;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #1A3A3A;
}

.usx-review-gate::before {
	content: "\2022";
	display: inline-block;
	margin-right: 6px;
	color: #D2451F;
	font-weight: 700;
}

.usx-rev-photos {
	margin: 0 0 14px;
}

.usx-rev-photos label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.usx-rev-photos__hint {
	display: block;
	font-weight: 400;
	font-size: 0.85em;
	opacity: 0.7;
}

.usx-rev-photos input[type="file"] {
	width: 100%;
	padding: 9px 11px;
	border: 1px dashed #c9c6bd;
	border-radius: 6px;
	background: #fbfaf8;
	cursor: pointer;
}

.usx-rev-photos__name {
	display: block;
	margin-top: 6px;
	font-size: 0.85em;
	color: #4c4a44;
}

.usx-rev-media {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.usx-rev-media__a {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #ece9e3;
}

.usx-rev-media__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
}

/* ---- v30（2026-09-18 B4）：我的订单页「写评价」弹窗（Shopee 风图文评价） ---- */
.usx-rev-modal {
	position: fixed;
	inset: 0;
	z-index: 99995;
	display: none;
}
.usx-rev-modal.is-open { display: block; }
.usx-rev-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 20, 20, 0.5);
	animation: usx-rev-fade 0.18s ease;
}
@keyframes usx-rev-fade { from { opacity: 0; } to { opacity: 1; } }
.usx-rev-modal__panel {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 100%;
	max-width: 460px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 18px 18px 0 0;
	padding: 20px 20px calc(18px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -12px 44px rgba(0, 0, 0, 0.24);
	animation: usx-rev-up 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes usx-rev-up {
	from { transform: translate(-50%, 100%); }
	to { transform: translate(-50%, 0); }
}
.usx-rev-modal__x {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: #9aa3a3;
	cursor: pointer;
}
.usx-rev-modal__title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 800;
	color: #1a3a3a;
	text-align: center;
}
.usx-rev-field { margin-bottom: 16px; }
.usx-rev-label {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: #1b1a17;
	margin-bottom: 8px;
}
.usx-rev-hint {
	font-weight: 400;
	font-size: 0.86em;
	color: #8a9494;
}
.usx-rev-prods {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.usx-rev-prod {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 84px;
	padding: 5px;
	border: 1.5px solid #e6e3dd;
	border-radius: 9px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	font: inherit;
}
.usx-rev-prod.is-on { border-color: #d2451f; box-shadow: 0 0 0 1px #d2451f inset; }
.usx-rev-prod img { width: 100%; height: 64px; object-fit: contain; display: block; border-radius: 5px; }
.usx-rev-prod__t {
	font-size: 11px;
	line-height: 1.3;
	color: #44524d;
	max-height: 30px;
	overflow: hidden;
}
.usx-rev-stars { display: flex; gap: 6px; }
.usx-rev-star {
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	line-height: 0;
	color: #d8d4cb;
	transition: color 0.12s ease, transform 0.1s ease;
}
.usx-rev-star.is-on { color: #ffb400; }
.usx-rev-star:active { transform: scale(0.92); }
.usx-rev-star svg { fill: currentColor; }
.usx-rev-text {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid #cfd8d4;
	border-radius: 10px;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.5;
	resize: vertical;
	background: #fff;
}
.usx-rev-photos-input {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 11px;
	border: 1px dashed #c9c6bd;
	border-radius: 10px;
	background: #fbfaf8;
	cursor: pointer;
}
.usx-rev-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.usx-rev-thumb {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #ece9e3;
}
.usx-rev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.usx-rev-thumb__x {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 20px;
	height: 20px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 14px;
	line-height: 18px;
	cursor: pointer;
	padding: 0;
}
.usx-rev-msg { margin: 0 0 12px; font-size: 13.5px; min-height: 1.2em; }
.usx-rev-msg.is-err { color: #b32d2e; font-weight: 600; }
.usx-rev-msg.is-ok { color: #1a7f4e; font-weight: 600; }
.usx-rev-modal__foot {
	display: flex;
	gap: 10px;
	margin-top: 6px;
}
.usx-rev-btn {
	flex: 1 1 0;
	height: 46px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}
.usx-rev-btn--ghost {
	background: #fff;
	border: 1.5px solid #d8d4cb;
	color: #1a3a3a;
}
.usx-rev-btn--primary {
	background: #d2451f;
	border: 1.5px solid #d2451f;
	color: #fff;
}
.usx-rev-btn--primary:disabled { opacity: 0.6; cursor: not-allowed; }
body.usx-modal-open { overflow: hidden; }
@media (min-width: 768px) {
	.usx-rev-modal__panel {
		bottom: auto;
		top: 50%;
		transform: translate(-50%, -50%);
		border-radius: 18px;
		animation: usx-rev-pop 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.2);
	}
	@keyframes usx-rev-pop {
		from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
		to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
	}
}
