/*
 * Digitex Social Login - front end.
 * Tweak the look from your theme with these variables, e.g.
 *   .dsl-social { --dsl-radius: 999px; --dsl-height: 52px; }
 */

.dsl-social {
	--dsl-radius: 6px;
	--dsl-gap: 10px;
	--dsl-height: 48px;
	clear: both;
	margin: 22px 0 0;
	text-align: center;
}

.dsl-social *,
.dsl-social *::before,
.dsl-social *::after {
	box-sizing: border-box;
}

/* "or" divider */
.dsl-social .dsl-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	color: #6b7280;
	font-size: 13px;
	line-height: 1;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.dsl-social .dsl-divider::before,
.dsl-social .dsl-divider::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: currentColor;
	opacity: .3;
}

/* Buttons */
.dsl-social .dsl-buttons {
	display: flex;
	flex-direction: column;
	gap: var(--dsl-gap);
}

.dsl-social.dsl-layout-inline .dsl-buttons {
	flex-direction: row;
	flex-wrap: wrap;
}

.dsl-social.dsl-layout-inline .dsl-btn {
	flex: 1 1 calc(50% - var(--dsl-gap));
	min-width: 160px;
	gap: 8px;
	padding-right: 10px;
	padding-left: 10px;
	font-size: 14px;
}

.dsl-social .dsl-btn,
.dsl-social a.dsl-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: var(--dsl-height);
	margin: 0;
	padding: 10px 16px;
	border: 1px solid transparent;
	border-radius: var(--dsl-radius);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.dsl-social .dsl-btn__icon {
	display: inline-flex;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
}

.dsl-social .dsl-btn__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Google: white button, per Google's branding guidelines */
.dsl-social .dsl-btn--google,
.dsl-social a.dsl-btn--google {
	background: #fff;
	border-color: #dadce0;
	color: #3c4043;
}

.dsl-social a.dsl-btn--google:hover,
.dsl-social a.dsl-btn--google:focus {
	background: #f8f9fa;
	border-color: #c6cacf;
	color: #202124;
	box-shadow: 0 1px 3px rgba(60, 64, 67, .25);
}

/* Facebook: brand blue */
.dsl-social .dsl-btn--facebook,
.dsl-social a.dsl-btn--facebook {
	background: #1877f2;
	border-color: #1877f2;
	color: #fff;
}

.dsl-social a.dsl-btn--facebook:hover,
.dsl-social a.dsl-btn--facebook:focus {
	background: #166fe0;
	border-color: #166fe0;
	color: #fff;
	box-shadow: 0 1px 3px rgba(24, 119, 242, .45);
}

.dsl-social a.dsl-btn:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 2px;
}

.dsl-social .dsl-note {
	margin: 14px 0 0;
	color: #6b7280;
	font-size: 12.5px;
	line-height: 1.5;
}

/* Standalone block under the wp-login.php form */
.dsl-social.dsl-context-wplogin {
	max-width: 320px;
	margin: 0 auto 28px;
	padding: 0;
}

/* Notices (when the theme has no WooCommerce styles, e.g. the shortcode on a normal page) */
.dsl-notice {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-left: 4px solid #b91c1c;
	background: #fef2f2;
	color: #7f1d1d;
	list-style: none;
}

.dsl-notice.woocommerce-message {
	border-left-color: #15803d;
	background: #f0fdf4;
	color: #14532d;
}

/* Connected accounts on the Account details page */
.dsl-connected {
	margin: 28px 0 24px;
	padding: 18px 20px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.dsl-connected legend {
	padding: 0 8px;
	font-weight: 700;
}

.dsl-connected__intro {
	margin: 0 0 12px;
	color: #6b7280;
	font-size: 14px;
}

.dsl-connected__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dsl-connected__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-top: 1px solid #f1f2f4;
}

.dsl-connected__item:first-child {
	border-top: 0;
}

.dsl-connected__icon {
	display: inline-flex;
	flex: 0 0 34px;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 7px;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	background: #fff;
}

.dsl-connected__icon--facebook {
	border-color: #1877f2;
	background: #1877f2;
}

.dsl-connected__icon svg {
	width: 100%;
	height: 100%;
}

.dsl-connected__icon--facebook svg {
	width: 130%;
	height: 130%;
}

.dsl-connected__name {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.dsl-connected__status {
	color: #6b7280;
	font-size: 13px;
}

.dsl-connected__hint {
	max-width: 230px;
	color: #6b7280;
	font-size: 12.5px;
	line-height: 1.4;
}

@media (max-width: 480px) {
	.dsl-connected__item {
		flex-wrap: wrap;
	}

	.dsl-connected__action {
		margin-left: 48px;
	}
}

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