/* Nextend owns the Google logo and button colours; only its surrounding layout is adjusted. */
.ag-social-entry,
.ag-social-account {
  box-sizing: border-box;
  font-family: Shabnam, Tahoma, sans-serif;
  direction: rtl;
}
.ag-social-entry {
  margin: 20px 0 0;
  min-width: 0;
}
.ag-social-entry[hidden] {
  display: none !important;
}
/* Covers wrappers appended later by Nextend, including during OTP steps.
   Native wp-login, WooCommerce forms and provider notices remain untouched. */
.digits-form_container form.ag-social-managed [id^="nsl-custom-login-form-"] {
  display: none !important;
}
.ag-social-entry .nsl-container,
.ag-social-account-actions .nsl-container {
  padding: 0 !important;
}
.ag-social-entry .nsl-container-buttons,
.ag-social-account-actions .nsl-container-buttons {
  width: 100%;
  padding: 0 !important;
}
.ag-social-entry .nsl-container a,
.ag-social-account-actions .nsl-container a {
  max-width: 100%;
  margin: 0 !important;
  text-decoration: none;
}
.ag-social-entry .nsl-container .nsl-button,
.ag-social-account-actions .nsl-container .nsl-button {
  min-height: 48px;
  align-items: center;
}
.ag-social-entry .nsl-container a:focus-visible,
.ag-social-account-actions .nsl-container a:focus-visible {
  outline: 3px solid #7ba8fa !important;
  outline-offset: 3px;
}
.ag-social-divider {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  color: #60718b;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}
.ag-social-divider::before,
.ag-social-divider::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: #e2e8f1;
}
.ag-social-divider span {
  flex: 0 1 auto;
}
.ag-social-account {
  clear: both;
  margin-top: 28px;
  padding: 22px;
  background: #f5f8fd;
  border-radius: 14px;
  color: #172b57;
}
.ag-social-account h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.7;
  color: inherit;
}
.ag-social-account p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 2;
  color: #52637d;
}
.ag-social-account-actions {
  max-width: 440px;
}
@media (max-width: 700px) {
  .ag-social-entry {
    margin-top: 18px;
  }
  .ag-social-divider {
    font-size: 14px;
    gap: 10px;
  }
  .ag-social-account {
    padding: 18px;
  }
  .ag-social-account p {
    font-size: 16px;
  }
}

/* Symmetric icon space keeps the label at the centre of the whole button. */
.ag-social-entry .nsl-container .nsl-button-google {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  direction: rtl;
}
.ag-social-entry .nsl-container .nsl-button-google .nsl-button-svg-container {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  padding: 0 !important;
  margin: 0 !important;
}
.ag-social-entry .nsl-container .nsl-button-google .nsl-button-label-container {
  grid-column: 2;
  grid-row: 1;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}
