/**
 * WP Social Login - Frontend Styles
 *
 * @package WPSocialLogin
 */

/* Container */
.wpsl-container {
	margin: 1.5rem 0;
	width: 100%;
	box-sizing: border-box;
}

.wpsl-align-center {
	text-align: center;
}
.wpsl-align-center .wpsl-buttons-wrapper {
	justify-content: center;
}
.wpsl-align-right {
	text-align: right;
}
.wpsl-align-right .wpsl-buttons-wrapper {
	justify-content: flex-end;
}
.wpsl-align-left .wpsl-buttons-wrapper {
	justify-content: flex-start;
}

/* Separator Line */
.wpsl-separator {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 1.25rem 0;
}

.wpsl-separator-line {
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}

.wpsl-separator-text {
	padding: 0 1rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Buttons Wrapper */
.wpsl-buttons-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

/* Layouts */
.wpsl-layout-horizontal .wpsl-buttons-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.75rem;
}

.wpsl-layout-vertical .wpsl-buttons-wrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.wpsl-layout-vertical .wpsl-btn {
	width: 100%;
	justify-content: center;
}

.wpsl-layout-inline .wpsl-buttons-wrapper {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* Base Button */
.wpsl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 0.925rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	box-sizing: border-box;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid transparent;
	outline: none;
	position: relative;
	user-select: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wpsl-btn:focus-visible {
	box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

.wpsl-btn:active {
	transform: translateY(1px);
}

/* Icon Wrapper */
.wpsl-icon-wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

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

.wpsl-btn-text {
	margin-left: 0.65rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Button Sizes */
.wpsl-size-small .wpsl-btn {
	padding: 0.45rem 0.85rem;
	font-size: 0.825rem;
}
.wpsl-size-small .wpsl-icon-wrapper {
	width: 16px;
	height: 16px;
}
.wpsl-style-icon_only.wpsl-size-small .wpsl-btn {
	padding: 0.45rem;
	width: 34px;
	height: 34px;
}

.wpsl-size-medium .wpsl-btn {
	padding: 0.65rem 1.15rem;
	font-size: 0.925rem;
}
.wpsl-size-medium .wpsl-icon-wrapper {
	width: 20px;
	height: 20px;
}
.wpsl-style-icon_only.wpsl-size-medium .wpsl-btn {
	padding: 0.65rem;
	width: 42px;
	height: 42px;
}

.wpsl-size-large .wpsl-btn {
	padding: 0.85rem 1.4rem;
	font-size: 1.05rem;
}
.wpsl-size-large .wpsl-icon-wrapper {
	width: 24px;
	height: 24px;
}
.wpsl-style-icon_only.wpsl-size-large .wpsl-btn {
	padding: 0.85rem;
	width: 50px;
	height: 50px;
}

/* Shapes */
.wpsl-shape-rounded .wpsl-btn {
	border-radius: 8px;
}

.wpsl-shape-pill .wpsl-btn {
	border-radius: 9999px;
}

.wpsl-shape-square .wpsl-btn {
	border-radius: 0px;
}

/* Icon Only Grid Layout Adjustment */
.wpsl-style-icon_only .wpsl-buttons-wrapper {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.65rem;
}

/* -------------------------------------------------------------
   THEME: BRAND COLORS
-------------------------------------------------------------- */
.wpsl-theme-brand .wpsl-btn-google {
	background-color: #ffffff;
	color: #3c4043;
	border-color: #dadce0;
}
.wpsl-theme-brand .wpsl-btn-google:hover {
	background-color: #f8f9fa;
	border-color: #c6c9ce;
	color: #202124;
}

.wpsl-theme-brand .wpsl-btn-facebook {
	background-color: #1877f2;
	color: #ffffff;
}
.wpsl-theme-brand .wpsl-btn-facebook:hover {
	background-color: #166fe5;
}

.wpsl-theme-brand .wpsl-btn-apple {
	background-color: #000000;
	color: #ffffff;
}
.wpsl-theme-brand .wpsl-btn-apple svg path {
	fill: #ffffff;
}
.wpsl-theme-brand .wpsl-btn-apple:hover {
	background-color: #1f1f1f;
}

.wpsl-theme-brand .wpsl-btn-github {
	background-color: #24292e;
	color: #ffffff;
}
.wpsl-theme-brand .wpsl-btn-github svg path {
	fill: #ffffff;
}
.wpsl-theme-brand .wpsl-btn-github:hover {
	background-color: #1b1f23;
}

.wpsl-theme-brand .wpsl-btn-twitter {
	background-color: #000000;
	color: #ffffff;
}
.wpsl-theme-brand .wpsl-btn-twitter svg path {
	fill: #ffffff;
}
.wpsl-theme-brand .wpsl-btn-twitter:hover {
	background-color: #1f1f1f;
}

.wpsl-theme-brand .wpsl-btn-linkedin {
	background-color: #0a66c2;
	color: #ffffff;
}
.wpsl-theme-brand .wpsl-btn-linkedin:hover {
	background-color: #084e96;
}

.wpsl-theme-brand .wpsl-btn-discord {
	background-color: #5865f2;
	color: #ffffff;
}
.wpsl-theme-brand .wpsl-btn-discord:hover {
	background-color: #4752c4;
}

/* -------------------------------------------------------------
   THEME: MONOCHROME DARK
-------------------------------------------------------------- */
.wpsl-theme-dark .wpsl-btn {
	background-color: #0f172a;
	color: #ffffff;
	border-color: #1e293b;
}
.wpsl-theme-dark .wpsl-btn:hover {
	background-color: #1e293b;
}
.wpsl-theme-dark .wpsl-btn-apple svg path,
.wpsl-theme-dark .wpsl-btn-github svg path,
.wpsl-theme-dark .wpsl-btn-twitter svg path {
	fill: #ffffff;
}

/* -------------------------------------------------------------
   THEME: MONOCHROME LIGHT / OUTLINE
-------------------------------------------------------------- */
.wpsl-theme-light .wpsl-btn {
	background-color: #ffffff;
	color: #1e293b;
	border: 1px solid #cbd5e1;
}
.wpsl-theme-light .wpsl-btn:hover {
	background-color: #f8fafc;
	border-color: #94a3b8;
}

/* GDPR Notice */
.wpsl-gdpr-notice {
	margin-top: 0.75rem;
	color: #64748b;
	font-size: 0.8rem;
	line-height: 1.4;
}

/* -------------------------------------------------------------
   NAV MENU & HEADER ICONS
-------------------------------------------------------------- */
.wpsl-menu-nav-item {
	display: inline-flex;
	align-items: center;
}
.wpsl-menu-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.65rem;
	text-decoration: none;
	font-size: 0.875rem;
}
.wpsl-menu-btn .wpsl-icon-wrapper {
	width: 16px;
	height: 16px;
}

/* -------------------------------------------------------------
   WOOCOMMERCE MY ACCOUNT & CHECKOUT
-------------------------------------------------------------- */
.wpsl-wc-checkout-wrapper {
	margin-bottom: 1.5rem;
	padding: 1.25rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
}

.wpsl-linked-accounts-dashboard {
	margin-top: 1.5rem;
}

.wpsl-linked-table {
	width: 100%;
	margin-top: 1rem;
}

.wpsl-table-icon {
	display: inline-flex;
	width: 24px;
	height: 24px;
	margin-right: 0.75rem;
	vertical-align: middle;
}

.wpsl-table-icon svg {
	width: 100%;
	height: 100%;
}

.wpsl-badge {
	display: inline-block;
	padding: 0.25rem 0.65rem;
	border-radius: 9999px;
	font-size: 0.775rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.wpsl-badge-success {
	background-color: #dcfce7;
	color: #15803d;
}

.wpsl-badge-secondary {
	background-color: #f1f5f9;
	color: #64748b;
}

.wpsl-btn-unlink {
	background-color: #fee2e2 !important;
	color: #b91c1c !important;
	border-color: #fca5a5 !important;
}
.wpsl-btn-unlink:hover {
	background-color: #fecaca !important;
}

/* Loading State */
.wpsl-btn.wpsl-loading {
	opacity: 0.7;
	pointer-events: none;
}
.wpsl-btn.wpsl-loading::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 8px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: wpsl-spin 0.6s linear infinite;
}

@keyframes wpsl-spin {
	to {
		transform: rotate(360deg);
	}
}
