/**
 * WP PowerSuite — Social login buttons (layout + provider themes).
 */

/* Layout */
.wpps-social-login {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 12px;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
}

.wpps-social-login.wpps-sl--all-icons,
.wpps-social-login.wpps-sl--row {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
}

.wpps-social-login.wpps-sl--c-align-left { justify-content: flex-start; }
.wpps-social-login.wpps-sl--c-align-center { justify-content: center; }
.wpps-social-login.wpps-sl--c-align-right { justify-content: flex-end; }

.wpps-social-login:not(.wpps-sl--all-icons):not(.wpps-sl--row) .wpps-sl-item {
	width: 100%;
}

.wpps-sl-embedded[data-wpps-social-embed="1"] {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1.75em;
}

.wpps-sl-embedded__or {
	display: flex;
	align-items: center;
	gap: 0.75em;
	width: 100%;
	box-sizing: border-box;
	margin: 1.1em 0 0;
}

.wpps-sl-embedded__or-line {
	flex: 1;
	min-width: 0;
	height: 0;
	align-self: center;
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.wpps-sl-embedded__or-text {
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #666;
}

.wpps-sl-embedded__or--signin-with .wpps-sl-embedded__or-text {
	letter-spacing: 0.04em;
	font-size: 10px;
	line-height: 1.25;
	white-space: normal;
	text-align: center;
	max-width: 11em;
}

.wpps-social-login .wpps-sl-embedded__or {
	margin: 0 0 1.5em;
}

.wpps-sl-embed-container {
	margin: 0;
}

.wpps-sl-embed--moved {
	margin-top: 1.5em;
}

.wpps-sl-embedded__buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	margin: 0;
}

.wpps-sl-embedded--inline .wpps-sl-embedded__buttons {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.wpps-sl-embedded--inline .wpps-sl-embedded__buttons .wpps-sl-item {
	flex: 0 0 auto;
	width: auto;
	max-width: 100%;
}

.wpps-sl-embedded:not(.wpps-sl-embedded--inline) .wpps-sl-embedded__buttons .wpps-sl-item {
	width: 100%;
	max-width: min(100%, 300px);
	min-width: 0;
	align-self: center;
}

.wpps-sl-embedded .wpps-sl-btn {
	max-width: min(100%, 300px);
	box-sizing: border-box;
}

.wpps-sl-item {
	min-width: 0;
}

.wpps-sl-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	max-width: min(100%, 300px);
	text-decoration: none !important;
	font-weight: 600;
	border-radius: 6px;
	line-height: 1.35;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s, transform 0.1s;
}

.wpps-sl-btn__text {
	text-decoration: none !important;
}

.wpps-sl-btn--small {
	min-height: 36px;
	padding: 6px 12px !important;
	font-size: 13px;
	gap: 8px;
}

.wpps-sl-btn--medium {
	padding: 10px 18px !important;
	font-size: 14px;
}

.wpps-sl-btn--large {
	min-height: 52px;
	padding: 12px 24px !important;
	font-size: 16px;
}

.wpps-sl--w-full { width: 100%; max-width: min(100%, 300px); }
.wpps-sl--w-auto { width: auto; max-width: min(100%, 300px); }
.wpps-sl--w-custom { max-width: min(100%, 300px); display: inline-flex; }

.wpps-sl--w-full.wpps-sl--a-left { justify-content: flex-start; }
.wpps-sl--w-full.wpps-sl--a-center { justify-content: center; }
.wpps-sl--w-full.wpps-sl--a-right { justify-content: flex-end; }

.wpps-sl--a-left:not(.wpps-sl--w-full) { margin-left: 0 !important; margin-right: auto !important; }
.wpps-sl--a-center:not(.wpps-sl--w-full) { margin-left: auto !important; margin-right: auto !important; }
.wpps-sl--a-right:not(.wpps-sl--w-full) { margin-left: auto !important; margin-right: 0 !important; }

.wpps-sl-btn--icon-only {
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	padding: 10px !important;
	gap: 0;
}

.wpps-sl-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
}

.wpps-sl-login-error {
	border-left-color: #d63638 !important;
}

.wpps-sl-embedded--wp-login {
	margin: 0;
}

.wpps-sl-embedded--woo {
	margin: 1em 0;
}

/* Google */
a.wpps-sl--google.wpps-sl-btn--default,
.wpps-sl-item--google a.wpps-sl--google.wpps-sl-btn--default {
	background: #fff !important;
	color: #1f1f1f !important;
	border: 1px solid #5f6368 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.04) !important;
}

a.wpps-sl--google.wpps-sl-btn--default:hover,
a.wpps-sl--google.wpps-sl-btn--default:focus {
	background: #f1f3f4 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
	border-color: #3c4043 !important;
	color: #0d0d0d !important;
}

a.wpps-sl--google.wpps-sl-btn--outline,
.wpps-sl-item--google a.wpps-sl--google.wpps-sl-btn--outline {
	background: transparent !important;
	color: #0b57d0 !important;
	border: 2px solid #0b57d0 !important;
	box-shadow: none !important;
}

a.wpps-sl--google.wpps-sl-btn--outline:hover,
a.wpps-sl--google.wpps-sl-btn--outline:focus {
	background: rgba(11, 87, 208, 0.08) !important;
	color: #0948ad !important;
	border-color: #0948ad !important;
}

a.wpps-sl--google.wpps-sl-btn--minimal,
.wpps-sl-item--google a.wpps-sl--google.wpps-sl-btn--minimal {
	background: transparent !important;
	color: #0b57d0 !important;
	border: 0 !important;
	box-shadow: none !important;
	font-weight: 600;
}

a.wpps-sl--google.wpps-sl-btn--minimal .wpps-sl-btn__text {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* GitHub */
a.wpps-sl--github.wpps-sl-btn--default,
.wpps-sl-item--github a.wpps-sl--github.wpps-sl-btn--default {
	background: #1f2328 !important;
	color: #f0f6fc !important;
	border: 1px solid #30363d !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

a.wpps-sl--github.wpps-sl-btn--default:hover,
a.wpps-sl--github.wpps-sl-btn--default:focus {
	background: #30363d !important;
	border-color: #8b949e !important;
}

a.wpps-sl--github.wpps-sl-btn--outline,
.wpps-sl-item--github a.wpps-sl--github.wpps-sl-btn--outline {
	background: transparent !important;
	color: #1f2328 !important;
	border: 2px solid #1f2328 !important;
	box-shadow: none !important;
}

a.wpps-sl--github.wpps-sl-btn--outline:hover,
a.wpps-sl--github.wpps-sl-btn--outline:focus {
	background: #f6f8fa !important;
}

a.wpps-sl--github.wpps-sl-btn--minimal,
.wpps-sl-item--github a.wpps-sl--github.wpps-sl-btn--minimal {
	background: transparent !important;
	color: #0969da !important;
	border: 0 !important;
	box-shadow: none !important;
}

/* Facebook */
a.wpps-sl--facebook.wpps-sl-btn--default,
.wpps-sl-item--facebook a.wpps-sl--facebook.wpps-sl-btn--default {
	background: #1877f2 !important;
	color: #fff !important;
	border: 1px solid #166fe5 !important;
	box-shadow: 0 1px 3px rgba(24, 119, 242, 0.4) !important;
}

a.wpps-sl--facebook.wpps-sl-btn--default:hover,
a.wpps-sl--facebook.wpps-sl-btn--default:focus {
	background: #166fe5 !important;
	border-color: #0f5ed7 !important;
}

a.wpps-sl--facebook.wpps-sl-btn--outline,
.wpps-sl-item--facebook a.wpps-sl--facebook.wpps-sl-btn--outline {
	background: transparent !important;
	color: #1877f2 !important;
	border: 2px solid #1877f2 !important;
	box-shadow: none !important;
}

a.wpps-sl--facebook.wpps-sl-btn--outline:hover,
a.wpps-sl--facebook.wpps-sl-btn--outline:focus {
	background: rgba(24, 119, 242, 0.1) !important;
}

a.wpps-sl--facebook.wpps-sl-btn--minimal,
.wpps-sl-item--facebook a.wpps-sl--facebook.wpps-sl-btn--minimal {
	background: transparent !important;
	color: #1877f2 !important;
	border: 0 !important;
	box-shadow: none !important;
}
