/**
 * ITJISHU Social Login 前台样式。
 * 同时兼容登录页与前台短代码两种场景。
 */

.itjishu-sl {
	margin: 16px 0 0;
	text-align: center;
}

.itjishu-sl__divider {
	position: relative;
	margin: 18px 0 14px;
	color: #8c8f94;
	font-size: 13px;
	line-height: 1;
}

.itjishu-sl__divider::before,
.itjishu-sl__divider::after {
	content: "";
	position: absolute;
	top: 50%;
	width: calc(50% - 70px);
	height: 1px;
	background: #e5e5e5;
}

.itjishu-sl__divider::before {
	left: 0;
}

.itjishu-sl__divider::after {
	right: 0;
}

.itjishu-sl__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.itjishu-sl__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	background: #fff;
	color: #3c434a;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.itjishu-sl__btn:hover,
.itjishu-sl__btn:focus {
	background: #f6f7f7;
	border-color: #c3c4c7;
	color: #1d2327;
}

.itjishu-sl__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.itjishu-sl__icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.itjishu-sl__btn--qq {
	color: #353c4a;
}

.itjishu-sl__btn--qq .itjishu-sl__icon {
	color: #12b7f5;
}

.itjishu-sl__btn--wechat {
	color: #353c4a;
}

.itjishu-sl__btn--wechat .itjishu-sl__icon {
	color: #07c160;
}

.itjishu-sl__btn--small {
	min-height: 32px;
	padding: 0 12px;
	font-size: 13px;
}

/* 前台短代码下的按钮略窄 */
.itjishu-sl--frontend .itjishu-sl__btn {
	flex: 1 1 140px;
	max-width: 220px;
}

/* 登录页适配：wp-login 容器宽度有限 */
.login .itjishu-sl__btn {
	flex: 1 1 100%;
}

.itjishu-sl-bindings {
	margin-top: 24px;
}

.itjishu-sl-bindings__table td {
	vertical-align: middle;
}

.itjishu-sl-bindings__name {
	display: flex;
	align-items: center;
	gap: 8px;
}

.itjishu-sl-bindings__name .itjishu-sl-bindings__nick {
	color: #666;
}

.itjishu-sl-bindings__avatar {
	border-radius: 50%;
	flex: 0 0 32px;
}

.itjishu-sl-bindings__actions {
	text-align: right;
	width: 120px;
}

.itjishu-sl-bindings__unbind {
	color: #b32d2e;
	border-color: #b32d2e;
	background: transparent;
}

.itjishu-sl-bindings__unbind:hover {
	background: #fcf0f1;
	border-color: #8a2424;
	color: #8a2424;
}

.itjishu-sl-bindings__locked {
	color: #999;
	font-size: 12px;
}

.itjishu-sl-bindings__add {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.itjishu-sl-bindings__hint {
	width: 100%;
	margin: 0 0 4px;
	color: #666;
	font-size: 13px;
}

@media screen and (max-width: 480px) {
	.itjishu-sl__divider::before,
	.itjishu-sl__divider::after {
		width: calc(50% - 60px);
	}

	.itjishu-sl__btn {
		flex: 1 1 100%;
	}
}
