/* wenpai kit page-share — weight 400 + real icons */

.wenpai-share {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 0.35rem 0 0;
}

.wenpai-share__btn {
	align-items: center;
	appearance: none;
	background: #f3f4f5;
	border: 1px solid #c8ccd0;
	border-radius: 999px;
	box-shadow: none;
	color: #1d2327;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	gap: 0.45em;
	height: 2.125rem;
	letter-spacing: 0;
	line-height: 1;
	margin: 0;
	padding: 0 0.95rem;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
	-webkit-tap-highlight-color: transparent;
}

.wenpai-share__btn--small {
	font-size: 12px;
	height: 1.85rem;
	padding: 0 0.75rem;
}

.wenpai-share__btn--medium {
	font-size: 13px;
	height: 2.125rem;
	padding: 0 0.95rem;
}

.wenpai-share__btn--large {
	font-size: 14px;
	height: 2.5rem;
	padding: 0 1.1rem;
}

.wenpai-share__btn svg {
	width: 1.1em;
	height: 1.1em;
	flex: 0 0 auto;
	display: block;
}

.wenpai-share__btn:hover {
	background: #e8f8ea;
	border-color: #39bf44;
	color: #1f8f2c;
}

.wenpai-share__btn:focus-visible {
	outline: 2px solid #39bf44;
	outline-offset: 2px;
}

.wenpai-share__btn:active {
	transform: scale(0.98);
}

html.wptea-dark .wenpai-share__btn,
html.cb-dark .wenpai-share__btn {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.28);
	color: #f2f2f2;
}

html.wptea-dark .wenpai-share__btn:hover,
html.cb-dark .wenpai-share__btn:hover {
	background: rgba(57, 191, 68, 0.16);
	border-color: #39bf44;
	color: #7ddea4;
}

.wenpai-share-sheet {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: none;
	align-items: flex-end;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.wenpai-share-sheet.is-open {
	display: flex;
}

.wenpai-share-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.42);
	border: 0;
	cursor: pointer;
}

.wenpai-share-sheet__panel {
	position: relative;
	width: min(22rem, 100%);
	background: #fff;
	color: #1d2327;
	border-radius: 1rem;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
	padding: 1rem 1rem 1.1rem;
	z-index: 1;
	animation: wenpai-share-up 0.16s ease-out;
}

@keyframes wenpai-share-up {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (min-width: 720px) {
	.wenpai-share-sheet {
		align-items: center;
	}
	.wenpai-share-sheet__panel {
		animation-name: wenpai-share-pop;
	}
	@keyframes wenpai-share-pop {
		from {
			opacity: 0;
			transform: scale(0.97);
		}
		to {
			opacity: 1;
			transform: scale(1);
		}
	}
}

.wenpai-share-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
}

.wenpai-share-sheet__title {
	font-size: 0.95rem;
	font-weight: 400;
	margin: 0;
}

.wenpai-share-sheet__close {
	appearance: none;
	background: #f0f1f2;
	border: 0;
	border-radius: 999px;
	color: #1d2327;
	cursor: pointer;
	font-size: 1.15rem;
	font-weight: 400;
	line-height: 1;
	width: 2rem;
	height: 2rem;
}

.wenpai-share-sheet__close:hover {
	background: #e4e6e8;
}

.wenpai-share-sheet__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.55rem;
}

.wenpai-share-sheet__item {
	appearance: none;
	background: #f5f6f7;
	border: 1px solid #e2e4e6;
	border-radius: 0.75rem;
	color: #1d2327;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 400;
	padding: 0.75rem 0.35rem 0.7rem;
	text-decoration: none;
}

.wenpai-share-sheet__item:hover {
	background: #eaf8ec;
	border-color: #9ad6a1;
	color: #1f8f2c;
}

.wenpai-share-sheet__item svg {
	width: 1.35rem;
	height: 1.35rem;
	display: block;
}

.wenpai-share-sheet__item.is-native {
	grid-column: 1 / -1;
	flex-direction: row;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem;
	font-size: 0.8125rem;
	background: #1d2327;
	border-color: #1d2327;
	color: #fff;
}

.wenpai-share-sheet__item.is-native:hover {
	background: #111;
	border-color: #111;
	color: #fff;
}

.wenpai-share-sheet__item.is-native[hidden] {
	display: none;
}

.wenpai-share-sheet__item.is-native svg {
	width: 1rem;
	height: 1rem;
}

.wenpai-share-sheet__copy {
	margin-top: 0.65rem;
	appearance: none;
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	background: #39bf44;
	border: 0;
	border-radius: 0.75rem;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 400;
	padding: 0.7rem 0.85rem;
}

.wenpai-share-sheet__copy svg {
	width: 1rem;
	height: 1rem;
	display: block;
}

.wenpai-share-sheet__copy:hover {
	background: #2fa83a;
}

.wenpai-share-sheet__url {
	margin-top: 0.55rem;
	font-size: 0.6875rem;
	font-weight: 400;
	line-height: 1.35;
	color: #66707a;
	word-break: break-all;
	max-height: 2.7em;
	overflow: hidden;
}

html.wptea-dark .wenpai-share-sheet__panel,
html.cb-dark .wenpai-share-sheet__panel {
	background: #1c1c1c;
	color: #ededed;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

html.wptea-dark .wenpai-share-sheet__close,
html.cb-dark .wenpai-share-sheet__close,
html.wptea-dark .wenpai-share-sheet__item,
html.cb-dark .wenpai-share-sheet__item {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.1);
	color: #ededed;
}

html.wptea-dark .wenpai-share-sheet__item:hover,
html.cb-dark .wenpai-share-sheet__item:hover {
	background: rgba(57, 191, 68, 0.14);
	border-color: rgba(57, 191, 68, 0.45);
	color: #7ddea4;
}

html.wptea-dark .wenpai-share-sheet__url,
html.cb-dark .wenpai-share-sheet__url {
	color: #8e8e8e;
}

.wenpai-share__toast {
	position: fixed;
	left: 50%;
	bottom: 1.5rem;
	transform: translateX(-50%) translateY(8px);
	background: #1d2327;
	color: #fff;
	padding: 0.55rem 0.95rem;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
	z-index: 100002;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.wenpai-share__toast.is-on {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
