/**
 * DW Social Login - Frontend Styles
 * Author: Dashing Webtech
 * Design System based on Figma Community Social Login Guidelines
 */

/* ==========================================================================
   Wrapper and Container
   ========================================================================== */

.dw-social-login-wrapper,
.wc-social-login {
	margin: 18px 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	display: block !important;
	clear: both !important;
}

.dw-social-login-prompt {
	margin: 0 0 12px 0 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #334155 !important;
	line-height: 1.5 !important;
}

.dw-social-login-btn-group {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 12px !important;
	width: 100% !important;
	box-sizing: border-box !important;
	align-items: center !important;
}

/* ==========================================================================
   Alignment Rules
   ========================================================================== */

/* Left Alignment */
.dw-social-login-wrapper.dw-align-left .dw-social-login-btn-group,
.wc-social-login.dw-align-left .dw-social-login-btn-group {
	justify-content: flex-start !important;
	align-items: center !important;
}

.dw-social-login-wrapper.dw-align-left .dw-social-login-prompt,
.wc-social-login.dw-align-left .dw-social-login-prompt {
	text-align: left !important;
}

.dw-social-login-wrapper.dw-align-left:not(.dw-style-icon_square):not(.dw-style-icon_circle) .dw-social-login-btn-group,
.wc-social-login.dw-align-left:not(.dw-style-icon_square):not(.dw-style-icon_circle) .dw-social-login-btn-group {
	flex-direction: row !important;
	flex-wrap: wrap !important;
	justify-content: flex-start !important;
}

.dw-social-login-wrapper.dw-align-left:not(.dw-style-icon_square):not(.dw-style-icon_circle) .dw-social-btn,
.wc-social-login.dw-align-left:not(.dw-style-icon_square):not(.dw-style-icon_circle) .button-social-login {
	width: auto !important;
	min-width: 200px !important;
	flex: 0 0 auto !important;
}

/* Center Alignment */
.dw-social-login-wrapper.dw-align-center .dw-social-login-btn-group,
.wc-social-login.dw-align-center .dw-social-login-btn-group {
	justify-content: center !important;
	align-items: center !important;
}

.dw-social-login-wrapper.dw-align-center .dw-social-login-prompt,
.wc-social-login.dw-align-center .dw-social-login-prompt {
	text-align: center !important;
}

.dw-social-login-wrapper.dw-align-center:not(.dw-style-icon_square):not(.dw-style-icon_circle) .dw-social-login-btn-group,
.wc-social-login.dw-align-center:not(.dw-style-icon_square):not(.dw-style-icon_circle) .dw-social-login-btn-group {
	flex-direction: row !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
}

.dw-social-login-wrapper.dw-align-center:not(.dw-style-icon_square):not(.dw-style-icon_circle) .dw-social-btn,
.wc-social-login.dw-align-center:not(.dw-style-icon_square):not(.dw-style-icon_circle) .button-social-login {
	width: auto !important;
	min-width: 200px !important;
	flex: 0 0 auto !important;
}

/* Full Width Stretch */
.dw-social-login-wrapper.dw-align-full .dw-social-login-btn-group,
.wc-social-login.dw-align-full .dw-social-login-btn-group {
	width: 100% !important;
}

.dw-social-login-wrapper.dw-align-full .dw-social-login-prompt,
.wc-social-login.dw-align-full .dw-social-login-prompt {
	text-align: left !important;
}

.dw-social-login-wrapper.dw-align-full:not(.dw-style-icon_square):not(.dw-style-icon_circle) .dw-social-login-btn-group,
.wc-social-login.dw-align-full:not(.dw-style-icon_square):not(.dw-style-icon_circle) .dw-social-login-btn-group {
	flex-direction: column !important;
	width: 100% !important;
}

.dw-social-login-wrapper.dw-align-full:not(.dw-style-icon_square):not(.dw-style-icon_circle) .dw-social-btn,
.wc-social-login.dw-align-full:not(.dw-style-icon_square):not(.dw-style-icon_circle) .button-social-login {
	width: 100% !important;
	flex: 1 1 100% !important;
}

/* Icon Only Grid & Circle Buttons: always horizontal flex row */
.dw-style-icon_square .dw-social-login-btn-group,
.dw-style-icon_circle .dw-social-login-btn-group,
.dw-style-square .dw-social-login-btn-group,
.dw-style-circle .dw-social-login-btn-group,
.dw-style-round .dw-social-login-btn-group {
	flex-direction: row !important;
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 12px !important;
	align-items: center !important;
	width: 100% !important;
}

.dw-align-left.dw-style-icon_square .dw-social-login-btn-group,
.dw-align-left.dw-style-icon_circle .dw-social-login-btn-group {
	justify-content: flex-start !important;
}

.dw-align-center.dw-style-icon_square .dw-social-login-btn-group,
.dw-align-center.dw-style-icon_circle .dw-social-login-btn-group,
.dw-align-full.dw-style-icon_square .dw-social-login-btn-group,
.dw-align-full.dw-style-icon_circle .dw-social-login-btn-group {
	justify-content: center !important;
}

/* ==========================================================================
   Base Button Styles
   ========================================================================== */

.dw-social-btn,
.button-social-login {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 12px !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	text-decoration: none !important;
	cursor: pointer !important;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
	box-sizing: border-box !important;
	line-height: 1.2 !important;
	border: 1.5px solid transparent !important;
	margin: 0 !important;
	outline: none !important;
	text-align: center !important;
	vertical-align: middle !important;
	user-select: none !important;
	-webkit-tap-highlight-color: transparent !important;
}

.dw-social-btn:hover,
.button-social-login:hover {
	text-decoration: none !important;
}

/* SVG Logo Strict Containment */
.dw-btn-icon,
.dw-preview-btn-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	overflow: hidden !important;
	position: relative !important;
	margin: 0 !important;
	padding: 0 !important;
}

.dw-btn-icon img,
.dw-btn-icon svg,
.dw-preview-btn-icon img,
.dw-preview-btn-icon svg,
.button-social-login img,
.button-social-login svg,
.dw-social-btn img,
.dw-social-btn svg {
	object-fit: contain !important;
	display: block !important;
	flex-shrink: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	margin: 0 auto !important;
	padding: 0 !important;
}

.dw-btn-text,
.dw-preview-btn-text {
	white-space: nowrap !important;
	display: inline-block !important;
	letter-spacing: -0.01em !important;
	font-weight: 600 !important;
}

/* ==========================================================================
   Button Shapes & Layouts
   ========================================================================== */

/* 1. Wide Rounded Pill */
.dw-style-pill_wide .dw-social-btn,
.dw-style-pill_wide .button-social-login,
.dw-style-pill .dw-social-btn,
.dw-style-pill .button-social-login,
.dw-style-pill_wide .dw-preview-btn {
	border-radius: 9999px !important;
}

/* 2. Rounded Rectangle */
.dw-style-rect_wide .dw-social-btn,
.dw-style-rect_wide .button-social-login,
.dw-style-rect .dw-social-btn,
.dw-style-rect .button-social-login,
.dw-style-rounded .dw-social-btn,
.dw-style-rounded .button-social-login,
.dw-style-rect_wide .dw-preview-btn {
	border-radius: 10px !important;
}

/* 3. Square Icon Tiles (Icon Only Grid) */
.dw-style-icon_square .dw-social-btn,
.dw-style-icon_square .button-social-login,
.dw-style-square .dw-social-btn,
.dw-style-square .button-social-login,
.dw-style-icon_square .dw-preview-btn {
	border-radius: 10px !important;
	padding: 0 !important;
	justify-content: center !important;
	align-items: center !important;
}

.dw-style-icon_square .dw-btn-text,
.dw-style-square .dw-btn-text,
.dw-style-icon_square .dw-preview-btn-text {
	display: none !important;
}

/* 4. Circular Icon Buttons (Icon Only Round) */
.dw-style-icon_circle .dw-social-btn,
.dw-style-icon_circle .button-social-login,
.dw-style-circle .dw-social-btn,
.dw-style-circle .button-social-login,
.dw-style-round .dw-social-btn,
.dw-style-round .button-social-login,
.dw-style-icon_circle .dw-preview-btn {
	border-radius: 50% !important;
	padding: 0 !important;
	justify-content: center !important;
	align-items: center !important;
	overflow: hidden !important;
}

.dw-style-icon_circle .dw-btn-text,
.dw-style-circle .dw-btn-text,
.dw-style-round .dw-btn-text,
.dw-style-icon_circle .dw-preview-btn-text {
	display: none !important;
}

/* ==========================================================================
   Button Sizes: Large (48px), Medium (42px), Small (36px)
   ========================================================================== */

/* Large Size (48px height) */
.dw-size-large .dw-social-btn,
.dw-size-large .button-social-login,
.dw-size-large .dw-preview-btn {
	min-height: 48px !important;
	height: 48px !important;
	font-size: 15px !important;
	padding: 0 24px !important;
}

.dw-size-large.dw-style-icon_square .dw-social-btn,
.dw-size-large.dw-style-icon_square .button-social-login,
.dw-size-large.dw-style-icon_square .dw-preview-btn,
.dw-size-large.dw-style-icon_circle .dw-social-btn,
.dw-size-large.dw-style-icon_circle .button-social-login,
.dw-size-large.dw-style-icon_circle .dw-preview-btn {
	width: 48px !important;
	height: 48px !important;
	min-width: 48px !important;
	min-height: 48px !important;
	max-width: 48px !important;
	max-height: 48px !important;
	flex: 0 0 48px !important;
	padding: 0 !important;
}

.dw-size-large .dw-btn-icon,
.dw-size-large .dw-preview-btn-icon,
.dw-size-large .dw-btn-icon img,
.dw-size-large .dw-btn-icon svg,
.dw-size-large .dw-preview-btn-icon img,
.dw-size-large .dw-preview-btn-icon svg {
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
	min-height: 22px !important;
	max-width: 22px !important;
	max-height: 22px !important;
}

/* Medium Size (42px height) */
.dw-size-medium .dw-social-btn,
.dw-size-medium .button-social-login,
.dw-size-medium .dw-preview-btn {
	min-height: 42px !important;
	height: 42px !important;
	font-size: 14px !important;
	padding: 0 18px !important;
}

.dw-size-medium.dw-style-icon_square .dw-social-btn,
.dw-size-medium.dw-style-icon_square .button-social-login,
.dw-size-medium.dw-style-icon_square .dw-preview-btn,
.dw-size-medium.dw-style-icon_circle .dw-social-btn,
.dw-size-medium.dw-style-icon_circle .button-social-login,
.dw-size-medium.dw-style-icon_circle .dw-preview-btn {
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	min-height: 42px !important;
	max-width: 42px !important;
	max-height: 42px !important;
	flex: 0 0 42px !important;
	padding: 0 !important;
}

.dw-size-medium .dw-btn-icon,
.dw-size-medium .dw-preview-btn-icon,
.dw-size-medium .dw-btn-icon img,
.dw-size-medium .dw-btn-icon svg,
.dw-size-medium .dw-preview-btn-icon img,
.dw-size-medium .dw-preview-btn-icon svg {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	max-width: 20px !important;
	max-height: 20px !important;
}

/* Small Size (36px height) */
.dw-size-small .dw-social-btn,
.dw-size-small .button-social-login,
.dw-size-small .dw-preview-btn {
	min-height: 36px !important;
	height: 36px !important;
	font-size: 13px !important;
	padding: 0 14px !important;
}

.dw-size-small.dw-style-icon_square .dw-social-btn,
.dw-size-small.dw-style-icon_square .button-social-login,
.dw-size-small.dw-style-icon_square .dw-preview-btn,
.dw-size-small.dw-style-icon_circle .dw-social-btn,
.dw-size-small.dw-style-icon_circle .button-social-login,
.dw-size-small.dw-style-icon_circle .dw-preview-btn {
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
	flex: 0 0 36px !important;
	padding: 0 !important;
}

.dw-size-small .dw-btn-icon,
.dw-size-small .dw-preview-btn-icon,
.dw-size-small .dw-btn-icon img,
.dw-size-small .dw-btn-icon svg,
.dw-size-small .dw-preview-btn-icon img,
.dw-size-small .dw-preview-btn-icon svg {
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	min-height: 18px !important;
	max-width: 18px !important;
	max-height: 18px !important;
}

/* ==========================================================================
   Themes & Color Palettes
   ========================================================================== */

/* 1. White / Clean Light Theme (Reference Standard) */
.dw-theme-white .dw-social-btn,
.dw-theme-white .button-social-login,
.dw-theme-white .dw-preview-btn {
	background: #ffffff !important;
	color: #1f2937 !important;
	border: 1.5px solid #e5e7eb !important;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06) !important;
}

.dw-theme-white .dw-social-btn:hover,
.dw-theme-white .button-social-login:hover,
.dw-theme-white .dw-preview-btn:hover {
	background: #f9fafb !important;
	border-color: #cbd5e1 !important;
	color: #111827 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 14px -1px rgba(0, 0, 0, 0.1) !important;
}

/* 2. Brand Theme */
.dw-theme-brand .dw-btn-google,
.dw-theme-brand .button-social-login-google {
	background: #ffffff !important;
	color: #3c4043 !important;
	border: 1.5px solid #dadce0 !important;
	box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08) !important;
}

.dw-theme-brand .dw-btn-apple,
.dw-theme-brand .button-social-login-apple {
	background: #000000 !important;
	color: #ffffff !important;
	border: 1.5px solid #000000 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}
.dw-theme-brand .dw-btn-apple img,
.dw-theme-brand .button-social-login-apple img {
	filter: brightness(0) invert(1) !important;
}

.dw-theme-brand .dw-btn-microsoft,
.dw-theme-brand .button-social-login-microsoft {
	background: #ffffff !important;
	color: #2f2f2f !important;
	border: 1.5px solid #e5e7eb !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.dw-theme-brand .dw-btn-facebook,
.dw-theme-brand .button-social-login-facebook {
	background: #1877f2 !important;
	color: #ffffff !important;
	border: 1.5px solid #1877f2 !important;
	box-shadow: 0 1px 3px rgba(24, 119, 242, 0.25) !important;
}

.dw-theme-brand .dw-btn-twitter,
.dw-theme-brand .button-social-login-twitter {
	background: #000000 !important;
	color: #ffffff !important;
	border: 1.5px solid #000000 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}
.dw-theme-brand .dw-btn-twitter img,
.dw-theme-brand .button-social-login-twitter img {
	filter: brightness(0) invert(1) !important;
}

.dw-theme-brand .dw-btn-linkedin,
.dw-theme-brand .button-social-login-linkedin {
	background: #0a66c2 !important;
	color: #ffffff !important;
	border: 1.5px solid #0a66c2 !important;
	box-shadow: 0 1px 3px rgba(10, 102, 194, 0.25) !important;
}

.dw-theme-brand .dw-btn-amazon,
.dw-theme-brand .button-social-login-amazon {
	background: #232f3e !important;
	color: #ffffff !important;
	border: 1.5px solid #232f3e !important;
	box-shadow: 0 1px 3px rgba(35, 47, 62, 0.25) !important;
}

.dw-theme-brand .dw-btn-paypal,
.dw-theme-brand .button-social-login-paypal {
	background: #003087 !important;
	color: #ffffff !important;
	border: 1.5px solid #003087 !important;
	box-shadow: 0 1px 3px rgba(0, 48, 135, 0.25) !important;
}

.dw-theme-brand .dw-social-btn:hover,
.dw-theme-brand .button-social-login:hover {
	opacity: 0.92 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15) !important;
}

/* 3. Dark Theme */
.dw-theme-dark .dw-social-btn,
.dw-theme-dark .button-social-login {
	background: #0f172a !important;
	color: #f8fafc !important;
	border: 1.5px solid #334155 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.dw-theme-dark .dw-social-btn:hover,
.dw-theme-dark .button-social-login:hover {
	background: #1e293b !important;
	border-color: #475569 !important;
	color: #ffffff !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4) !important;
}

.dw-theme-dark .dw-btn-apple img,
.dw-theme-dark .button-social-login-apple img,
.dw-theme-dark .dw-btn-twitter img,
.dw-theme-dark .button-social-login-twitter img {
	filter: brightness(0) invert(1) !important;
}

/* 4. Royal Blue Theme */
.dw-theme-blue .dw-social-btn,
.dw-theme-blue .button-social-login {
	background: #2563eb !important;
	color: #ffffff !important;
	border: 1.5px solid #1d4ed8 !important;
	box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3) !important;
}

.dw-theme-blue .dw-social-btn:hover,
.dw-theme-blue .button-social-login:hover {
	background: #1d4ed8 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 14px rgba(37, 99, 235, 0.4) !important;
}

.dw-theme-blue .dw-btn-apple img,
.dw-theme-blue .button-social-login-apple img,
.dw-theme-blue .dw-btn-twitter img,
.dw-theme-blue .button-social-login-twitter img {
	filter: brightness(0) invert(1) !important;
}

