/* Divisor reutilizable (estilo “O continúa con”) */
.np-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #6c757d;
  font-size: 0.875rem;
  margin: 0.85rem 0;
  width: 100%;
}

.np-auth-divider::before,
.np-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dee2e6;
}

.np-auth-divider span {
  white-space: nowrap;
}

/* My-account: sin h2 aparte; el divisor ya trae el texto */
.np-login-register-prompt {
  margin-top: 0.25rem;
}

/* Cree su cuenta: mismo ancho que Google / Obtener código (22rem) */
body#authentication .np-login-register-prompt .np-login-create-account,
body#authentication .np-login-register-prompt .btn-outline-primary {
  display: block;
  width: 100%;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

body#authentication .np-login-register-prompt .d-grid {
  width: 100%;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.login__register-prompt.np-login-register-prompt > .h4,
.login__register-prompt.np-login-register-prompt > h2 {
  display: none;
}

/* Contenedor GINO tras el form de checkout login */
.np-checkout-auth-extras {
  clear: both;
  width: 100%;
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  position: relative;
  z-index: 0;
}

/* Checkout: Olvidó + Continuar (como my-account) */
.np-checkout-login-actions {
  clear: both;
  width: 100%;
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.np-checkout-login-actions__forgot {
  padding: 0 !important;
  text-decoration: none;
  order: 1;
}

.np-checkout-login-actions__forgot:hover {
  text-decoration: underline;
}

.np-checkout-login-actions__submit {
  order: 2;
  margin-left: auto;
}

.np-checkout-register-prompt {
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.np-checkout-register-prompt .np-checkout-go-register {
  max-width: 22rem;
  margin: 0 auto;
  display: block;
}

@media (max-width: 767.98px) {
  .np-checkout-login-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .np-checkout-login-actions__submit {
    order: 1;
    width: 100%;
    margin-left: 0;
  }

  .np-checkout-login-actions__forgot {
    order: 2;
    text-align: center;
    width: 100%;
  }

  .np-checkout-register-prompt .np-checkout-go-register {
    max-width: 100%;
  }
}

/* NP Social Login — botones FO (login + checkout) */
.np-social-login {
  width: 100%;
  margin: 0.25rem 0 0.5rem;
  text-align: center;
}

.np-social-login__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #6c757d;
  font-size: 0.875rem;
  margin: 0.25rem 0 0.85rem;
}

.np-social-login__divider::before,
.np-social-login__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dee2e6;
}

.np-social-login__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.np-social-login__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 22rem;
  min-height: 2.75rem;
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none !important;
  border-radius: 0.25rem;
  background: #f5f5f5;
  border: 1px solid #ced4da;
  color: #212529 !important;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.np-social-login__btn:hover,
.np-social-login__btn:focus {
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  color: #212529 !important;
}

.np-social-login__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.np-social-login__icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.np-social-login-icon-facebook {
  background: #1877f2;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: none;
}

.np-social-login-icon-twitter {
  background: #111;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: none;
}

.np-social-login-provider-google:hover,
.np-social-login-provider-google:focus {
  border-color: #4285f4;
}

.np-social-login-provider-facebook:hover,
.np-social-login-provider-facebook:focus {
  border-color: #1877f2;
}

.np-social-login-provider-twitter:hover,
.np-social-login-provider-twitter:focus {
  border-color: #111;
}

/* En checkout: stack limpio con código temporal */
#checkout-login-form .np-checkout-auth-extras .checkout-temporal-container,
.np-checkout-auth-extras .checkout-temporal-container {
  margin-top: 0.35rem !important;
  margin-bottom: 0 !important;
  position: static !important;
  float: none !important;
  clear: both;
  width: 100%;
  max-width: none;
  padding: 0;
  text-align: center;
}

#checkout-login-form .np-checkout-auth-extras #btn-obtener-codigo-checkout,
.np-checkout-auth-extras #btn-obtener-codigo-checkout {
  position: static !important;
  float: none !important;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
}

#checkout-login-form .np-social-login,
.np-checkout-auth-extras .np-social-login {
  margin-top: 0.15rem;
}

@media (max-width: 767.98px) {
  .np-social-login__btn,
  #checkout-login-form .np-checkout-auth-extras #btn-obtener-codigo-checkout,
  .np-checkout-auth-extras #btn-obtener-codigo-checkout,
  body#authentication .np-login-register-prompt .np-login-create-account,
  body#authentication .np-login-register-prompt .btn-outline-primary,
  body#authentication .np-login-register-prompt .d-grid {
    max-width: 100%;
  }
}
