/**
 * ============================================================================
 * 文件：plugins/share/css/share.css
 * 说明：帖子分享图标与弹层样式
 * ----------------------------------------------------------------------------
 * 产品名称：马谷迷你论坛
 * 版本号：1.0.0
 * 版权所有：www.mavgu.com
 * ============================================================================
 */

.magu-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 0 0.15em;
	padding: 0;
	border: 0;
	background: none;
	vertical-align: middle;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	position: relative;
	top: -0.08em;
}

.magu-share-btn:hover,
.magu-share-btn:focus,
.magu-share-btn:active {
	border: 0;
	background: none;
	outline: none;
	text-decoration: none;
	box-shadow: none;
	opacity: 1;
}

.magu-share-btn img {
	display: block;
	width: 14px;
	height: 14px;
	max-width: 14px;
	max-height: 14px;
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: middle;
}

.magu-share-overlay {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1em;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.45);
}

.magu-share-dialog {
	width: 100%;
	max-width: 22em;
	padding: 1.1em 1.2em 1.2em;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
}

.magu-share-dialog h2 {
	margin: 0 0 0.85em;
	padding: 0;
	font-size: 1.1em;
}

.magu-share-dialog label {
	display: block;
	margin: 0 0 0.35em;
	font-size: 0.9em;
}

.magu-share-link-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.45em;
	margin-bottom: 1em;
}

.magu-share-link-row input,
.magu-share-dialog .magu-share-link-row input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: 23px;
	min-height: 23px;
	max-height: 23px;
	margin: 0;
	padding: 0 0.5em;
	border: 1px solid #bbb;
	border-radius: 3px;
	box-sizing: border-box;
	font-size: 12px;
	line-height: 21px;
	vertical-align: middle;
}

.magu-share-link-row button,
.magu-share-dialog .magu-share-link-row button {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 23px;
	min-height: 23px;
	max-height: 23px;
	min-width: 0;
	margin: 0;
	padding: 0 0.75em;
	box-sizing: border-box;
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
	vertical-align: middle;
	cursor: pointer;
}

.magu-share-qr-wrap {
	text-align: center;
	margin: 0 0 0.85em;
}

.magu-share-qr-wrap .magu-share-qr {
	display: inline-block;
	width: 180px;
	height: 180px;
	margin: 0 auto 0.5em;
}

.magu-share-qr-wrap .magu-share-qr img,
.magu-share-qr-wrap .magu-share-qr canvas,
.magu-share-qr-wrap .magu-share-qr table {
	max-width: 100%;
	height: auto !important;
}

.magu-share-qr-hint {
	margin: 0;
	font-size: 0.85em;
	color: #666;
}

.magu-share-actions {
	text-align: right;
}

.magu-share-actions button {
	padding: 0.4em 0.9em;
	cursor: pointer;
}
