/**
 * Login Social — botões (.dsh-social), divisor "ou", telas (.dsh-social-page) e "Contas conectadas".
 * Mesma linguagem visual das telas de acesso (auth-screens-front.css): tokens --dsh-auth-* quando existirem
 * (o bloco de botões herda do .dsh-auth), com fallback próprio.
 */
.dsh-social,
.dsh-social-page,
.dsh-social-embed,
.dsh-social-connected {
	--dsh-sl-ink: var(--dsh-auth-ink, #15181c);
	--dsh-sl-muted: var(--dsh-auth-muted, #626873);
	--dsh-sl-line: var(--dsh-auth-line, #d5d9df);
	--dsh-sl-field: var(--dsh-auth-field, #fff);
	--dsh-sl-accent: var(--dsh-auth-accent, #15181c);
	--dsh-sl-radius: var(--dsh-auth-radius, 10px);
	/* Telas do fluxo (cartões, botões, avisos). O checkout redefine estes tokens em `.dshe-sl-embed`. */
	/* Escala vertical única: selo → título → texto → aviso → bloco → ação → reenvio → rodapé. */
	--dsh-sl-gap-xs: 6px;
	--dsh-sl-gap-sm: 10px;
	--dsh-sl-gap-md: 16px;
	--dsh-sl-gap-lg: 24px;
	--dsh-sl-gap-xl: 32px;
	--dsh-sl-card: #fff;
	--dsh-sl-soft: color-mix(in srgb, var(--dsh-sl-ink) 4%, var(--dsh-sl-field));
	--dsh-sl-accent-hover: color-mix(in srgb, var(--dsh-sl-accent) 86%, #000);
	--dsh-sl-err-ink: #9b1c1c;
	--dsh-sl-err-bg: #fdf1f1;
	--dsh-sl-err-line: #f4c7c7;
	--dsh-sl-err-accent: #c62828;
	--dsh-sl-ok-ink: #0a6b37;
	--dsh-sl-ok-bg: #eefaf2;
	--dsh-sl-ok-line: #c6ead4;
}
.dsh-social *, .dsh-social *::before, .dsh-social *::after,
.dsh-social-embed *, .dsh-social-embed *::before, .dsh-social-embed *::after,
.dsh-social-page *, .dsh-social-page *::before, .dsh-social-page *::after { box-sizing: border-box; }

/* ------------------------------ Botões ------------------------------ */
.dsh-social { display: flex; flex-direction: column; gap: 10px; margin: 0 0 4px; }
.dsh-social .dsh-social__btn,
.dsh-social .dsh-social__btn:is(:hover, :focus, :visited) {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid var(--dsh-sl-line);
	border-radius: var(--dsh-sl-radius);
	background: var(--dsh-sl-btn-bg, var(--dsh-sl-field));
	color: var(--dsh-sl-btn-ink, var(--dsh-sl-ink));
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, box-shadow .2s;
	border-radius: 4px;
}
.dsh-social .dsh-social__btn:hover { border-color: var(--dsh-sl-btn-ink, var(--dsh-sl-ink)); background: color-mix(in srgb, var(--dsh-sl-btn-ink, var(--dsh-sl-ink)) 6%, var(--dsh-sl-btn-bg, var(--dsh-sl-field))); }
/* Fundo definido no admin: borda acompanha o fundo. */
.dsh-social .dsh-social__btn[style*="--dsh-sl-btn-bg"]:not(:hover) { border-color: var(--dsh-sl-btn-border, var(--dsh-sl-btn-bg)); }
/* Borda definida no admin (geral ou do provedor) vale também sem cor de fundo. */
.dsh-social .dsh-social__btn[style*="--dsh-sl-btn-border"]:not(:hover) { border-color: var(--dsh-sl-btn-border); }
/* Modo "Em linha": os botões dividem o espaço e quebram sozinhos quando não cabem (mínimo de 160px cada). */
.dsh-social.dsh-social--inline { flex-direction: row; flex-wrap: wrap; }
.dsh-social.dsh-social--inline .dsh-social__btn,
.dsh-social.dsh-social--inline .dsh-social__btn:is(:hover, :focus, :visited) { flex: 1 1 160px; width: auto; min-width: 160px; }
/* Botão extra (ex.: "Conta {site}" do checkout) como <button>: mesma aparência dos links. */
.dsh-social button.dsh-social__btn { font-family: inherit; -webkit-appearance: none; appearance: none; }
.dsh-social__btn:focus-visible { outline: 2px solid var(--dsh-sl-accent); outline-offset: 2px; }
/* Variante "contorno" (render com variant=outline; ex.: etapa Contato do checkout): botão claro com borda; o ícone
   leva a cor da marca (--dsh-sl-accent) e o hover pinta o botão (--dsh-sl-hover-bg / --dsh-sl-hover-ink). As três
   variáveis vêm no style de cada botão (DSH_Social_Login::outline_style). */
.dsh-social.dsh-social--outline .dsh-social__btn,
.dsh-social.dsh-social--outline .dsh-social__btn:is(:focus, :visited) {
	border-color: var(--dsh-sl-outline-line, var(--dsh-sl-line));
	background: var(--dsh-sl-outline-bg, #fff);
	color: var(--dsh-sl-outline-ink, var(--dsh-sl-ink));
}
.dsh-social.dsh-social--outline .dsh-social__btn :is(.dsh-social__icon, .dsh-i) { color: var(--dsh-sl-accent, currentColor); fill: currentColor; transition: color .2s; }
.dsh-social.dsh-social--outline .dsh-social__btn:hover {
	border-color: var(--dsh-sl-hover-bg, var(--dsh-sl-ink));
	background: var(--dsh-sl-hover-bg, var(--dsh-sl-ink));
	color: var(--dsh-sl-hover-ink, #fff);
}
.dsh-social.dsh-social--outline .dsh-social__btn:hover :is(.dsh-social__icon, .dsh-i) { color: currentColor; }
.dsh-social__icon { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }
img.dsh-social__icon { object-fit: contain; }


.dsh-social__divider,
.dsh-social-sep {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 12px 0 16px;
	color: var(--dsh-sl-muted);
	font-size: 13px;
	text-transform: lowercase;
}
.dsh-social__divider::before, .dsh-social__divider::after,
.dsh-social-sep::before, .dsh-social-sep::after { content: ""; flex: 1; height: 1px; background: var(--dsh-sl-line); }

/* ------------------------------ Telas ------------------------------ */
.dsh-social-page { display: flex; justify-content: center; padding: 40px 16px 64px; color: var(--dsh-sl-ink); }
.dsh-social-card {
	width: 100%;
	max-width: 520px;
	padding: 28px;
	border: 1px solid var(--dsh-sl-line);
	border-radius: calc(var(--dsh-sl-radius) + 4px);
	background: #fff;
}
/* Cabeçalho da etapa: selo da rede (+ e-mail), título curto e uma linha de explicação. */
.dsh-social-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--dsh-sl-gap-sm); margin-bottom: var(--dsh-sl-gap-lg); }
.dsh-social-ident { display: flex; flex-wrap: wrap; align-items: center; gap: var(--dsh-sl-gap-xs) 8px; margin-bottom: var(--dsh-sl-gap-xs); }
.dsh-social-badge,
.dsh-social-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	min-height: 32px;
	padding: 3px 12px 3px 4px;
	border: 1px solid var(--dsh-sl-line);
	border-radius: 999px;
	background: var(--dsh-sl-card);
	color: var(--dsh-sl-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}
.dsh-social-badge__ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--dsh-sl-soft); }
.dsh-social-badge__ico .dsh-social__icon { width: 14px; height: 14px; }
.dsh-social-badge--google .dsh-social__icon { color: #db4437; }
.dsh-social-badge--facebook .dsh-social__icon { color: #1877f2; }
.dsh-social-badge:not(:has(.dsh-social-badge__ico)) { padding-left: 12px; }
.dsh-social-chip { padding: 3px 12px; background: var(--dsh-sl-soft); color: var(--dsh-sl-muted); font-weight: 600; }
.dsh-social-chip .dsh-i { flex-shrink: 0; font-size: 14px; }
.dsh-social-chip__text { min-width: 0; overflow-wrap: anywhere; }
.dsh-social-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dsh-social-title { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--dsh-sl-ink); }
.dsh-social-subtitle { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--dsh-sl-ink); }
.dsh-social-text { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--dsh-sl-muted); }
.dsh-social-head .dsh-social-text { max-width: 58ch; margin: 0; }
.dsh-social-text strong { color: var(--dsh-sl-ink); overflow-wrap: anywhere; }

/* Formulários e campos (mesmos campos nas telas e no checkout; o checkout só troca as variáveis). */
.dsh-social-form { display: flex; flex-direction: column; gap: var(--dsh-sl-gap-md); margin: 0 0 var(--dsh-sl-gap-sm); }
.dsh-social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 14px 16px; }
.dsh-social-row { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.dsh-social-row > label { font-size: 14px; font-weight: 600; color: var(--dsh-sl-ink); }
:is(.dsh-social-page, .dsh-social-embed) input:is([type="text"], [type="email"], [type="tel"], [type="password"]) {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--dsh-sl-line);
	border-radius: var(--dsh-sl-radius);
	background: var(--dsh-sl-field);
	color: var(--dsh-sl-ink);
	font-size: 16px;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
:is(.dsh-social-page, .dsh-social-embed) input[readonly] { background: var(--dsh-sl-soft); color: var(--dsh-sl-muted); }
:is(.dsh-social-page, .dsh-social-embed) input:focus { border-color: var(--dsh-sl-focus, var(--dsh-sl-accent)); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--dsh-sl-focus, var(--dsh-sl-accent)) 16%, transparent); }
:is(.dsh-social-page, .dsh-social-embed) input[aria-invalid="true"] { border-color: var(--dsh-sl-err-accent); }
:is(.dsh-social-page, .dsh-social-embed) input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--dsh-sl-err-accent) 18%, transparent); }
.dsh-social-hint { display: block; font-size: 13px; line-height: 1.45; color: var(--dsh-sl-muted); }
.dsh-social-legal { margin: 0; font-size: 13px; line-height: 1.5; color: var(--dsh-sl-muted); }
.dsh-social-legal a { color: inherit; text-decoration: underline; }

/* Senha com botão de mostrar/ocultar (olho; ícones da biblioteca eye / eye-slash, como no login). */
.dsh-social-pass { position: relative; display: block; }
:is(.dsh-social-page, .dsh-social-embed) .dsh-social-pass input:is([type="password"], [type="text"]) { padding-right: 52px; }
.dsh-social-pass .dsh-social-pass__eye {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	min-width: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0 var(--dsh-sl-radius) var(--dsh-sl-radius) 0;
	background: transparent;
	color: var(--dsh-sl-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.dsh-social-pass .dsh-social-pass__eye:hover { color: var(--dsh-sl-ink); }
.dsh-social-pass .dsh-social-pass__eye:focus-visible { outline: 2px solid var(--dsh-sl-focus, var(--dsh-sl-accent)); outline-offset: -4px; }
.dsh-social-pass .dsh-social-pass__eye .dsh-icon-eye-slash,
.dsh-social-pass .dsh-social-pass__eye[aria-pressed="true"] .dsh-icon-eye { display: none; }
.dsh-social-pass .dsh-social-pass__eye[aria-pressed="true"] .dsh-icon-eye-slash { display: inline-block; }
.dsh-social-meta { display: flex; justify-content: flex-start; margin-top: calc(var(--dsh-sl-gap-xs) * -1); }

/* Código de 6 dígitos: UM input (aceita colar e o preenchimento automático), desenhado como 6 posições só com CSS.
   Cada posição = 1ch (o dígito) + .55ch de respiro; o traço de baixo acompanha o dígito. */
.dsh-social-row--code {
	align-items: center;
	gap: 0;
	padding: var(--dsh-sl-gap-lg) var(--dsh-sl-gap-md) var(--dsh-sl-gap-md);
	border: 1px solid var(--dsh-sl-line);
	border-radius: calc(var(--dsh-sl-radius) + 2px);
	background: var(--dsh-sl-card);
	text-align: center;
}
/* O título da etapa já diz o que digitar: o rótulo fica só para leitor de tela (continua associado ao input). */
.dsh-social-row--code > label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dsh-social-row--code .dsh-social-hint { margin-top: var(--dsh-sl-gap-xs); text-align: center; }
:is(.dsh-social-page, .dsh-social-embed) input.dsh-social-code {
	--dsh-sl-code-line: var(--dsh-sl-ink); /* Traços pretos (cor do texto); em foco, a cor de destaque. */
	caret-color: var(--dsh-sl-focus, var(--dsh-sl-accent));
	box-sizing: content-box;
	display: block;
	width: calc(6 * 1.55ch - .55ch);
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	padding: 6px 0 16px;
	border: 0;
	border-radius: 0;
	background: repeating-linear-gradient(90deg, var(--dsh-sl-code-line) 0 1ch, transparent 1ch 1.55ch) 0 calc(100% - 4px) / calc(6 * 1.55ch - .55ch) 3px no-repeat;
	color: var(--dsh-sl-ink);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 36px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: .55ch;
	line-height: 1.1;
	text-align: left;
	text-indent: 0;
	box-shadow: none;
}
:is(.dsh-social-page, .dsh-social-embed) input.dsh-social-code:focus { --dsh-sl-code-line: var(--dsh-sl-focus, var(--dsh-sl-accent)); border: 0; box-shadow: none; }
:is(.dsh-social-page, .dsh-social-embed) input.dsh-social-code[aria-invalid="true"] { --dsh-sl-code-line: var(--dsh-sl-err-accent); border: 0; }
.dsh-social-row .dsh-social-feedback { align-self: stretch; margin: var(--dsh-sl-gap-sm) 0 0; text-align: left; }

/* Opções da tela "Já existe uma conta": cartões lado a lado (50% cada) que quebram para uma coluna pelo ESPAÇO DO
   CONTÊINER (auto-fit + minmax, não pela largura da tela). Mesma altura; a ação fica alinhada na base. */
.dsh-social-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); gap: 16px; align-items: stretch; margin: 0 0 4px; }
.dsh-social-option {
	display: flex;
	flex-direction: column;
	gap: var(--dsh-sl-gap-md);
	min-width: 0;
	margin: 0;
	padding: 20px;
	border: 1px solid var(--dsh-sl-line);
	border-radius: calc(var(--dsh-sl-radius) + 2px);
	background: var(--dsh-sl-card);
}
.dsh-social-option__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: var(--dsh-sl-gap-sm); }
/* Ícone decorativo no topo do cartão (solid), em quadrado suave com a cor de destaque. */
.dsh-social-option__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin-bottom: var(--dsh-sl-gap-xs);
	border-radius: var(--dsh-sl-radius);
	background: color-mix(in srgb, var(--dsh-sl-accent) 10%, var(--dsh-sl-card));
	color: var(--dsh-sl-accent);
	font-size: 20px;
	line-height: 1;
}
.dsh-social-option .dsh-social-option__title { margin: 0; color: var(--dsh-sl-ink); font-size: 16px; font-weight: 800; line-height: 1.25; }
.dsh-social-option__text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--dsh-sl-muted); }
.dsh-social-option .dsh-social-row { margin-top: var(--dsh-sl-gap-xs); }
.dsh-social-option__text strong { color: var(--dsh-sl-ink); overflow-wrap: anywhere; }
.dsh-social-option .dsh-social-actions { margin-top: auto; }

/* Ações e botões. Primário = preenchido; secundário (--outline) = contorno. Estados: hover, foco visível, desabilitado e
   "enviando" (.is-busy, definido por social-login.js ao enviar: evita duplo envio). Tudo por variáveis (--dsh-sl-b-*), para o
   checkout só precisar reafirmar as propriedades que o reset de botões dele anula. */
.dsh-social-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--dsh-sl-gap-sm) var(--dsh-sl-gap-md); margin-top: var(--dsh-sl-gap-xs); }
.dsh-social-submit {
	--dsh-sl-b-bg: var(--dsh-sl-accent);
	--dsh-sl-b-ink: #fff;
	--dsh-sl-b-line: var(--dsh-sl-accent);
}
.dsh-social-submit:hover { --dsh-sl-b-bg: var(--dsh-sl-accent-hover); --dsh-sl-b-line: var(--dsh-sl-accent-hover); }
.dsh-social-submit--outline {
	--dsh-sl-b-bg: transparent;
	--dsh-sl-b-ink: var(--dsh-sl-accent);
	--dsh-sl-b-line: var(--dsh-sl-accent);
}
.dsh-social-submit--outline:hover { --dsh-sl-b-bg: color-mix(in srgb, var(--dsh-sl-accent) 9%, transparent); --dsh-sl-b-line: var(--dsh-sl-accent); }
.dsh-social-submit,
.dsh-social-submit:is(:hover, :focus, :active) {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 var(--dsh-sl-btn-basis, 100%);
	width: auto;
	min-width: 0;
	min-height: 48px;
	margin: 0;
	padding: 0 22px;
	border: 2px solid var(--dsh-sl-b-line); /* Mesma espessura no primário e no contorno: peso visual igual. */
	border-radius: var(--dsh-sl-radius);
	background: var(--dsh-sl-b-bg);
	box-shadow: none;
	color: var(--dsh-sl-b-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.dsh-social-submit:focus-visible { outline: 3px solid color-mix(in srgb, var(--dsh-sl-focus, var(--dsh-sl-accent)) 45%, transparent); outline-offset: 2px; }
.dsh-social-submit:is(:disabled, [aria-disabled="true"]) { opacity: .5; cursor: not-allowed; }
.dsh-social-submit.is-busy { cursor: progress; pointer-events: none; }
/* Estado "enviando": o JS acrescenta o ícone solid spinner-scale (.dsh-social-spin) ao botão/link; mesmo padrão em todo o fluxo. */
.dsh-social-spin { flex: 0 0 auto; font-size: 16px; animation: dsh-sl-spin .8s linear infinite; }
.dsh-social-link.is-busy { pointer-events: none; cursor: progress; }
@keyframes dsh-sl-spin { to { transform: rotate(360deg); } }

/* Ações secundárias em texto (esqueci a senha, reenviar, usar outro e-mail, sair do fluxo): alvo de toque de 44px. */
.dsh-social-link,
.dsh-social-link:is(:hover, :focus, :visited) {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 2px 4px;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--dsh-sl-link, var(--dsh-sl-muted));
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.dsh-social-link:hover { color: var(--dsh-sl-ink); }
.dsh-social-link:focus-visible { outline: 2px solid var(--dsh-sl-focus, var(--dsh-sl-accent)); outline-offset: 2px; border-radius: 4px; }
.dsh-social-link:disabled { color: var(--dsh-sl-muted); text-decoration: none; cursor: not-allowed; opacity: .75; }
/* Reenvio: texto corrido centralizado com o link no fim (quebra em duas linhas no celular, ainda centralizado). */
.dsh-social-actions--pair { --dsh-sl-btn-basis: 13rem; }
.dsh-social-mailbtn .dsh-i { font-size: 16px; }
.dsh-social-resend { margin: var(--dsh-sl-gap-md) 0 0; text-align: center; }
.dsh-social-resend__line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 6px; max-width: 46ch; margin: 0 auto; }
.dsh-social-resend__label { color: var(--dsh-sl-muted); font-size: 14px; line-height: 1.5; }
.dsh-social-resent { display: block; min-height: 1.2em; margin-top: 2px; color: var(--dsh-sl-ok-ink); font-size: 13px; font-weight: 600; }
.dsh-social-resent:empty { min-height: 0; margin: 0; }
/* Link dentro de um texto de apoio (ex.: "Esqueceu? Receba um código por e-mail"). */
.dsh-social-link.dsh-social-link--inline,
.dsh-social-link.dsh-social-link--inline:is(:hover, :focus, :visited) { display: inline; min-height: 0; padding: 0; font-size: inherit; line-height: inherit; }
.dsh-social-sepchar { color: var(--dsh-sl-line); user-select: none; }
/* Saída do fluxo ("Cancelar e voltar" / "Preencher meus dados manualmente"): sempre no rodapé da etapa. */
.dsh-social-foot { margin: 14px 0 0; padding-top: 6px; text-align: center; }
.dsh-social-embed .dsh-social-foot { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--dsh-sl-line); text-align: left; }
.dsh-social-foot .dsh-social-link { color: var(--dsh-sl-muted); font-weight: 500; }

/* Avisos (erro / sucesso / info): ícone + texto. */
.dsh-social-feedback { display: flex; flex-direction: column; gap: var(--dsh-sl-gap-sm); margin-bottom: var(--dsh-sl-gap-md); }
.dsh-social-msg {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 var(--dsh-sl-gap-md);
	padding: 12px 14px;
	border-radius: var(--dsh-sl-radius);
	font-size: 14px;
	line-height: 1.5;
}
.dsh-social-feedback .dsh-social-msg { margin: 0; }
.dsh-social-msg__ico { flex-shrink: 0; margin-top: 2px; font-size: 16px; }
.dsh-social-msg__text { min-width: 0; overflow-wrap: anywhere; }
.dsh-social-msg--error { border: 1px solid var(--dsh-sl-err-line); background: var(--dsh-sl-err-bg); color: var(--dsh-sl-err-ink); }
.dsh-social-msg--success { border: 1px solid var(--dsh-sl-ok-line); background: var(--dsh-sl-ok-bg); color: var(--dsh-sl-ok-ink); }
.dsh-social-msg--notice { border: 1px solid var(--dsh-sl-line); background: #f6f7f9; color: var(--dsh-sl-ink); }

/* --------------- Bloco abaixo dos links ("ou" + botões) --------------- */
.dsh-social-block { margin: 4px 0 0; }
.dsh-social-block .dsh-social__divider { margin: 12px 0 14px; }
.dsh-social-block .dsh-social { margin: 0; }

/* -------------------- Contas externas conectadas -------------------- */
.dsh-social-connected {
	--dsh-sl-danger: #c62828;
	--dsh-sl-soft: color-mix(in srgb, var(--dsh-sl-ink) 4%, var(--dsh-sl-field));
	margin: 32px 0 0;
	padding: 24px;
	border: 1px solid var(--dsh-sl-line);
	border-radius: var(--dsh-sl-radius);
	background: var(--dsh-sl-field);
	color: var(--dsh-sl-ink);
}
.dsh-social-connected .dsh-social-connected__head { margin: 0 0 18px; }
.dsh-social-connected .dsh-social-connected__title { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.dsh-social-connected .dsh-social-connected__text { margin: 0; color: var(--dsh-sl-muted); font-size: 14px; line-height: 1.5; }
.dsh-social-connected .dsh-social-connected__list { display: flex; flex-direction: column; margin: 0; padding: 0; border: 1px solid var(--dsh-sl-line); border-radius: var(--dsh-sl-radius); list-style: none; overflow: hidden; }
.dsh-social-connected__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 14px 16px; }
.dsh-social-connected__row + .dsh-social-connected__row { border-top: 1px solid var(--dsh-sl-line); }
.dsh-social-connected__prov { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.dsh-social-connected__logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--dsh-sl-soft); }
.dsh-social-connected__logo .dsh-social__icon { width: 22px; height: 22px; }
.dsh-social-connected__prov--google .dsh-social__icon { color: #db4437; }
.dsh-social-connected__prov--facebook .dsh-social__icon { color: #1877f2; }
.dsh-social-connected__name { display: flex; flex-direction: column; gap: 3px; font-size: 15px; font-weight: 600; line-height: 1.25; }
.dsh-social-connected__status { display: inline-flex; align-items: center; gap: 6px; color: var(--dsh-sl-muted); font-size: 12px; font-weight: 500; }
.dsh-social-connected__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--dsh-sl-line); }
.dsh-social-connected__row.is-linked .dsh-social-connected__status { color: #0a6b37; }
.dsh-social-connected__row.is-linked .dsh-social-connected__status i { background: #16a34a; box-shadow: 0 0 0 3px color-mix(in srgb, #16a34a 18%, transparent); }
.dsh-social-connected__act { flex: 0 0 auto; }

/* Botões outline → preenchidos no hover (Vincular = tinta do site; Desvincular = vermelho; ghost = neutro). */
.dsh-social-connected .dsh-social-connected__btn,
.dsh-social-connected .dsh-social-connected__btn:is(:visited, :focus) {
	--dsh-sl-btn: var(--dsh-sl-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	margin: 0;
	padding: 0 18px;
	border: 1.5px solid var(--dsh-sl-btn);
	border-radius: var(--dsh-sl-radius);
	background: transparent;
	box-shadow: none;
	color: var(--dsh-sl-btn);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.dsh-social-connected .dsh-social-connected__btn-ico { width: 15px; height: 15px; flex: 0 0 15px; fill: currentColor; }
.dsh-social-connected .dsh-social-connected__btn--unlink,
.dsh-social-connected .dsh-social-connected__btn--unlink:is(:visited, :focus) { --dsh-sl-btn: var(--dsh-sl-danger); }
.dsh-social-connected .dsh-social-connected__btn--ghost,
.dsh-social-connected .dsh-social-connected__btn--ghost:is(:visited, :focus) { --dsh-sl-btn: var(--dsh-sl-line); color: var(--dsh-sl-ink); }
.dsh-social-connected .dsh-social-connected__btn:is(:hover, :active),
.dsh-social-connected .dsh-social-connected__btn.is-solid { background: var(--dsh-sl-btn); color: #fff; }
.dsh-social-connected .dsh-social-connected__btn:active { transform: translateY(1px); }
.dsh-social-connected .dsh-social-connected__btn--ghost:is(:hover, :active) { background: var(--dsh-sl-soft); color: var(--dsh-sl-ink); border-color: var(--dsh-sl-ink); }
.dsh-social-connected .dsh-social-connected__btn.is-solid:hover { background: color-mix(in srgb, var(--dsh-sl-btn) 86%, #000); border-color: color-mix(in srgb, var(--dsh-sl-btn) 86%, #000); }
.dsh-social-connected .dsh-social-connected__btn:focus-visible { outline: 2px solid var(--dsh-sl-btn); outline-offset: 2px; }
.dsh-social-connected .dsh-social-connected__btn.is-busy { opacity: .7; pointer-events: none; }
.dsh-social-connected .dsh-social-connected__btn.is-disabled { opacity: .45; cursor: not-allowed; }
.dsh-social-connected .dsh-social-connected__btn.is-disabled:hover { background: transparent; color: var(--dsh-sl-btn); }

/* Diálogo de confirmação sobre overlay com blur. */
.dsh-social-dialog {
	width: min(440px, calc(100vw - 32px));
	max-width: none;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: calc(var(--dsh-sl-radius) + 6px);
	background: transparent;
	color: var(--dsh-sl-ink);
	box-shadow: 0 24px 64px rgba(15, 18, 24, .28);
	overflow: visible;
}
.dsh-social-dialog::backdrop {
	background: rgba(15, 18, 24, .45);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.dsh-social-dialog[open] { animation: dsh-sl-dialog-in .2s cubic-bezier(.16, 1, .3, 1); }
.dsh-social-dialog[open]::backdrop { animation: dsh-sl-fade-in .2s ease-out; }
.dsh-social-dialog.is-closing { animation: dsh-sl-dialog-out .16s ease-in forwards; }
.dsh-social-dialog.is-closing::backdrop { animation: dsh-sl-fade-out .16s ease-in forwards; }
.dsh-social-dialog__box { padding: 28px; border-radius: inherit; background: var(--dsh-sl-field, #fff); }
.dsh-social-dialog__ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 0 16px; border-radius: 50%; background: color-mix(in srgb, #c62828 10%, #fff); color: #c62828; }
.dsh-social-dialog__ico svg { width: 20px; height: 20px; fill: currentColor; }
.dsh-social-dialog__ico .dsh-i { font-size: 20px; }
.dsh-social-dialog .dsh-social-dialog__title { margin: 0 0 8px; color: inherit; font-size: 19px; font-weight: 700; line-height: 1.3; }
.dsh-social-dialog .dsh-social-dialog__text { margin: 0 0 22px; color: var(--dsh-sl-muted); font-size: 14px; line-height: 1.55; }
.dsh-social-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
@keyframes dsh-sl-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dsh-sl-dialog-out { to { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes dsh-sl-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dsh-sl-fade-out { to { opacity: 0; } }

/* Popup de documento (Termos / Política) — mesmo padrão do checkout. */
.dsh-social-doc { width: min(680px, calc(100vw - 32px)); }
.dsh-social-doc .dsh-social-doc__box { display: flex; flex-direction: column; max-height: min(80vh, 760px); padding: 0; overflow: hidden; }
.dsh-social-doc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--dsh-sl-line); }
.dsh-social-doc__head strong { color: var(--dsh-sl-ink); font-size: 17px; font-weight: 700; line-height: 1.3; }
.dsh-social-doc .dsh-social-doc__close,
.dsh-social-doc .dsh-social-doc__close:is(:hover, :focus) { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dsh-sl-muted); cursor: pointer; }
.dsh-social-doc .dsh-social-doc__close:hover { background: color-mix(in srgb, var(--dsh-sl-ink) 6%, transparent); color: var(--dsh-sl-ink); }
.dsh-social-doc__close svg { width: 16px; height: 16px; fill: currentColor; }
.dsh-social-doc__close .dsh-i { font-size: 16px; }
.dsh-social-doc__body { flex: 1 1 auto; min-height: 0; padding: 22px; overflow-y: auto; color: var(--dsh-sl-ink); font-size: 14px; line-height: 1.6; overscroll-behavior: contain; }
.dsh-social-doc__body :is(h1, h2) { margin: 0 0 10px; font-size: 18px; line-height: 1.35; }
.dsh-social-doc__body :is(h3, h4, h5, h6) { margin: 14px 0 8px; font-size: 16px; line-height: 1.4; }
.dsh-social-doc__body p { margin: 0 0 10px; font-size: 14px; }
.dsh-social-doc__body :is(ul, ol) { margin: 0 0 10px; padding-left: 20px; font-size: 14px; }
.dsh-social-doc__body svg { width: auto; height: 16px; }
.dsh-social-doc__body .dsh-i { font-size: 16px; }
.dsh-social-doc__body img { max-width: 100%; height: auto; }

/* ----------------------- Faixa "Vincular acesso" ----------------------- */
.dsh-social-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	padding: 24px;
	border: 1px solid var(--dsh-sl-line);
	border-radius: var(--dsh-sl-radius);
	background: var(--dsh-sl-field);
	color: var(--dsh-sl-ink);
}
.dsh-social-strip__text { flex: 1 1 320px; min-width: 0; }
.dsh-social-strip .dsh-social-strip__title { margin: 0 0 6px; color: inherit; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: normal; }
.dsh-social-strip .dsh-social-strip__desc { margin: 0; color: var(--dsh-sl-muted); font-size: 14px; line-height: 1.5; }
.dsh-social-strip__btns { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 1 auto; }
/* Outline nas cores do admin (fundo → borda/texto); hover preenche com o fundo e o ícone + texto vão para a cor do texto. */
.dsh-social-strip .dsh-social-strip__btn,
.dsh-social-strip .dsh-social-strip__btn:is(:visited, :focus) {
	--dsh-sl-strip: var(--dsh-sl-btn-bg, var(--dsh-sl-ink));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	margin: 0;
	padding: 0 20px;
	border: 1.5px solid var(--dsh-sl-strip);
	border-radius: var(--dsh-sl-radius);
	background: transparent;
	color: var(--dsh-sl-strip);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .15s ease;
}
.dsh-social-strip__btn .dsh-social__icon { width: 18px; height: 18px; color: currentColor; fill: currentColor; transition: color .18s ease; }
.dsh-social-strip .dsh-social-strip__btn:is(:hover, :active) { background: var(--dsh-sl-strip); color: var(--dsh-sl-btn-ink, #fff); }
.dsh-social-strip .dsh-social-strip__btn:active { transform: translateY(1px); }
.dsh-social-strip .dsh-social-strip__btn:focus-visible { outline: 2px solid var(--dsh-sl-strip); outline-offset: 2px; }
.dsh-social-strip .dsh-social-strip__btn.is-disabled { opacity: .45; cursor: not-allowed; }
.dsh-social-strip .dsh-social-strip__btn.is-disabled:hover { background: transparent; color: var(--dsh-sl-strip); }

/* ------------- Telas do fluxo: fundo com imagem + véu (= acesso do visitante) ------------- */
.dsh-social-screen .dsh-social-page {
	position: relative;
	align-items: center;
	min-height: 100dvh;
	padding: 20px 32px;
	overflow: hidden;
	background: var(--dsh-sl-hero, #15181c);
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	isolation: isolate;
}
.dsh-social-page__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.dsh-social-page__bg .dsh-social-page__img,
.dsh-social-page__bg img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: blur(3px); transform: scale(1.06); }
.dsh-social-page__bg::after { content: ""; position: absolute; inset: 0; background: #000; opacity: .4; mix-blend-mode: multiply; }
.dsh-social-screen .dsh-social-card { max-width: 560px; padding: 36px; border: 0; box-shadow: 0 24px 64px rgba(0, 0, 0, .22); }
.dsh-social-screen .dsh-social-title { font-family: var(--e-global-typography-primary-font-family), sans-serif; font-size: 18px !important; }
/* A seção passa por baixo do menu (margem negativa via JS): fica numa camada abaixo do header. */
.dsh-social-screen .dsh-social-page { z-index: 0; }
.dsh-social-screen .dsh-social-legal { margin: 2px 0 0; text-align: center; }
/* Telas bem estreitas: botão de vínculo vira só ícone (o texto fica no aria-label/title). */
@media (max-width: 380px) {
	.dsh-social-connected .dsh-social-connected__btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.dsh-social-connected .dsh-social-connected__act .dsh-social-connected__btn { width: 40px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.dsh-social-dialog[open], .dsh-social-dialog[open]::backdrop,
	.dsh-social-dialog.is-closing, .dsh-social-dialog.is-closing::backdrop { animation: none; }
	.dsh-social-strip .dsh-social-strip__btn, .dsh-social-connected .dsh-social-connected__btn { transition: none; }
	.dsh-social-submit, .dsh-social-pass input, :is(.dsh-social-page, .dsh-social-embed) input { transition: none; }
	.dsh-social-spin { animation: none; }
}

@media (max-width: 600px) {
	.dsh-social-card { padding: 20px; }
	.dsh-social-option { padding: 16px; }
	.dsh-social-title { font-size: 21px; }
	.dsh-social-actions--pair { --dsh-sl-btn-basis: 100%; }
	.dsh-social-connected { padding: 18px; }
	.dsh-social-connected .dsh-social-connected__head { margin-bottom: 14px; }
	.dsh-social-connected__row { gap: 10px; padding: 12px; }
	.dsh-social-connected__prov { gap: 10px; }
	.dsh-social-connected__logo { flex-basis: 36px; width: 36px; height: 36px; }
	.dsh-social-connected__logo .dsh-social__icon { width: 18px; height: 18px; }
	.dsh-social-connected .dsh-social-connected__btn { min-height: 38px; padding: 0 12px; font-size: 13px; }
	.dsh-social-dialog__actions { flex-direction: column-reverse; }
	.dsh-social-dialog__actions .dsh-social-connected__btn { width: 100%; }
	/* Faixa compacta: texto em cima, botões lado a lado. */
	.dsh-social-strip { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
	.dsh-social-strip__text { flex: 0 0 auto; }
	.dsh-social-strip .dsh-social-strip__title { margin-bottom: 4px; font-size: 16px; }
	.dsh-social-strip .dsh-social-strip__desc { font-size: 13px; line-height: 1.45; }
	.dsh-social-strip__btns { flex-wrap: nowrap; gap: 8px; }
	.dsh-social-strip .dsh-social-strip__btn { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 0 12px; gap: 8px; font-size: 13px; }
	.dsh-social-strip .dsh-social-strip__label { overflow: hidden; text-overflow: ellipsis; }
	.dsh-social-screen .dsh-social-page { padding: 20px 16px; }
	.dsh-social-screen .dsh-social-card { padding: 24px; }
}

/* Overlay "Redirecionando para o {rede}, aguarde" ao clicar em um botão de login social (JS: .dsh-social-go). */
.dsh-social-go-host { position: relative; }
.dsh-social-go {
	position: absolute; inset: 0; z-index: 20;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	padding: 24px; border-radius: inherit; text-align: center;
	background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
	color: var(--dsh-sl-text, #131a26); font-size: 15px; font-weight: 600; line-height: 1.4;
	animation: dsh-sl-go-in .18s ease both;
}
.dsh-social-go .dsh-social-spin { font-size: 28px; color: var(--dsh-sl-accent, currentColor); }
@keyframes dsh-sl-go-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.dsh-social-go { animation: none; }
}

/* Cabeçalho da etapa: título e explicação à esquerda, selos (rede e e-mail) à direita, alinhados ao título.
   Em espaço estreito (container < 560px) volta a empilhar: selos, título e texto. Vale em todas as etapas. */
:is(.dsh-social-embed, .dsh-social-page) { container: dsh-sl / inline-size; }
@container dsh-sl (min-width: 560px) {
	.dsh-social-head {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "title ident" "text ident";
		align-items: start;
		column-gap: var(--dsh-sl-gap-lg);
		row-gap: var(--dsh-sl-gap-xs);
	}
	.dsh-social-head .dsh-social-title { grid-area: title; }
	.dsh-social-head .dsh-social-text { grid-area: text; }
	.dsh-social-head .dsh-social-ident {
		grid-area: ident;
		justify-content: flex-end;
		align-self: start;
		max-width: 22rem;
		margin: 0;
	}
}
.dsh-social-head .dsh-social-badge,
.dsh-social-head .dsh-social-chip { min-height: 28px; }
.dsh-social-head .dsh-social-badge__ico { flex-basis: 20px; width: 20px; height: 20px; }

/* Contas conectadas e diálogo de desvincular: botões são <a>, e o tema/Elementor (Minha Conta) pinta links com cor
   e sublinhado próprios. Aqui o visual do botão vence: sem sublinhado, cor do contorno no estado normal e texto
   branco no preenchido (hover e "Sim, desejo continuar"). */
.dsh-social-connected a.dsh-social-connected__btn,
.dsh-social-connected a.dsh-social-connected__btn:is(:visited, :hover, :focus, :active),
.dsh-social-connected a.dsh-social-connected__btn > span { text-decoration: none !important; }
.dsh-social-connected a.dsh-social-connected__btn:not(.is-solid),
.dsh-social-connected a.dsh-social-connected__btn:not(.is-solid):is(:visited, :focus) { color: var(--dsh-sl-btn) !important; }
.dsh-social-connected a.dsh-social-connected__btn:not(.dsh-social-connected__btn--ghost):is(:hover, :active),
.dsh-social-connected a.dsh-social-connected__btn.is-solid,
.dsh-social-connected a.dsh-social-connected__btn.is-solid:is(:visited, :hover, :focus, :active) { color: #fff !important; }
/* Diálogo: os dois botões com a mesma altura e o texto centralizado. */
.dsh-social-dialog__actions .dsh-social-connected__btn { min-width: 9.5rem; }
/* Tabela de vínculos: "Vincular conta" e "Desvincular conta" com a mesma largura (fora das telas bem estreitas,
   onde viram só o ícone). */
@media (min-width: 381px) {
	.dsh-social-connected .dsh-social-connected__act .dsh-social-connected__btn { min-width: 12rem; }
}
