/* Social Login Hub：登入按鈕。所有樣式收在 .slh- 命名空間，避免被佈景主題覆蓋或影響主題。 */

.slh-buttons {
	margin: 16px 0;
	clear: both;
}

.slh-separator {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	color: #646970;
	font-size: 13px;
	line-height: 1.4;
}

.slh-pos-above .slh-separator {
	margin: 14px 0 0;
}

.slh-separator::before,
.slh-separator::after {
	content: "";
	flex: 1;
	height: 1px;
	background: currentColor;
	opacity: 0.3;
}

.slh-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.slh-buttons .slh-btn {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 42px;
	padding: 8px 14px;
	border: 0;
	border-radius: 6px;
	background: var(--slh-bg, #333);
	color: var(--slh-fg, #fff);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	box-shadow: none;
	transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.slh-buttons .slh-btn.slh-outlined {
	box-shadow: inset 0 0 0 1px #c3c4c7;
}

.slh-buttons .slh-btn:hover,
.slh-buttons .slh-btn:focus {
	color: var(--slh-fg, #fff);
	filter: brightness(0.94);
	text-decoration: none;
}

.slh-buttons .slh-btn:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.slh-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

.slh-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* 只有圖示 */
.slh-style-icon .slh-list {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
}

.slh-style-icon .slh-btn {
	width: 44px;
	min-height: 44px;
	padding: 0;
	border-radius: 50%;
}

.slh-style-icon .slh-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* wp-login.php 的表單比較窄，按鈕字級縮小一點；送出鈕是浮動的，要清掉 */
.login .slh-buttons .slh-btn {
	font-size: 14px;
}

.login .slh-wp-login {
	padding-top: 20px;
}

/* 錯誤與成功訊息（沒有 WooCommerce 時） */
.slh-error,
.slh-success {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	color: #1d2327;
	font-size: 14px;
}

.slh-success {
	border-left-color: #00a32a;
	background: #edfaef;
}

/* 綁定清單 */
.slh-accounts {
	width: 100%;
	max-width: 640px;
	border-collapse: collapse;
}

.slh-accounts td {
	padding: 10px 8px;
	border-bottom: 1px solid #e0e0e0;
	vertical-align: middle;
}

.slh-accounts-name {
	width: 150px;
	font-weight: 600;
	white-space: nowrap;
}

.slh-accounts-name .slh-icon {
	vertical-align: middle;
	margin-right: 4px;
}

.slh-icon-sm {
	width: 18px;
	height: 18px;
}

.slh-accounts-action {
	width: 110px;
	text-align: right;
}

.slh-accounts form {
	margin: 0;
}

.slh-muted {
	color: #787c82;
}

@media (prefers-reduced-motion: reduce) {
	.slh-buttons .slh-btn {
		transition: none;
	}
}
