/* 订单列表页专属样式（orders.blade.php 引用），公共骨架在 account.css */
.ost-account {
	max-width: 760px;
}

/* 状态筛选：登录且有订单时显示（见 orders.js） */
.ost-orders-filter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 18px;
	padding: 12px 16px;
	background: #f7fafd;
	border: 1px solid #e9eff6;
	border-radius: 14px;
}

.ost-orders-filter label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #667085;
	font-size: .92em;
}

.ost-orders-filter label::before {
	content: "";
	width: 15px;
	height: 15px;
	background: #98a2b3;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 主题的 select 是「深色背景 + mask 箭头」兜底，mask 会把整个下拉连边框遮掉，
   这里还原成普通下拉框（与首页 .field select 的处理一致） */
.ost-orders-filter select {
	width: auto;
	min-width: 170px;
	padding: 9px 40px 9px 14px;
	border: 1px solid #d0d5dd;
	border-radius: 10px;
	background-color: #fff;
	color: #101828;
	font-family: inherit;
	font-size: .95em;
	cursor: pointer;
	mask: none;
	-webkit-mask: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 12px 8px;
}

.ost-orders-filter select:focus {
	outline: 2px solid #0af;
	outline-offset: -2px;
}

/* 订单卡片 */
.ost-order {
	margin-top: 16px;
	padding: 20px;
	background: #fff;
	border: 1px solid #eef1f6;
	border-radius: 18px;
	box-shadow: 0 6px 24px rgba(16, 24, 40, .05);
	animation: ost-rise .28s ease both;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ost-order:hover {
	border-color: #d9e7f5;
	box-shadow: 0 10px 30px rgba(16, 24, 40, .08);
	transform: translateY(-2px);
}

.ost-order-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.ost-order-ident {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ost-order-no-label {
	color: #667085;
	font-size: .76em;
	letter-spacing: .02em;
}

.ost-order-no {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: .92em;
	color: #344054;
	word-break: break-all;
}

.ost-order-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: .8em;
	font-weight: 600;
	background: #eef2f7;
	color: #475467;
	white-space: nowrap;
}

.ost-order-status::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.ost-order-status.is-ok {
	background: #e7f8ef;
	color: #067647;
}

.ost-order-status.is-bad {
	background: #feeceb;
	color: #b42318;
}

.ost-order-status.is-wait {
	background: #fff6e8;
	color: #b54708;
}

/* 订单信息栅格 */
.ost-order-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	margin-top: 16px;
}

.ost-order-meta-item {
	padding: 10px 12px;
	background: #f7fafd;
	border-radius: 10px;
}

.ost-order-meta-label {
	display: block;
	margin-bottom: 4px;
	color: #667085;
	font-size: .76em;
}

.ost-order-meta-value {
	display: block;
	color: #101828;
	font-weight: 600;
	font-size: .94em;
	overflow-wrap: anywhere;
	word-break: normal;
}

.ost-order-amount {
	color: #006b9e;
}

/* 发送内容 */
.ost-order-content {
	margin-top: 14px;
	padding: 12px 14px;
	background: #f7fafd;
	border-radius: 12px;
}

.ost-order-content-label {
	display: block;
	margin-bottom: 6px;
	color: #667085;
	font-size: .76em;
}

.ost-order-text {
	color: #344054;
	line-height: 1.65;
	white-space: pre-wrap;
	word-break: break-word;
}

.ost-order-time {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	font-size: .84em;
	color: #667085;
}

.ost-order-time::before {
	content: "";
	width: 13px;
	height: 13px;
	background: #b0b8c4;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat;
}

@media (max-width: 560px) {
	.ost-orders-filter {
		flex-direction: column;
		align-items: stretch;
	}

	.ost-orders-filter select {
		width: 100%;
	}

	/* 单列展示，避免邮箱等长内容在窄格子里被硬断 */
	.ost-order-meta {
		grid-template-columns: 1fr;
	}

	.ost-order {
		padding: 16px;
	}
}
