/**
 * 合悦分享助手样式
 */

.hs-noscroll {
	overflow: hidden;
}

/* ---------- 注入到卡片/商品页的按钮 ---------- */

.hs-share-card,
.hs-share-page {
	appearance: none;
	border: 1px solid #d9cdb8;
	background: #fff;
	color: #6b6259;
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
	transition: all .2s;
	white-space: nowrap;
}

.hs-share-card:hover,
.hs-share-page:hover {
	border-color: #c9a227;
	color: #b8860b;
	background: #fffdf8;
}

.hs-share-page {
	margin-top: 14px;
	padding: 11px 20px;
	font-size: 14px;
}

/* ---------- 分享面板 ---------- */

.hs-overlay {
	position: fixed;
	inset: 0;
	background: rgba(24, 20, 16, .58);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 99999;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.hs-overlay.is-open {
	display: flex;
}

.hs-modal {
	background: #fff;
	border-radius: 18px;
	width: 100%;
	max-width: 430px;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
	overflow: hidden;
}

.hs-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid #efe9df;
}

.hs-modal__head strong {
	font-size: 16px;
	color: #2f2a24;
}

.hs-close {
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: #9a9089;
	cursor: pointer;
	padding: 0 4px;
}

.hs-modal__body {
	padding: 16px 18px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.hs-poster {
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #eee6d8;
	background: #faf7f2;
}

.hs-canvas {
	display: block;
	width: 100%;
	height: auto;
}

.hs-tip {
	margin: 12px 0 0;
	font-size: 13px;
	color: #8a8178;
	min-height: 18px;
	text-align: center;
}

.hs-tip--ok {
	color: #2e7d32;
}

.hs-tip--err {
	color: #c0392b;
}

.hs-modal__foot {
	display: flex;
	gap: 10px;
	padding: 14px 18px;
	border-top: 1px solid #efe9df;
	background: #fcfaf6;
}

.hs-btn {
	flex: 1;
	border-radius: 999px;
	padding: 12px 16px;
	font-size: 15px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all .2s;
}

.hs-btn--primary {
	background: #2f2a24;
	color: #c9a227;
}

.hs-btn--primary:hover {
	background: #241f1a;
}

.hs-btn--ghost {
	background: #fff;
	border-color: #d9cdb8;
	color: #6b6259;
}

.hs-btn--ghost:hover {
	border-color: #c9a227;
	color: #b8860b;
}

@media (max-width: 420px) {
	.hs-modal {
		max-width: 100%;
	}
}
