/*
 * 商品页运费估算（选国家 → 运费 + 预估合计）
 * 配色跟随商品页黑金板；变量都带兜底值，商品页换主题时不会掉成透明字。
 */

.wmst-estimate {
	--wmst-line: var(--wmp-line, #44403c);
	--wmst-text: var(--wmp-text, #faf7f2);
	--wmst-muted: var(--wmp-muted, #a8a29e);
	--wmst-dim: var(--wmp-muted-dim, #78716c);
	--wmst-copper: var(--wmp-copper, #d97706);
	--wmst-bg: var(--wmp-bg, #1c1917);
	--wmst-radius: var(--wmp-radius-sm, 8px);

	margin: 16px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--wmst-line);
	color: var(--wmst-text);
}

.wmst-estimate .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.wmst-estimate .wmst-title {
	margin: 0 0 10px;
	color: var(--wmst-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wmst-estimate .wmst-picker {
	position: relative;
}

.wmst-estimate .wmst-country {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 38px 0 12px;
	background-color: var(--wmst-bg);
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23a8a29e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	border: 1px solid var(--wmst-line);
	border-radius: var(--wmst-radius);
	color: var(--wmst-text);
	font-size: 14px;
	line-height: 42px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.wmst-estimate .wmst-country:hover {
	border-color: var(--wmst-dim);
}

.wmst-estimate .wmst-country:focus {
	outline: none;
	border-color: var(--wmst-copper);
	box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25);
}

.wmst-estimate .wmst-country option {
	background: var(--wmst-bg);
	color: var(--wmst-text);
}

.wmst-estimate .wmst-result {
	margin: 12px 0 0;
	transition: opacity 0.2s ease;
}

.wmst-estimate.is-loading .wmst-result {
	opacity: 0.5;
}

.wmst-estimate .wmst-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--wmst-text);
}

.wmst-estimate .wmst-row > span:first-child {
	min-width: 0;
	overflow-wrap: anywhere;
}

.wmst-estimate .wmst-row strong {
	flex: 0 0 auto;
	font-weight: 600;
	white-space: nowrap;
}

.wmst-estimate .wmst-row.is-muted {
	color: var(--wmst-muted);
	font-size: 12.5px;
}

.wmst-estimate .wmst-row.is-muted span:last-child {
	text-align: right;
}

.wmst-estimate .wmst-row.is-total {
	margin: 8px 0 0;
	padding: 10px 0 0;
	border-top: 1px dashed var(--wmst-line);
	font-size: 15px;
}

.wmst-estimate .wmst-row.is-total strong {
	color: var(--wmst-copper);
	font-size: 19px;
	letter-spacing: 0.01em;
}

.wmst-estimate .wmst-note {
	margin: 8px 0 0;
	color: var(--wmst-dim);
	font-size: 12px;
	line-height: 1.5;
}

.wmst-estimate .wmst-note a {
	color: var(--wmst-copper);
	text-decoration: underline;
}

.wmst-estimate .wmst-tip {
	margin: 10px 0 0;
	padding: 10px 12px;
	background: rgba(217, 119, 6, 0.08);
	border: 1px solid rgba(217, 119, 6, 0.35);
	border-radius: var(--wmst-radius);
	color: var(--wmst-text);
	font-size: 13px;
	line-height: 1.5;
}

.wmst-estimate .wmst-tip a {
	color: var(--wmst-copper);
	font-weight: 600;
	text-decoration: none;
}

.wmst-estimate .wmst-tip a:hover {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.wmst-estimate .wmst-row {
		font-size: 13.5px;
	}

	.wmst-estimate .wmst-row.is-total strong {
		font-size: 18px;
	}
}
