/**
 * Boutons style « Sign in with Google » / « Sign in with Apple » (proches des guidelines officielles).
 */
/* Nav / top : boîte réelle pour flex/float des thèmes custom (évite display:contents fragile) */
.ps-socialconnect-outer--nav,
.ps-socialconnect-outer--top_mobile {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Centrage fiable : flex (évite width:100% qui annule margin:auto sur certains parents) */
.ps-socialconnect-outer--login,
.ps-socialconnect-outer--register,
.ps-socialconnect-outer--checkout {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.ps-socialconnect {
  margin: 1.25rem 0;
  box-sizing: border-box;
}

.ps-socialconnect--login,
.ps-socialconnect--register,
.ps-socialconnect--checkout {
  flex: 0 1 320px;
  width: 100%;
  max-width: 320px;
  min-width: 0;
}

.ps-socialconnect--nav,
.ps-socialconnect--top_mobile {
  margin: 0;
  max-width: none;
  flex: none;
  width: auto;
}

.ps-socialconnect--nav .ps-socialconnect-actions,
.ps-socialconnect--top_mobile .ps-socialconnect-actions {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ps-socialconnect--nav .ps-socialconnect-btn,
.ps-socialconnect--top_mobile .ps-socialconnect-btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.ps-socialconnect--nav .ps-socialconnect-btn__icon svg,
.ps-socialconnect--top_mobile .ps-socialconnect-btn__icon svg {
  width: 18px;
  height: 18px;
}

.ps-socialconnect-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
  color: #5f6368;
  font-size: 13px;
}

/* Connexion : séparateur au-dessus des boutons — pas de marge haute */
.ps-socialconnect--login > .ps-socialconnect-divider:first-child {
  margin-top: 0;
}

.ps-socialconnect-divider::before,
.ps-socialconnect-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #dadce0;
}

.ps-socialconnect-divider span {
  padding: 0 0.75rem;
}

.ps-socialconnect-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

/* Espace sous les boutons (avant « Or continue with » sur inscription / tunnel uniquement) */
.ps-socialconnect--register .ps-socialconnect-actions,
.ps-socialconnect--checkout .ps-socialconnect-actions {
  margin-bottom: 1rem;
}

.ps-socialconnect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  text-decoration: none !important;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

.ps-socialconnect-btn:hover,
.ps-socialconnect-btn:focus {
  text-decoration: none !important;
}

.ps-socialconnect-btn__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.ps-socialconnect-btn__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.ps-socialconnect-btn__text {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

/* Google — fond blanc, bordure (usage courant sur le web) */
.ps-socialconnect-btn--google {
  background-color: #fff;
  color: #1f1f1f;
  border: 1px solid #747775;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ps-socialconnect-btn--google:hover {
  background-color: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.ps-socialconnect-btn--google:focus {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4285f4;
}

/* Apple — noir */
.ps-socialconnect-btn--apple {
  background-color: #000;
  color: #fff;
  border: 1px solid #000;
}

.ps-socialconnect-btn--apple:hover {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.ps-socialconnect-btn--apple:focus {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}

.ps-socialconnect-btn--apple .ps-socialconnect-btn__text {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
}
